Skip to content
Skip to article
View as Markdown

Claude Code

Run these commands in the shell where you set DODO_ROUTER_URL and DODO_ROUTER_API_KEY. Claude Code adds /v1/messages to the router root. Verify your router URL and key.

export ANTHROPIC_BASE_URL="$DODO_ROUTER_URL"
export ANTHROPIC_AUTH_TOKEN="$DODO_ROUTER_API_KEY"
claude -p "Reply with the word pong."

Open Logs, select your router, and open the request containing that prompt. The response and provider attempts confirm which model answered. If the client reports a missing route, check that ANTHROPIC_BASE_URL ends at your router slug. Anthropic Messages reference.

Run claude in the same shell to start an interactive session. If you also use a direct Anthropic login, /status in Claude Code shows the active base URL and credential source. Claude Code gateway configuration.