Harnesses
Console works with coding agents other than OpenCode. Point a harness at the Console gateway with an API key, and usage is billed to your workspace like any other request.
| Harness | Pay-as-you-go | Go | Models | MCP |
|---|---|---|---|---|
| Claude Code | Yes | Yes | Anthropic Messages models | Yes |
| Codex | Yes | Yes | OpenAI Responses models | Yes |
| Hermes | Built in | Built in | All models | Yes |
| Pi | Built in | Built in | All models | Yes |
| Raycast | Extension | Extension | All models | Yes |
Get an API key
Harnesses authenticate with a Console API key. The quickest option is a personal API key, which calls models as you.
- Open Account from the account menu in the Console.
- Under Personal API keys, click Add API key.
- Choose the workspace, name the key, and click Create.
- Copy the key. It is shown only once.
oc_sk_1a2b3c4d5e6f_...
Usage counts toward your member budget. Use a key from a workspace with credits for pay-as-you-go, or from a workspace subscribed to Go for Go.
For shared machines or CI, owners and admins can create a service account key instead, so usage isn’t tied to one person.
Base URLs
Pay-as-you-go and Go are served from different base URLs. Use the one that matches your plan.
| Plan | Base URL |
|---|---|
| Pay-as-you-go | https://opencode.ai/inference |
| Go | https://opencode.ai/inference/go |
Append the path for the API your harness speaks.
| API | Path |
|---|---|
| OpenAI Responses | /openai/v1/responses |
| OpenAI Chat Completions | /openai/v1/chat/completions |
| Anthropic Messages | /anthropic/v1/messages |
| Gemini | /google/v1beta/models/<model>:generateContent |
https://opencode.ai/inference/go/openai/v1/chat/completions
Choose an API
A harness can only use the models that accept the API it speaks. Most models accept one API, and some accept several. The endpoint column in the Console and Go tables lists one API per model, so check the harness page for the full list.
Hermes, Pi, and the Raycast extension pick the right API for each model, so they can use every model. Claude Code and Codex speak a single API and only reach part of the catalog.
| Harness | API | Models |
|---|---|---|
| Claude Code | Anthropic Messages | Claude and Qwen, plus Kimi K3, DeepSeek V4, and MiniMax M3 on Go |
| Codex | OpenAI Responses | GPT, Grok, and Muse Spark, plus DeepSeek V4 on Go |
Sessions
Send a stable session ID with every request so Console can route a conversation consistently and reuse its prompt cache. Go requires it.
x-opencode-session: ses_...
Console also recognizes the native session headers sent by Claude Code, Codex, Hermes, and Pi, so they need no extra configuration.
Console MCP
Harnesses with MCP support can manage your workspace through the Console MCP server. It uses OAuth with dynamic client registration, so you sign in from the browser instead of pasting a key.
https://opencode.ai/console/mcp
Each harness page shows how to add it.