Pricing+7% bonus
Contact sales

ClaudeClaude Code

Claude Code + GPT Proto

Claude Code is Anthropic’s official terminal agent. Point it at GPT Proto by writing a few env vars into ~/.claude/settings.json — no official account needed.

Install Claude Code (if you haven't)

Official install script (requires Node >= 18), or npm:

bash
# Official installer
curl -fsSL https://claude.ai/install.sh | bash

# Or via npm
npm install -g @anthropic-ai/claude-code

Configure ~/.claude/settings.json

Create or merge this file. Replace <YOUR_API_KEY> with your GPT Proto key:

~/.claude/settings.json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://gptproto.com",
    "ANTHROPIC_AUTH_TOKEN": "<YOUR_API_KEY>",
    "ANTHROPIC_MODEL": "claude-opus-5",
    "ANTHROPIC_SMALL_FAST_MODEL": "claude-haiku-4-5-20251001"
  }
}
  • No /v1 on the base URL. The SDK appends /v1/messages itself; adding it gives you /v1/v1/messages.
  • Auth — pick one: ANTHROPIC_AUTH_TOKEN (Bearer header) or ANTHROPIC_API_KEY (x-api-key header). GPT Proto’s Messages endpoint uses Bearer; both are verified working.
  • Cheaper tier? Swap ANTHROPIC_MODEL to claude-sonnet-4-6 or another sonnet model.

Skip the official login (the gotcha)

Claude Code defaults to the official account login page. Force it to use your relay by making sure ~/.claude.json contains hasCompletedOnboarding: true:

bash
python3 -c "
import json, os
p = os.path.expanduser('~/.claude.json')
d = json.load(open(p))
d['hasCompletedOnboarding'] = True
json.dump(d, open(p, 'w'))
"
Already used a Claude account? Remove the oauthAccount field from ~/.claude.json too, otherwise traffic may still go to the official account.

Launch & switch models

bash
claude
# inside a session: /model  → pick claude-opus-5 or any listed model

Verify it works

Hit the Messages endpoint directly with your key:

bash
curl -s https://gptproto.com/v1/messages \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"claude-opus-5","max_tokens":20,"messages":[{"role":"user","content":"hi"}]}'

A 401 means the path is right but the key is wrong; 200 with a reply means everything is wired up.