Claude Code Integration
Work on a repository with Claude from your terminal.
Quick Start
Sign in to GPTProto, open Dashboard → API Keys and create a key for this client. Copy the value into its provider credentials.
Set the gateway and token in the terminal that will launch Claude Code.
export ANTHROPIC_BASE_URL="https://gptproto.com"
export ANTHROPIC_AUTH_TOKEN="YOUR_API_KEY"
claude --model YOUR_MESSAGES_MODEL$env:ANTHROPIC_BASE_URL = "https://gptproto.com"
$env:ANTHROPIC_AUTH_TOKEN = "YOUR_API_KEY"
claude --model YOUR_MESSAGES_MODELTo reuse the connection in future sessions, merge these environment settings into your user configuration.
{
"env": {
"ANTHROPIC_BASE_URL": "https://gptproto.com",
"ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY"
}
}VS Code / Cursor Extension
In the editor’s command palette, open Preferences: Open User Settings (JSON). Add the environment entries below, reload the editor and start a conversation from its Claude Code panel.
{
"claudeCode.environmentVariables": [
{
"name": "ANTHROPIC_BASE_URL",
"value": "https://gptproto.com"
},
{
"name": "ANTHROPIC_AUTH_TOKEN",
"value": "YOUR_API_KEY"
}
],
"claudeCode.disableLoginPrompt": true
}Troubleshooting
If the request path contains /v1/v1/messages, remove /v1 from the base URL.
If a request fails only in fast mode, switch to the model’s standard mode. For beta-header errors, check whether the model endpoint supports the experimental feature. Restart the terminal or editor after changing its environment.
export CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS=1export CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1