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_KEY

Understand 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.

ModeProtocol
Claude CodeAnthropic Messages-compatible
Claude model through Responses/ChatOpenAI-compatible request shape

Compatibility