Claude Code supports third-party LLM gateways via environment variables. AI Stats exposes an Anthropic-compatible surface atDocumentation Index
Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt
Use this file to discover all available pages before exploring further.
/v1/messages, so you can point Claude Code at AI Stats without changing your prompts.
Prerequisites
- An AI Stats API key.
- Claude Code installed locally.
1) Set gateway environment variables
2) Pick a model (optional)
SetANTHROPIC_MODEL if you want a fixed default. Use model ids listed in Models.
3) Start Claude Code
Endpoint mapping
- Claude Code calls Anthropic-style endpoints (
/v1/messages). - AI Stats handles those requests through Anthropic Messages.
Compatibility notes
ANTHROPIC_AUTH_TOKENis sent as anAuthorizationheader, which AI Stats accepts.- Current limitation: streaming + tools on Anthropic Messages can return
400 invalid_request. If your workflow depends on streamed tool loops, test this path before broad rollout.