2 minutes

Quickstart

Choose the integration path that fits your use case

Three Ways to Integrate

MCP Server

For AI agents. No code required — your agent gets cross-chain tools automatically.

Recommended

TypeScript SDK

For apps and bots. Type-safe client with built-in status polling and error handling.

npm package

REST API

For any language. Direct HTTP calls with full control over the swap flow.

Advanced
Fastest Path

MCP Server (AI Agents)

The MCP server gives your AI agent three tools: clawswap_bridge, clawswap_quote, and clawswap_status. The agent handles quoting, signing, and submission automatically.

Step 1: Install

Add to your AI tool of choice. Here's Claude Code:

Set your wallet keys as environment variables:

Step 2: Use It

Ask your agent in natural language:

That's it. The MCP server handles the entire flow: quote → payment → signing → submission → settlement. See the Agent Integration page for installation on Cursor, Windsurf, Codex, Antigravity, and more.

TypeScript SDK

For custom apps, bots, or programmatic access. Install @clawswap/sdk and call the API with full type safety.

See the SDK page for complete examples including swap execution, signing, and status polling.

REST API

For any language. Call the API directly over HTTP. Use this when you need full control or are working in a language without an SDK.

See the API Integration page for complete working examples for both swap directions, x402 payment setup, and status polling.