Skip to documentation
deepthroat
DocsIntegrations
Terminal agent

Claude Code

Connect Claude Code to your key using the Anthropic-compatible endpoint.

Anthropic Messages
On this pageBefore you startSetupConfigurationVerify & troubleshoot

Before you start

One deepthroat key connects Claude Code to all Claude models. Add credits or start an hourly plan on that key.

11 Claude models · one connectionDiscover models from the API
Auto discovery

Setup

  1. 1
    Install or update Claude Code, then choose your operating system in the configuration below.
  2. 2
    Copy the commands, replace YOUR_API_KEY locally, and run them in the terminal where you launch Claude Code.
  3. 3
    Run /model inside Claude Code. Gateway discovery loads every Claude model your key can access.

Configuration

Starting model

All 11 models stay included. This only sets the initial selection.

Reasoning effort

Choose a supported level for this model. Higher effort can take longer.

settings.json11 models included · no API key embedded
Download
export ANTHROPIC_BASE_URL="https://api.cheapai.gay"
export ANTHROPIC_AUTH_TOKEN="YOUR_API_KEY"
export CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1
claude --model claude-opus-5

The settings.json tab is a persistent option: merge it into your user-level ~/.claude/settings.json and replace the key placeholder locally. The allowlist keeps the picker focused on our Claude models.

Reasoning controls
Use /effort to change the current model’s effort. The terminal command includes your choice; Max is session-only and is not saved in settings.json. After switching models, choose a supported level again.
Switch models inside your app
Open /model to switch between Claude models. Restart Claude Code to refresh gateway discovery. Update Claude Code if discovery is unavailable; older versions can use /model MODEL_ID from the included list.
Included models (11)
Claude Sonnet 5claude-sonnet-5Model default
Claude Sonnet 4.6 (Thinking)claude-sonnet-4.6lowmediumhighxhighmax
Claude Haiku 4.5claude-haiku-4.5Model default
Claude Opus 4.5claude-opus-4.5lowmediumhighxhighmax
Claude Opus 4.6 (Thinking)claude-opus-4.6lowmediumhighxhighmax
Claude Opus 4.7claude-opus-4.7lowmediumhighxhighmax
Claude Opus 4.8claude-opus-4.8lowmediumhighxhighmax
Claude Opus 5claude-opus-5lowmediumhighxhighmax
Claude Opus 5.5claude-opus-5.5lowmediumhighxhighmax
Claude Sonnet 5.5claude-sonnet-5.5lowmediumhigh
Claude Haiku 5.5claude-haiku-5.5lowmediumhighxhighmax

Effort labels show levels available through this harness. These are the current published text models. Your key’s access rules and model availability still apply. Image-generation models use a separate API.

Verify & troubleshoot

Send a short prompt and check Activity. If models are missing, verify the list with the same API key:

bash
curl "https://api.cheapai.gay/v1/models" \
  -H "Authorization: Bearer YOUR_API_KEY"
  • 401: replace the placeholder with your actual key and check that it is enabled.
  • 402: top up that key or start an hourly plan in the wallet.
  • 404: refresh the model list and check the endpoint. Use https://api.cheapai.gay as ANTHROPIC_BASE_URL.
  • Tool errors: select a tool-capable text model and read the tool calling guide.
Official Claude Code setup documentation