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:
npx @gonkagate/claude-codeThis 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:
ANTHROPIC_BASE_URL=https://api.gonkagate.comDo 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:
claude auth logoutBefore 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:
claudeThen run:
/statusConfirm 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:
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.comat the deployment root, nothttps://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
- Authentication and API Keys for key creation, storage, and rotation
- Framework and Tool Guides for a different framework or coding-tool path
- GonkaGate Quickstart if you still need one verified request from scratch