Skip to main content
Use this guide to connect coding agents to Phaseo. Choose the Phaseo CLI when you want managed credentials and configuration, or use the manual provider values when you want to keep setup inside the agent.

Choose a setup

Set up with the Phaseo CLI

Sign in once, then configure your coding harness:
This command checks whether the harness is installed. When it is missing in an interactive terminal, Phaseo shows the supported install command and asks before running it. Phaseo then creates the harness’s dedicated key and writes its configuration. Non-interactive runs print actionable installation guidance without making an unattended system change. OpenCode, fx, DeepSeek Harness, Pi, Prime Agent, and OpenClaw also receive every active text model compatible with Chat Completions. Use --skip-install, --catalog default, or --dry-run when you need narrower behavior. Use the product-named command for any persistent integration:
Supported integration names are codex, claude-code, opencode, fx, deepseek-harness, pi, openclaw, hermes, aider, cline, roo-code, kilo-code, continue, cursor, and zed. The isolated CLI runners are cline, kilo, omp, muse, and minimax. The CLI creates a separate API key named for that assistant, which expires after 90 days and has a $100 monthly spend limit. It configures Aider and Continue automatically on clean installations, and writes Zed’s provider/model settings automatically. For assistants that keep secrets exclusively in an editor UI, it prints the exact remaining fields, links the dedicated guide, and lets you copy only that assistant’s key:
Preview any file changes before setup, and disconnect cleanly later:
Removal deletes Phaseo-owned configuration and revokes that assistant’s key. It does not remove unrelated settings.

Manual provider settings

Use these values unless the tool asks for a different field name: For Anthropic-compatible tools, use:

Cursor

Cursor supports custom OpenAI-compatible endpoints through its OpenAI API key settings.
  1. Open Cursor Settings.
  2. Go to Models.
  3. Enable or add the OpenAI API Key entry.
  4. Paste your Phaseo API key.
  5. Enable Override OpenAI Base URL.
  6. Set the base URL to https://api.phaseo.app/v1.
  7. Add a custom model using a Phaseo model id, for example openai/gpt-5-nano.
  8. 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 Phaseo 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.
  1. Open the Command Palette.
  2. Run Chat: Manage Language Models.
  3. Choose OpenAI Compatible or OAI Compatible.
  4. Enter your Phaseo API key.
  5. Set the endpoint or base URL to https://api.phaseo.app/v1.
  6. Add a Phaseo model id, for example openai/gpt-5-nano.
  7. 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 Phaseo through its OpenAI provider with a custom API base.
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.
  1. Open the extension settings.
  2. Choose OpenAI Compatible as the provider.
  3. Set the base URL to https://api.phaseo.app/v1.
  4. Paste your Phaseo API key.
  5. Enter a Phaseo model id.
  6. Save and run a small chat request before using file-editing tools.

Aider

Set OpenAI-compatible environment variables and pass the model on launch:
Aider often expects OpenAI-compatible custom models to be prefixed with openai/. Because Phaseo model ids already include provider prefixes, the full Aider model string may look like openai/openai/gpt-5-nano.

Pi, Prime Agent, OpenClaw, and Hermes Agent

phaseo pi adds a dedicated provider extension that resolves its key from the Phaseo CLI at runtime. phaseo prime-agent writes a command-backed provider to ~/.prime/agent/models.json. Both receive the compatible Phaseo model catalog. phaseo openclaw registers the compatible model catalog plus an exec-backed SecretRef, without placing the API key in openclaw.json. phaseo hermes offers to run the official Nous Research installer when Hermes is missing, then configures the installed agent. It saves the previous Hermes model settings, configures Phaseo as the custom endpoint, and writes the dedicated key to Hermes’ .env file as OPENAI_API_KEY, inside a block marked # >>> phaseo managed (do not edit), so the key is never passed on a command line and your other lines are left alone. Phaseo asks Hermes where that file is: usually ~/.hermes/.env, %LOCALAPPDATA%\hermes\.env on native Windows, or the .env in HERMES_HOME. It also sets Hermes’ model.key_env to OPENAI_API_KEY so Hermes sends the key to Phaseo; run hermes update first if your Hermes version does not support model.key_env. Hermes deliberately uses this plaintext file for provider credentials; protect it like any other API-key file. Removal restores the previous model settings, removes OPENAI_API_KEY, deletes Phaseo’s recovery state, and revokes the key.

MiniMax Code

Use the dedicated MiniMax Code guide for the mcode CLI. phaseo minimax creates a temporary MiniMax provider with the Phaseo OpenAI-compatible endpoint, launches the CLI, and removes the temporary data directory when the session ends. MiniMax Code also supports ACP through mcode acp when an editor or host speaks ACP directly.

Zed

Run phaseo zed, then follow the printed steps to add an OpenAI-compatible provider in Zed’s settings. Use the generated key only in Zed’s credential prompt.

Codex

Use the dedicated Codex guide for Codex CLI, Codex App, and the Codex IDE extension. The short version is:
Codex custom providers use the Responses wire protocol.

OpenCode

Use the dedicated OpenCode guide when you want OpenCode to call Phaseo through an OpenAI-compatible custom provider.

fx

Use the dedicated fx guide to add Phaseo as a custom model connection in Vercel Labs’ fx coding agent.

Claude Code

Use the dedicated Claude Code guide. Claude Code uses Anthropic-compatible gateway environment variables:
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 agents such as Cursor, Codex, or Claude Code. Use Docs MCP to add Phaseo documentation context to Claude Desktop. Use Claude Code when you need Phaseo to be the model gateway.

Deep Agents CLI and LangChain tools

Use the same base URL and API key settings as LangChain. If the tool reads OpenAI environment variables, set:
Then pass a Phaseo model id in the tool’s model field.

Notes

  • Coding agents 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. phaseo:apply_patch is Responses-only.
  • Add Docs MCP when you want the assistant to read Phaseo docs during a session.
  • Prefer Chat Completions for older coding tools unless the tool explicitly supports Responses events and server tools.
Last modified on October 29, 2026