Claude Code
Connect Claude Code with the Anthropic Messages protocol.
Set up with CC Switch
If you use a configuration manager, add Zashmodel as a custom provider and keep the fields below consistent with the manual configuration.
- Select the client you want to configure, then add a custom provider named Zashmodel.
- Paste your Zashmodel key from API Keys and enter the endpoint shown below. API Keys โ
- Choose an exact accessible model ID, save the provider, activate it, and restart the CLI.
| Provider | Zashmodel |
|---|---|
| Protocol | Anthropic Messages |
| API base URL | https://zashmodel.com |
| Model | YOUR_CLAUDE_MODEL_ID |
Manual setup
Install Claude Code ยท Set your environment variables
Use the site root without /v1 for ANTHROPIC_BASE_URL. Set the Zashmodel key as ANTHROPIC_AUTH_TOKEN and launch Claude Code from that terminal with an accessible Claude model.
export ANTHROPIC_BASE_URL="https://zashmodel.com"
export ANTHROPIC_AUTH_TOKEN="$ZASHMODEL_API_KEY"
claude --model YOUR_CLAUDE_MODEL_ID$env:ANTHROPIC_BASE_URL = "https://zashmodel.com"
$env:ANTHROPIC_AUTH_TOKEN = $env:ZASHMODEL_API_KEY
claude --model YOUR_CLAUDE_MODEL_IDRun /status inside Claude Code to check the active connection. Existing settings files may override shell variables; check them if requests still go to another provider.
Official Claude Code gateway guide โ