Documentation

Build on 0xFOX

Everything you need to integrate the predictive cross-chain bridge -- from the TypeScript SDK to the CLI, MCP server, and raw HTTP API.

Quick Start

Up and running in 60 seconds.

1. Install the SDK

bash
npm install @0xfox/sdk

2. Create an identity and swap

typescript
import { FoxClient } from "@0xfox/sdk";

const fox = new FoxClient({
  apiKey: process.env.FOX_API_KEY!,
  baseUrl: "https://api.0xfox.org",
});

// Create an identity
const identity = await fox.identity.create({
  walletAddress: "0xAbC...123",
  chain: "ethereum",
});

// Submit a swap intent
const intent = await fox.intent.create({
  from: { chain: "ethereum", token: "USDC", amount: "1000" },
  to:   { chain: "arbitrum",  token: "USDC" },
});

console.log(intent.status); // "matched"
API Reference

Every endpoint, documented.

Base URL: https://api.0xfox.org

Identity
MethodPath
POST/v1/identity
GET/v1/identity/:id
Swap
MethodPath
POST/v1/intent
Balances
MethodPath
GET/v1/identity/:id/balances
Status
MethodPath
GET/v1/status
Sentiment
MethodPath
GET/v1/sentiment
GET/v1/sentiment/:asset
Swarm
MethodPath
GET/v1/swarm/bias
Predictions
MethodPath
GET/v1/prediction/recent
Genome
MethodPath
GET/v1/genome/status
SGX (Copy-Trading)
MethodPath
POST/v1/sgx/:strategy_id/auction
TypeScript SDK

Typed. Ergonomic. Batteries included.

The @0xfox/sdk package wraps every endpoint with full TypeScript types.

typescript
// Check balances
const balances = await fox.balances.get(identity.id);

// Get system status
const status = await fox.status();

// Fetch sentiment for ETH
const sentiment = await fox.sentiment.get("ETH");

// Get recent predictions
const predictions = await fox.predictions.recent();

// Swarm bias
const bias = await fox.swarm.bias();
foxclaw CLI

Power user? Use the terminal.

The foxclaw CLI gives you full access from your shell -- plus a built-in TUI dashboard.

bash
# Install the CLI
cargo install foxclaw-cli

# Check system status
foxclaw status

# Submit a swap intent
foxclaw swap \
  --from ethereum:USDC:1000 \
  --to arbitrum:USDC

# View your balances
foxclaw balances --identity <ID>

# Get recent predictions
foxclaw predictions recent

# Launch the TUI dashboard
foxclaw tui
MCP Server

Give your AI agent cross-chain powers.

fox-mcp-server exposes 0xFOX as an MCP-compatible tool server. Any AI agent that speaks MCP can bridge tokens, check balances, and read predictions -- no custom integration needed.

jsonc
// fox-mcp-server exposes 0xFOX as an MCP tool server.
// Any MCP-compatible AI agent can call 0xFOX endpoints.

// 1. Start the server
//    foxclaw mcp-server --port 3100

// 2. Register in your MCP client config:
{
  "mcpServers": {
    "0xfox": {
      "url": "http://localhost:3100/sse"
    }
  }
}

// 3. The agent can now call tools like:
//    fox_swap, fox_balances, fox_sentiment,
//    fox_predictions, fox_swarm_bias, fox_status
About 0xFOX

A bridge rebuilt from first principles.

0xFOX is a predictive cross-chain P2P bridge and agent marketplace. Instead of lock-and-mint or AMM pools, AI agents predict demand and pre-position liquidity so swaps execute in under a second with zero MEV and near-zero fees.

The architecture is intentionally off-chain: all matching, settlement, and balance tracking happens in the V-Ledger. Users only pay gas for deposits and withdrawals. The system is built with 16 Rust crates, a TypeScript SDK, a CLI with TUI dashboard, and this Next.js interface.

Licensed under AGPL-3.0. Built by the 0xFOX Foundation.