Connect Claude Code
Choose a Claude route with Anthropic support, configure the Orbis URL, model, and key, and check the actual requests.
Connect an installed Claude Code CLI to Orbis. If you have not installed it yet or want to work through a complete project, see the illustrated Claude Code beginner tutorial (external source).
1. Choose a Model and Route, Then Get a Key
Open the model marketplace, select a Claude model, choose a route supporting Anthropic Messages, and create a key for it. One source example is the Claude Code · AH Route for Claude Haiku 5.5.
This guide applies to Claude models. The models and protocols actually available depend on the selected route. A key is bound to a route; changing only the model ID does not switch routes. Both the main model and the background small model must be available to that key.
2. Configure the URL and Models
Under the route's Quick Connect → Tool Setup → Claude Code, select the key you just created and merge the generated configuration into ~/.claude/settings.json. On Windows, use %USERPROFILE%\.claude\settings.json. Back up an existing file first and preserve its other settings.
For Haiku, the file's env section includes:
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.orbiorbi.com",
"ANTHROPIC_MODEL": "claude-haiku-5-5",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-5-5"
}
}Do not append /v1 to the URL. When changing models, use the exact ID from the connection page and check the background small-model configuration as well.
3. Enter Your Key and Launch
Open a terminal in the project directory you plan to use and choose the command for your operating system. Paste the key when prompted; the input will be hidden. The archived command below is for PowerShell:
$env:ANTHROPIC_AUTH_TOKEN = [System.Net.NetworkCredential]::new('', (Read-Host 'Paste your Orbis key' -AsSecureString)).Password
claudeThe credential variable is available only to the current terminal and programs it launches. Enter it again in a new terminal. If ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, or apiKeyHelper is already configured, confirm the credential source first to avoid enabling multiple authentication methods simultaneously. Configure editor-extension environments separately using the official Claude Code gateway instructions.
4. Verify the Connection
- Run
/statusand check the Orbis URL, credential source, model, and working directory. - Send “Reply only with OK,” then check the actual model, route, and charge in usage logs. This step consumes API credit. BadAssModel Usage History opens the existing workspace; it does not display Orbis requests.
- Ask it to read a small file in a practice directory and confirm that a real tool record appears. A successful ordinary reply does not establish compatibility with every tool.
| Symptom | What to Check |
|---|---|
| 401 or a request to sign in again | Check whether the current process received the key and whether an old authentication setting overrides it. |
| 404 or model not found | Confirm that the URL has no /v1 suffix, the model ID matches exactly, and the key belongs to the selected route. |
| Main conversation works, but small tasks fail | Check whether the background small model is also available on that route. |
| 429 or no available credit | Check the account balance, key quota, and route restrictions. |
For installation, switching back to an official account, file editing, and a complete exercise, continue to the illustrated tutorial (external source).