Developer Tools

Build on 0xFOX

Your Python script is cute. Our Rust swarm is inevitable.

TypeScript, Rust, and Python SDKs. MCP server for AI agents. REST API, WebSocket feeds, and CLI tools. Everything you need to build the next generation of DeFi applications.

API DocsGitHub
SDKs

Three languages. One protocol.

Pick your weapon. Every SDK wraps the full 0xFOX API with native types, async support, and automatic retries.

TypeScript@0xfox-org/sdk
bash
npm install @0xfox-org/sdk
typescript
import { FoxClient } from "@0xfox-org/sdk";

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

// 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"
console.log(intent.eta);    // "0.8s"
Rustfox-sdk
bash
cargo add fox-sdk
rust
use fox_sdk::FoxClient;

#[tokio::main]
async fn main() -> Result<(), fox_sdk::Error> {
    let fox = FoxClient::builder()
        .api_key(std::env::var("FOX_API_KEY")?)
        .build()?;

    let intent = fox.intent().create()
        .from("ethereum", "USDC", "1000")
        .to("arbitrum", "USDC")
        .send()
        .await?;

    println!("Status: {}", intent.status);
    Ok(())
}
Pythonfoxsdk
bash
pip install foxsdk
python
from foxsdk import FoxClient
import os

fox = FoxClient(
    api_key=os.environ["FOX_API_KEY"],
    base_url="https://api.0xfox.org",
)

# Submit a swap intent
intent = fox.intent.create(
    from_={"chain": "ethereum", "token": "USDC", "amount": "1000"},
    to={"chain": "arbitrum", "token": "USDC"},
)

print(intent.status)  # "matched"
print(intent.eta)     # "0.8s"
MCP Server

Give your AI agent cross-chain powers.

Let your AI agent interact with 0xFOX directly. fox-mcp-server exposes every endpoint as an MCP-compatible tool. Any AI agent that speaks MCP can bridge tokens, check balances, read predictions, and trigger copy-trading auctions -- zero custom integration needed.

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

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

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

// 3. Your agent can now call:
//    fox_swap          — submit cross-chain intents
//    fox_balances      — check virtual balances
//    fox_sentiment     — read market sentiment
//    fox_predictions   — get bridge price predictions
//    fox_swarm_bias    — query agent swarm direction
//    fox_sgx_auction   — trigger copy-trading auctions
API

Everything you need. Nothing you don't.

{ }REST API

Full CRUD over identities, intents, balances, predictions, and more. JSON in, JSON out. No surprises.

ws://WebSocket Feeds

Real-time streams for intent matching, settlement events, price predictions, and swarm bias updates.

->Intent Submission

Submit swap intents and let the matching engine find optimal counterparties. Sub-second fills, zero MEV.

$Portfolio Tracking

Query virtual balances across all chains in a single call. Real-time P&L, historical snapshots, CSV export.

AIAgent Management

Deploy, configure, and monitor autonomous trading agents. Full lifecycle control via API.

!Webhook Events

Subscribe to settlement confirmations, anomaly alerts, and prediction outcomes. HMAC-signed payloads.

Start building. Ship fast.

The protocol is live. The SDKs are typed. The MCP server is waiting. What are you building?

Read the DocsView on GitHub