All news
/1 min readAPIAnthropic

Use boldrouter as the gateway for Claude Code

boldrouter now serves the Anthropic Messages API, so Claude Code and apps built on the Anthropic SDKs can run through it with your key, budgets and usage tracking.

> ANTHROPIC_BASE_URL

boldrouter now speaks the Anthropic Messages API at /v1/messages. Requests go to Anthropic unchanged, and boldrouter adds your key, workspace rules, budgets and usage tracking on the way.

Claude Code

Point Claude Code at boldrouter and give it a boldrouter API key:

export ANTHROPIC_BASE_URL=https://boldrouter.com
export ANTHROPIC_AUTH_TOKEN=sk-bold-...
claude

Every request appears in your usage dashboard under its Claude model, with cache reads and writes counted separately. To list boldrouter's Claude models in the /model picker, also set CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1.

Anthropic SDKs

import anthropic

client = anthropic.Anthropic(base_url="https://boldrouter.com", api_key="sk-bold-...")
message = client.messages.create(
    model="claude-sonnet-4-6",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello"}],
)

Full details are in the Claude Code docs.

Use boldrouter as the gateway for Claude Code - boldrouter