Skip to main content
Most integrations work by pointing an OpenAI-compatible or Anthropic-compatible client at AI Stats and using an AI Stats API key. Start with the guide for the tool you already use.

Base URLs

Client styleBase URL
OpenAI-compatible clientshttps://api.phaseo.app/v1
Anthropic-compatible clientshttps://api.phaseo.app
Use model ids from the Models endpoint. For new OpenAI-style apps, prefer Responses. For older libraries, Chat Completions is usually the safest path.

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_KEY once 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/v1 for OpenAI-compatible libraries unless the tool explicitly asks for the root host.
  • Use https://api.phaseo.app for Anthropic-compatible SDKs and tools that append /v1/messages.
  • Test streaming and tool calling in staging before moving agent traffic over.
Last modified on June 11, 2026