Skip to main content

Claude Code Setup

Claude Code is Anthropic’s official CLI tool. Here’s how to configure it with Extend Proxy.

Prerequisites

  • Claude Code installed (install guide)
  • Your API key and endpoint URL from admin

Setup

1

Create Config Directory

mkdir -p ~/.claude-proxy
2

Create Settings File

cat > ~/.claude-proxy/settings.json << 'EOF'
{
  "showWelcomeTutorial": false,
  "hasCompletedOnboarding": true,
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY",
    "ANTHROPIC_BASE_URL": "YOUR_ENDPOINT_URL",
    "ANTHROPIC_MODEL": "claude-opus-4-5-thinking",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-4-5-thinking",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-5-thinking",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "gemini-3-flash",
    "CLAUDE_CODE_SUBAGENT_MODEL": "claude-sonnet-4-5-thinking"
  }
}
EOF
Replace YOUR_API_KEY and YOUR_ENDPOINT_URL with the values provided by admin.
3

Create Shell Alias

Add to your ~/.zshrc or ~/.bashrc:
alias claude-proxy='CLAUDE_CONFIG_DIR=~/.claude-proxy claude'
4

Reload Shell

source ~/.zshrc
5

Test

claude-proxy
You should see Claude Code start with “claude-opus-4-5-thinking” as the model.

Switching Models

To use Sonnet instead of Opus, change ANTHROPIC_MODEL in settings.json:
"ANTHROPIC_MODEL": "claude-sonnet-4-5-thinking"

Troubleshooting

  • Check your API key is correct
  • Verify the key is enabled (contact admin on Discord: presumptiousbastard)
  • Check your internet connection
  • Try curl YOUR_ENDPOINT_URL/health (replace with your actual endpoint)