Skip to main content
Use Claude Code’s LLM gateway configuration to send Anthropic Messages requests through RunBridge AI.

Prerequisites

  • Install Claude Code from the official setup guide, then run claude --version.
  • Create an active API key in the RunBridge AI dashboard.
  • Choose an exact Claude model ID that supports Anthropic Messages, streaming, and tool calling. Replace your-claude-model-id in every setting below.
The official installer for macOS, Linux, and WSL is:
For Windows and alternate installation methods, follow the official setup guide.

Configure the endpoint and credential

Run this in the Bash or Zsh terminal that will launch Claude Code:
ANTHROPIC_AUTH_TOKEN sends Authorization: Bearer .... Set the base URL to the API origin, without /v1 or /messages; the client builds /v1/messages. All three model aliases above deliberately use the same accessible model for the first connection. To use separate models for Opus, Sonnet, and Haiku tasks, replace each value with the corresponding supported RunBridge AI model ID. Mapping Haiku to a larger model can increase the cost of background tasks.

Persistent settings and Windows

For an editor extension or a process that does not inherit terminal variables, merge this into your personal ~/.claude/settings.json (Windows: %USERPROFILE%\.claude\settings.json):
Enter your actual key only in the private local file and restrict file access to your user. Keep credentials out of a shared project’s .claude/settings.json. For the Claude Desktop app, follow its separate gateway setup instructions; terminal exports alone do not configure that app.

Verify the connection

  1. Start Claude Code and run /status.
  2. Confirm Anthropic base URL is https://api.runbridge.ai and the credential source is ANTHROPIC_AUTH_TOKEN.
  3. Confirm your chosen model, then ask: Reply with “RunBridge connected” without using tools or changing files.
  4. Check the request in your RunBridge AI usage records. Verify tool calling separately in a disposable project before working on real code.

Troubleshooting

See the official gateway connection guide and model configuration for supported settings.
Last modified on September 23, 2026