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.

Download CC Switch โ†—

  1. Select the client you want to configure, then add a custom provider named Zashmodel.
  2. Paste your Zashmodel key from API Keys and enter the endpoint shown below. API Keys โ†’
  3. Choose an exact accessible model ID, save the provider, activate it, and restart the CLI.
Connection fields
ProviderZashmodel
ProtocolAnthropic Messages
API base URLhttps://zashmodel.com
ModelYOUR_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.

macOS / Linux
export ANTHROPIC_BASE_URL="https://zashmodel.com"
export ANTHROPIC_AUTH_TOKEN="$ZASHMODEL_API_KEY"
claude --model YOUR_CLAUDE_MODEL_ID
Windows PowerShell
$env:ANTHROPIC_BASE_URL = "https://zashmodel.com"
$env:ANTHROPIC_AUTH_TOKEN = $env:ZASHMODEL_API_KEY
claude --model YOUR_CLAUDE_MODEL_ID

Run /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 โ†—