- OpenCode Go subscription: connect an OpenCode Go API key from OpenCode Zen.
- Aster API key: use Aster’s OpenAI-compatible inference.
- OpenRouter API key: bring your own OpenRouter key for pay-as-you-go model routing.
OpenCode Go Subscription
OpenCode Go uses your OpenCode Go subscription for Opencode’s hosted open-source models. Create an API key in OpenCode Zen and store it in Coding Agents settings.- Open Organization → Coding Agents during onboarding or anytime later, expand Opencode → OpenCode Go, and click Connect OpenCode Go.
- Paste the API key from your OpenCode Zen account.
- Replicas stores the key in the credential vault and injects it into OpenCode workspaces.
Connecting or reconnecting an organization subscription refreshes warm workspaces so the new credentials take effect. Model usage bills to the connected OpenCode Go account. If the provider reports that the subscription limit has been reached, Replicas stops the active turn and shows the provider message in chat.
OpenRouter API Key
Use an OpenRouter API key instead of, or as a fallback to, OpenCode Go. The OpenRouter key is shared with Pi. Neither OpenCode Go nor OpenRouter uses an OAuth flow like Claude Code or Codex.- Create an API key from the OpenRouter keys page.
- Paste it under Opencode → OpenRouter API Key in Coding Agents settings. The same credential also appears under Pi → OpenRouter API Key.
OpenCode Go usage follows your subscription limits. OpenRouter usage bills to the OpenRouter account that owns the key.
Aster API Key
Use one Aster API key for Opencode and Pi.- Create a key in the Aster console.
- Paste it under Opencode → Aster API Key or Pi → Aster API Key in Coding Agents settings.
sk_aster_. Aster uses https://api.asterlab.ai/v1 for OpenAI-compatible inference.
Models
The workspace model picker follows the active Opencode credential. With an OpenCode Go key, it reads the activeopencode-go entry from the OpenCode catalog and omits models marked alpha or deprecated.
Aster provides:
With OpenRouter, organization admins choose which models are available. Expand Opencode → OpenRouter models in Coding Agents settings and enable models from the connected OpenRouter account, listed by weekly popularity. The selection applies to the workspace picker, automation validation, and models requested through the API. A model that is not enabled is rejected.
Until an admin changes the selection, OpenRouter provides:
Set the default model under Organization → Settings → Preferences or per-user in Personal → Preferences. Each workspace remembers the model selected for Opencode in the composer’s harness/model picker.
Thinking levels use Opencode’s native model variants when the selected model exposes a matching variant. Models without a matching variant use Opencode’s model default.
Using Opencode in Workspaces
Every workspace can have multiple chats. Pick Opencode from the composer’s harness/model picker to start or continue an Opencode session. Opencode agents can:- Read and edit files in the cloned repository
- Run shell commands in the workspace VM
- Use environment MCP servers
- Create branches, commits, and pull requests
- Use Plan Mode to propose a plan before changing code
- Load repository skills when the runtime can discover them
/goal).
Plan Mode
Start a message with/plan or toggle plan mode in the composer. Opencode runs in plan mode and returns a structured plan you can review in the Canvas tab before asking it to implement.
Chat history
Opencode chat history persists across turns and survives workspace sleep. Usereplicas read from the CLI to inspect transcript history from your terminal.
Programmatic Use
Select Opencode anywhere Replicas accepts a coding agent:
Example CLI:
When to Use Opencode
Opencode is a strong fit when:- You want to bill against an OpenCode Go subscription with a single API key
- You want OpenRouter-backed model routing inside Replicas workspaces
- You want to compare GLM 5.2, MiniMax M3, MiMo V2.5 Pro, and Kimi K2.6 on the same repository
- You want a non-Claude, non-OpenAI model family for implementation and iteration