Base URLs
| Client style | Base URL |
|---|---|
| OpenAI-compatible clients | https://api.phaseo.app/v1 |
| Anthropic-compatible clients | https://api.phaseo.app |
SDKs and direct clients
OpenAI SDK
Use official OpenAI clients with the AI Stats base URL.
Anthropic SDK
Use Anthropic-compatible clients through
/v1/messages.AI SDK
Use the first-party AI Stats provider for the Vercel AI SDK.
LiteLLM
Route LiteLLM traffic through AI Stats or expose AI Stats behind a LiteLLM proxy.
App and agent frameworks
LangChain
Use LangChain Python with
ChatOpenAI and the AI Stats base URL.LlamaIndex
Use AI Stats for RAG and indexing workflows.
PydanticAI
Build typed Python agents against AI Stats.
Mastra
Use AI Stats inside Mastra agents and workflows.
TanStack AI
Connect TanStack AI’s OpenAI-compatible adapter.
Effect AI SDK
Use AI Stats from Effect TypeScript applications.
Coding assistants and observability
Coding Assistants
Add AI Stats as a model provider in Cursor, VS Code, Continue, Aider, Cline, Roo Code, Kilo Code, and related tools.
Claude Code
Route Claude-compatible coding workflows through AI Stats.
Codex
Use AI Stats as a Codex provider.
OpenCode
Use OpenCode with AI Stats routing and analytics.
Observability
Send AI Stats traffic through Langfuse, LangSmith, OpenTelemetry, or similar tooling.
Docs MCP
Add live AI Stats documentation to coding agents and assistants.
Useful defaults
- Set
AI_STATS_API_KEYonce and map it to the environment variable expected by the client. - Keep the model id unchanged, for example
openai/gpt-5-nano. - Use
https://api.phaseo.app/v1for OpenAI-compatible libraries unless the tool explicitly asks for the root host. - Use
https://api.phaseo.appfor Anthropic-compatible SDKs and tools that append/v1/messages. - Test streaming and tool calling in staging before moving agent traffic over.