Claude Code

Connect Claude Code through the Anthropic Messages API.

/v1/messages
  1. Install Claude Code

    If Claude Code is already installed, skip to the gateway settings.

    Terminal
    npm install -g @anthropic-ai/claude-code
  2. Enable gateway model discovery

    Merge this into ~/.claude/settings.json and replace the placeholder with your key. On Windows, the file is in %USERPROFILE%\.claude\settings.json. Remove a conflicting apiKeyHelper or ANTHROPIC_AUTH_TOKEN so only one credential source is active. Keep the settings file private.

    settings.json
    {
      "env": {
        "ANTHROPIC_BASE_URL": "https://api.zokasta.com",
        "ANTHROPIC_API_KEY": "sk_live_...",
        "CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY": "1",
        "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-6",
        "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-4-6-thinking"
      },
      "model": "claude-sonnet-4-6"
    }
  3. Launch Claude Code

    Restart Claude Code after saving settings. It fetches the available Claude models at startup and adds them to /model. Run /status to check your connection. Use a current Claude Code release that supports gateway model discovery.

    Terminal
    claude

Pick a model

Use /model to select a discovered model without typing an ID. The catalog respects your API key's model allowlist. If your key restricts models, choose an allowed model as your default. Claude models are restricted to Claude Code.