Skip to content
← Back to guides

Claude Code (Anthropic-compatible)

Claude Code is Anthropic’s coding agent for the terminal; it uses the Anthropic format.

Before you start

Setup steps

Install from each product’s official download or release page. Choose the Windows package on Windows and the correct Apple Silicon or Intel package on macOS. Existing users can proceed directly to configuration. Labels may vary by version.

  1. Install through the official guide and check claude --version.
  2. Configure the current terminal.

Windows PowerShell:

$env:ANTHROPIC_BASE_URL = "https://api.6090ti.com"
$env:ANTHROPIC_API_KEY = "<your key>"
$env:ANTHROPIC_MODEL = "<Claude model>"

macOS / Linux:

export ANTHROPIC_BASE_URL="https://api.6090ti.com"
export ANTHROPIC_API_KEY="<your key>"
export ANTHROPIC_MODEL="<Claude model>"
  1. If ANTHROPIC_AUTH_TOKEN already points to another service, preserve its original configuration and unset it for this session. Use Remove-Item Env:ANTHROPIC_AUTH_TOKEN -ErrorAction SilentlyContinue in PowerShell or unset ANTHROPIC_AUTH_TOKEN on macOS / Linux.
  2. Run claude in your project. The first time ANTHROPIC_API_KEY is used, Claude Code asks whether to use the key; approve it. If you declined earlier, the key is ignored without asking again; turn on Use custom API key under /config.
  3. Check /status and confirm the Anthropic base URL is https://api.6090ti.com, then send a short request and test a small file-reading or code-explanation task.

Terminal variables apply only to the current terminal. Once the setup works, you can make it persistent in your user settings file: %USERPROFILE%\.claude\settings.json on Windows or ~/.claude/settings.json on macOS / Linux. If the file already has content, merge only the env section instead of overwriting the file:

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.6090ti.com",
    "ANTHROPIC_API_KEY": "<your key>",
    "ANTHROPIC_MODEL": "<Claude model>"
  }
}

Do not put your key in a project’s .claude/settings.json, which is usually committed to the repository. When the settings file and a terminal variable set the same item, the settings file wins.

Claude Code uses a separate small model for background tasks such as session titles. If main requests work but you see an error saying a model is unavailable, also set ANTHROPIC_DEFAULT_HAIKU_MODEL to a Claude model ID your key can use, in the same way as the variables above.

This example uses x-api-key. Bearer authentication uses ANTHROPIC_AUTH_TOKEN; do not configure both credentials without checking their purpose.

Troubleshooting

For 401, 404, 429 and other errors, see API reference: Troubleshooting. If that does not solve it, contact us as described in the support and issue-reporting guide. Never send full keys, passwords or verification codes.
QQ user group: 1109931264