Claude Code

Integration status
  • Recommended protocol: Anthropic Messages
  • Configuration checked: July 15, 2026 (official Claude Code settings documentation)
  • Runtime verification: Pending

GetRouter exposes Claude Messages at https://getrouter.ai/v1/messages. Claude Code gateway settings and model-routing behavior can change by release, so verify the current Claude Code documentation before entering credentials.

Safe setup process

  1. Update Claude Code to the version you intend to support.
  2. Create a dedicated GetRouter API key.
  3. Choose a model that supports Claude Messages and tool calling.
  4. Configure the gateway root as https://getrouter.ai only if the current Claude Code release appends /v1/messages.
  5. Configure the selected model using the exact GetRouter model ID.
  6. Restart Claude Code and send a read-only test prompt.
Warning

Do not copy unverified environment-variable names from third-party posts. Confirm the current upstream configuration reference and inspect the resulting request path before production use.

If the request reaches /v1/chat/completions or /v1/responses, the tool is not using Claude Messages. See Integration troubleshooting.