Claude Code
Connect the Claude Code CLI and VS Code extension to outerlane.
Claude Code uses the Anthropic Messages API. Set the outerlane base URL and authentication token to use Claude or another supported model.
Configure Claude Code
Add these values to env in the Claude Code settings file (~/.claude/settings.json, or %USERPROFILE%\.claude\settings.json on Windows).
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.outerlane.app",
"ANTHROPIC_AUTH_TOKEN": "ol_live_...",
"ANTHROPIC_API_KEY": "",
"ANTHROPIC_MODEL": "anthropic/claude-sonnet-5-5"
}
}Check before connecting
- Set
ANTHROPIC_BASE_URLwithout/v1. Claude Code appends/v1/messages. - Leave
ANTHROPIC_API_KEYempty. A key in your shell can override the outerlane key. If you are signed in with an Anthropic account, run/logoutin Claude Code and restart it. - Use a provider prefix such as
anthropic/in the model ID.
Try it in your current terminal
Run with environment variables to try the setup before editing your settings file.
export ANTHROPIC_BASE_URL="https://api.outerlane.app"
export ANTHROPIC_AUTH_TOKEN="ol_live_..."
unset ANTHROPIC_API_KEY
claude --model anthropic/claude-sonnet-5-5VS Code extension
The VS Code extension may skip env from ~/.claude/settings.json when checking sign-in. Add the same values to claudeCode.environmentVariables in VS Code user settings.
{
"claudeCode.environmentVariables": [
{ "name": "ANTHROPIC_BASE_URL", "value": "https://api.outerlane.app" },
{ "name": "ANTHROPIC_AUTH_TOKEN", "value": "ol_live_..." },
{ "name": "ANTHROPIC_API_KEY", "value": "" },
{ "name": "ANTHROPIC_MODEL", "value": "anthropic/claude-sonnet-5-5" }
]
}Use another model
Set ANTHROPIC_MODEL or --model to a model ID such as openai/gpt-6.1-sol. Check the model catalog for tool calling and reasoning support.
Troubleshooting
401error: Check the key in API keys and clear any existingANTHROPIC_API_KEYor Anthropic sign-in session.404error: Check thatANTHROPIC_BASE_URLdoes not include/v1.- PDF attachments and images in tool results return
400. Attach images to a regular message.