Guides

Connect Claude Code

Use Gonka24's Anthropic-compatible Messages API adapter with Claude Code and your existing Gonka24 API key.

Set environment variables

Create a Gonka24 API key, fetch an available model ID from /v1/models, then set the variables in the terminal where you run Claude Code.

bash
export ANTHROPIC_BASE_URL="https://api.gonka24.com"
export ANTHROPIC_AUTH_TOKEN="sk-..."
export ANTHROPIC_MODEL="<model-id-from-/v1/models>"
export ANTHROPIC_SMALL_FAST_MODEL="<model-id-from-/v1/models>"

claude

Why the URL has no /v1

Claude Code appends /v1/messages itself. Set ANTHROPIC_BASE_URL to the domain root — https://api.gonka24.com — rather than the OpenAI-compatible URL ending in /v1.

Verify the connection

  1. Run claude and send a short prompt.
  2. Confirm the response completes normally.
  3. Check the Gonka24 dashboard activity to confirm the request used your API key and selected model.

Claude Code uses the Anthropic Messages API adapter. For OpenAI SDKs and other compatible clients, keep using https://api.gonka24.com/v1.