Use this guide to add AI Stats as the model provider in coding assistants that support custom OpenAI-compatible or Anthropic-compatible endpoints.
Provider settings
Use these values unless the tool asks for a different field name:
| Setting | Value |
|---|
| Provider type | OpenAI Compatible |
| Base URL | https://api.phaseo.app/v1 |
| API key | Your AI Stats API key |
| Model | An AI Stats model id, such as openai/gpt-5-nano |
For Anthropic-compatible tools, use:
| Setting | Value |
|---|
| Base URL | https://api.phaseo.app |
| Auth token | Your AI Stats API key |
| Model | An AI Stats model id, such as anthropic/claude-sonnet-4.5 |
Cursor
Cursor supports custom OpenAI-compatible endpoints through its OpenAI API key settings.
- Open
Cursor Settings.
- Go to
Models.
- Enable or add the
OpenAI API Key entry.
- Paste your AI Stats API key.
- Enable
Override OpenAI Base URL.
- Set the base URL to
https://api.phaseo.app/v1.
- Add a custom model using an AI Stats model id, for example
openai/gpt-5-nano.
- Enable the model and verify it from the Cursor model picker.
If Cursor rejects a model id with /, create the closest local alias the UI allows and route that alias to the AI Stats model in your own config when the client supports aliases.
VS Code
VS Code supports adding models through the Language Models editor when the OpenAI-compatible provider is available in your VS Code or Insiders build.
- Open the Command Palette.
- Run
Chat: Manage Language Models.
- Choose
OpenAI Compatible or OAI Compatible.
- Enter your AI Stats API key.
- Set the endpoint or base URL to
https://api.phaseo.app/v1.
- Add an AI Stats model id, for example
openai/gpt-5-nano.
- Select the new model from the chat model picker.
If your VS Code build does not show an OpenAI-compatible provider, use an extension that supports custom providers, such as Continue, Cline, Roo Code, or Kilo Code.
Continue
Continue can use AI Stats through its OpenAI provider with a custom API base.
name: AI Stats
version: 0.0.1
schema: v1
models:
- name: AI Stats GPT-5 Nano
provider: openai
model: openai/gpt-5-nano
apiKey: ${{ secrets.AI_STATS_API_KEY }}
apiBase: https://api.phaseo.app/v1
roles:
- chat
- edit
- apply
For models where Continue defaults to Responses but your workflow needs Chat Completions compatibility, set useResponsesApi: false.
Cline, Roo Code, and Kilo Code
These tools expose similar provider settings.
- Open the extension settings.
- Choose
OpenAI Compatible as the provider.
- Set the base URL to
https://api.phaseo.app/v1.
- Paste your AI Stats API key.
- Enter an AI Stats model id.
- Save and run a small chat request before using file-editing tools.
Aider
Set OpenAI-compatible environment variables and pass the model on launch:
export OPENAI_API_BASE="https://api.phaseo.app/v1"
export OPENAI_API_KEY="your_ai_stats_api_key"
aider --model openai/openai/gpt-5-nano
Aider often expects OpenAI-compatible custom models to be prefixed with openai/. Because AI Stats model ids already include provider prefixes, the full Aider model string may look like openai/openai/gpt-5-nano.
Codex
Use the dedicated Codex guide. The short version is:
model = "openai/gpt-5-3-codex-2026-02-05"
model_provider = "ai_stats"
[model_providers.ai_stats]
name = "AI Stats"
base_url = "https://api.phaseo.app/v1"
env_key = "AI_STATS_API_KEY"
wire_api = "responses"
Claude Code
Use the dedicated Claude Code guide. Claude Code uses Anthropic-compatible gateway environment variables:
export ANTHROPIC_BASE_URL="https://api.phaseo.app"
export ANTHROPIC_AUTH_TOKEN="your_ai_stats_api_key"
export ANTHROPIC_API_KEY=""
Then start Claude Code from the same shell:
Claude Desktop
Claude Desktop supports MCP servers, but it does not expose the same custom model-provider setup as coding assistants such as Cursor, Codex, or Claude Code. Use Docs MCP to add AI Stats documentation context to Claude Desktop. Use Claude Code when you need AI Stats to be the model gateway.
Use the same base URL and API key settings as LangChain. If the tool reads OpenAI environment variables, set:
export OPENAI_API_KEY="your_ai_stats_api_key"
export OPENAI_BASE_URL="https://api.phaseo.app/v1"
Then pass an AI Stats model id in the tool’s model field.
Notes
- Coding assistants vary in how they handle slashes in model ids. If the UI rejects
openai/gpt-5-nano, create a local alias if the tool supports aliases.
- Test file-editing workflows carefully.
ai-stats:apply_patch is Responses-only.
- Add Docs MCP when you want the assistant to read AI Stats docs during a session.
- Prefer Chat Completions for older coding tools unless the tool explicitly supports Responses events and server tools.
Last modified on June 11, 2026