settings.json.
Method 1: Interactive setup with --claude-code
The quickest way to get started is the --claude-code flag. It starts the proxy, prompts you to pick models, and copies a ready-to-run Claude Code launch command to your clipboard.
Select your models
The CLI prompts you to choose a primary model and a small, fast model for background tasks. Select the models you want to use.
If you have API key authentication enabled (
auth.apiKeys in config.json), set ANTHROPIC_AUTH_TOKEN to one of your configured keys so Claude Code can authenticate with the proxy.Method 2: Manual configuration with settings.json
For a persistent setup that survives reboots without re-running the interactive flow, create a .claude/settings.json file at the root of your project.
Create the settings file
Create
.claude/settings.json in your project root with the following content:Key environment variables
| Variable | Value | Purpose |
|---|---|---|
ANTHROPIC_BASE_URL | http://localhost:4141 | Points Claude Code at the local proxy |
ANTHROPIC_AUTH_TOKEN | dummy (or a real key) | Required by Claude Code; use a real key if auth.apiKeys is configured |
ANTHROPIC_MODEL | e.g. gpt-5.4 | Primary model for most tasks |
ANTHROPIC_DEFAULT_SONNET_MODEL | e.g. gpt-5.4 | Model used for Sonnet-tier requests |
ANTHROPIC_DEFAULT_HAIKU_MODEL | e.g. gpt-5-mini | Fast model for background and lightweight tasks |
DISABLE_NON_ESSENTIAL_MODEL_CALLS | 1 | Prevents warmup calls from consuming premium quota |
CLAUDE_CODE_ATTRIBUTION_HEADER | 0 | Stops Claude Code from injecting billing and version info into system prompts, which would invalidate the prompt cache |
Set
ANTHROPIC_MODEL, ANTHROPIC_DEFAULT_SONNET_MODEL, and ANTHROPIC_DEFAULT_HAIKU_MODEL to consistent values. Keeping them aligned ensures Claude Code behaves like a native GitHub Copilot Claude agent.CLAUDE.md recommended content
Add the following reminders to yourCLAUDE.md file. They instruct the model to use the question tool for user interactions instead of outputting free-form questions, which helps maintain clean tool semantics: