Skip to main content

Claude Code

Connect GonkaGate to Claude Code through the curated Anthropic-compatible gateway.

Connect GonkaGate to an existing Claude Code install through the curated Anthropic-compatible gateway. Start with the official installer, then verify the gateway before you trust a longer coding session.

Quick setup

Run the official installer:

Quick setup
npx @gonkagate/claude-code

This tool configures an existing local Claude Code install. It does not install Claude Code itself.

Use a regular GonkaGate API key in gp-... format. The setup uses the deployment root:

Example
ANTHROPIC_BASE_URL=https://api.gonkagate.com

Do not append /v1. Claude Code resolves Anthropic-compatible requests through POST /v1/messages and POST /v1/messages/count_tokens.

If Claude Code was previously connected directly to Anthropic, run this once before you relaunch it:

Command
claude auth logout

Before you start

  • Claude Code is already installed locally.
  • You already have a GonkaGate API key in gp-... format.
  • This setup uses the current public Claude Code model qwen/qwen3-235b-a22b-instruct-2507-fp8.

Verify the setup

Start Claude Code:

Verify the setup
claude

Then run:

Then run
/status

Confirm that the active gateway is https://api.gonkagate.com and the active model is qwen/qwen3-235b-a22b-instruct-2507-fp8.

If you want one direct gateway check first, send a token-count request:

Request Example
curl https://api.gonkagate.com/v1/messages/count_tokens \
  -H "Authorization: Bearer gp-YOUR_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen/qwen3-235b-a22b-instruct-2507-fp8",
    "messages": [
      {
        "role": "user",
        "content": [{"type": "text", "text": "Hello"}]
      }
    ]
  }'

Expected result: 200 OK with a JSON body that includes input_tokens.

Current limits

  • This path is intentionally scoped to the curated Claude Code setup on GonkaGate.
  • The current public Claude Code model is qwen/qwen3-235b-a22b-instruct-2507-fp8.
  • Use ANTHROPIC_BASE_URL=https://api.gonkagate.com at the deployment root, not https://api.gonkagate.com/v1.
  • Do not assume arbitrary Anthropic model IDs, full Anthropic API coverage, or custom base URL/model flexibility for this setup.

Official references

See also

Was this page helpful?