Gengxi API Developer Docs
Claude Code
Connect Claude Code through the Anthropic Messages-compatible API.
Environment configuration
bashCopy
export ANTHROPIC_BASE_URL=https://api.gengxi.ai
export ANTHROPIC_AUTH_TOKEN=YOUR_API_KEYUnderstand the request mode
Claude Code uses the Anthropic Messages-compatible /v1/messages path. This differs from selecting a Claude model through OpenAI-compatible Responses or Chat Completions.
| Mode | Protocol |
|---|---|
| Claude Code | Anthropic Messages-compatible |
| Claude model through Responses/Chat | OpenAI-compatible request shape |