Docs
Skip to content

Use with Claude Code

Claude Code can connect through the Anthropic-compatible /v1/messages endpoint.

Requirements

  • Node.js 18+
  • An API token created in the gateway console

Configure

bash
export ANTHROPIC_BASE_URL="https://api.geoq.help"
export ANTHROPIC_AUTH_TOKEN="sk-your-token"

Persist the variables in your shell profile if needed:

bash
echo 'export ANTHROPIC_BASE_URL="https://api.geoq.help"' >> ~/.zshrc
echo 'export ANTHROPIC_AUTH_TOKEN="sk-your-token"' >> ~/.zshrc
source ~/.zshrc

Use ANTHROPIC_AUTH_TOKEN, not ANTHROPIC_API_KEY, for custom gateway tokens.

Verify

bash
claude

Choose a Claude model with /model, then send a test message. If the gateway Logs page shows the request, the connection is working.

基于 new-api 二次开发,AGPL-3.0 协议