Claude Code (Anthropic-compatible)
Claude Code is Anthropic’s coding agent for the terminal; it uses the Anthropic format.
Before you start
- Create an account and top up, then create a key on the API Keys page of the dashboard.
- Find an available model ID with your key; see API reference: Find an available model.
- Replace the green-highlighted
<your key>in the examples with your own key, and model placeholders with actual model IDs.
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.
- Install through the official guide and check
claude --version. - 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>"
- If
ANTHROPIC_AUTH_TOKENalready points to another service, preserve its original configuration and unset it for this session. UseRemove-Item Env:ANTHROPIC_AUTH_TOKEN -ErrorAction SilentlyContinuein PowerShell orunset ANTHROPIC_AUTH_TOKENon macOS / Linux. - Run
claudein your project. The first timeANTHROPIC_API_KEYis 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. - Check
/statusand confirm the Anthropic base URL ishttps://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