Integrations

Claude Code

Install Claude Code, point it at Roteo, and verify the connection.

Claude Code talks to the Messages API, so you can route it through Roteo by pointing it at the gateway with your key.

1. Install Claude Code

curl -fsSL https://claude.ai/install.sh | bash
bash · 1 lines

Already installed? Check the version with claude --version.

2. Connect it to Roteo

Use the gateway origin as the base URL (Claude Code appends /v1 itself) and your sk_ key as the auth token. This sets it for the current terminal session, then starts Claude Code:

export ANTHROPIC_BASE_URL="https://api.roteo.ai"
export ANTHROPIC_AUTH_TOKEN="sk_your_key"
claude
bash · 3 lines

To make it persistent across every project, add the values to ~/.claude/settings.json instead, then restart Claude Code:

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.roteo.ai",
    "ANTHROPIC_AUTH_TOKEN": "sk_your_key"
  }
}
json · 6 lines

3. Verify

Run claude, then /status. You should see the gateway listed as the Anthropic base URL. Ask a simple question. If you get a reply, you are connected, and the call appears in your dashboard.

Bill a specific chain

To settle a session on a particular chain, set a custom header:

export ANTHROPIC_CUSTOM_HEADERS="x-roteo-billing-chain: solana"
bash · 1 lines

Valid values are base, arbitrum, solana and robinhood. Omit it to use your dashboard default; every response echoes the chain it billed on. See Billing chains.

Claude Code | Roteo