Integration Guides
Connect your client
Step-by-step setup for every Anthropic-compatible client. The proxy works with all of them.
Pick your tool.

Claude Code
The primary target. Point Claude Code at the proxy via settings.json.
Setup Steps
- 1Start the proxy: python retry-proxy.py --start --upstream https://agentrouter.org
- 2Edit ~/.claude/settings.json and set ANTHROPIC_BASE_URL to http://127.0.0.1:8787
- 3Set CLAUDE_CODE_RETRY_WATCHDOG=1 and CLAUDE_CODE_MAX_RETRIES=300 for infinite retries
- 4Launch: claude --dangerously-skip-permissions
Configuration
claude-code-config
json
{
"env": {
"ANTHROPIC_BASE_URL": "http://127.0.0.1:8787",
"ANTHROPIC_API_KEY": "your-agentrouter-key",
"CLAUDE_CODE_RETRY_WATCHDOG": "1",
"CLAUDE_CODE_MAX_RETRIES": "300"
}
}Before you start
Make sure the proxy is running: python retry-proxy.py --start --upstream https://agentrouter.org
The proxy injects the required claude-cli User-Agent, handles Chinese error messages, and converts 403 quota errors to 429 automatically.
