Prerequisites
Installation methods
Method 1: Let an AI agent install it (recommended)
The easiest and most reliable way:Answer subscription questions
The agent will ask about:
- Claude Pro/Max subscription (max20 mode?)
- ChatGPT Plus subscription
- Gemini access
- GitHub Copilot subscription
- OpenCode Zen access
- Z.ai Coding Plan subscription
Method 2: Interactive installer
Run the installer manually and answer the prompts:The CLI ships with standalone binaries for all major platforms:
- macOS (ARM64, x64)
- Linux (x64, ARM64, Alpine/musl)
- Windows (x64)
Method 3: Non-interactive installer
If you know exactly which providers you have, use flags:Provider authentication
After installation, authenticate the providers you selected.Anthropic (Claude)
Select Anthropic provider
In the interactive terminal, choose:
- Provider: Anthropic
- Login method: Claude Pro/Max
Complete OAuth flow
A browser window will open. Sign in with your Anthropic account and authorize OpenCode.
Google Gemini (Antigravity OAuth)
Configure Gemini models
Read the opencode-antigravity-auth documentation.Copy the full model configuration from the README and merge carefully to avoid breaking existing setup.
The plugin uses a variant system:
antigravity-gemini-3-prosupportslow/highvariants- Use
--variant=highinstead of separate-highmodel entries
Override Oh My OpenCode agent models
In Available Antigravity models:
~/.config/opencode/oh-my-opencode.json:google/antigravity-gemini-3-pro— variants:low,highgoogle/antigravity-gemini-3-flash— variants:minimal,low,medium,highgoogle/antigravity-claude-sonnet-4-6— no variantsgoogle/antigravity-claude-sonnet-4-6-thinking— variants:low,maxgoogle/antigravity-claude-opus-4-5-thinking— variants:low,max
google/gemini-2.5-flash,google/gemini-2.5-pro,google/gemini-3-flash-preview,google/gemini-3-pro-preview
Authenticate
- Provider: Google
- Login method: OAuth with Google (Antigravity)
OpenAI (ChatGPT Plus)
GitHub Copilot (fallback provider)
GitHub Copilot acts as a proxy provider when native providers are unavailable. Provider priority:| Agent | Model |
|---|---|
| Sisyphus | github-copilot/claude-opus-4-6 |
| Oracle | github-copilot/gpt-5.2 |
| Explore | opencode/gpt-5-nano |
| Librarian | zai-coding-plan/glm-4.7 (if Z.ai available) |
Z.ai Coding Plan
Z.ai provides access to GLM-4.7 models. When enabled, Librarian agent always useszai-coding-plan/glm-4.7 regardless of other providers.
Authenticate via Z.ai dashboard
Visit https://z.ai/subscribe and subscribe to the Coding Plan ($10/month).Follow Z.ai’s authentication instructions to connect with OpenCode.
| Agent | Model |
|---|---|
| Sisyphus | zai-coding-plan/glm-4.7 |
| Oracle | zai-coding-plan/glm-4.7 |
| Explore | zai-coding-plan/glm-4.7-flash |
| Librarian | zai-coding-plan/glm-4.7 |
OpenCode Zen
OpenCode Zen provides access toopencode/ prefixed models:
opencode/claude-opus-4-6opencode/gpt-5.2opencode/gpt-5-nanoopencode/glm-4.7-free
Model mappings when OpenCode Zen is the best available provider:
| Agent | Model |
|---|---|
| Sisyphus | opencode/claude-opus-4-6 |
| Oracle | opencode/gpt-5.2 |
| Explore | opencode/gpt-5-nano |
| Librarian | opencode/glm-4.7-free |
Verify installation
Understanding your model setup
The installer auto-configured agent models based on your subscriptions. Here’s what you got:Model families
Claude-like models (instruction-following, structured output):- Claude Opus 4.6, Claude Sonnet 4.6, Claude Haiku 4.5
- Kimi K2.5 — behaves very similarly to Claude, great all-rounder
- GLM 5 — Claude-like behavior, good for broad tasks
- Big Pickle (GLM 4.6) — free-tier GLM, decent fallback
- GPT-5.3-codex — deep coding powerhouse, required for Hephaestus
- GPT-5.2 — high intelligence, default for Oracle
- GPT-5-Nano — ultra-cheap, fast utility tasks
- Gemini 3 Pro — excels at visual/frontend tasks, different reasoning style
- Gemini 3 Flash — fast, good for doc search and light tasks
- MiniMax M2.5 — fast and smart for utility tasks
- Grok Code Fast 1 — very fast, optimized for code grep/search
Agent model assignments
Claude-optimized agents (prompts tuned for Claude-family):| Agent | Role | Default Chain |
|---|---|---|
| Sisyphus | Main ultraworker | Opus (max) → Kimi K2.5 → GLM 5 → Big Pickle |
| Metis | Plan review | Opus (max) → Kimi K2.5 → GPT-5.2 → Gemini 3 Pro |
| Agent | Role | Default Chain | GPT Prompt? |
|---|---|---|---|
| Prometheus | Strategic planner | Opus (max) → GPT-5.2 (high) → Kimi K2.5 → Gemini 3 Pro | Yes — XML-tagged, principle-driven |
| Atlas | Todo orchestrator | Kimi K2.5 → Sonnet → GPT-5.2 | Yes — GPT-optimized todo management |
| Agent | Role | Default Chain |
|---|---|---|
| Hephaestus | Deep autonomous worker | GPT-5.3-codex (medium) only |
| Oracle | Architecture/debugging | GPT-5.2 (high) → Gemini 3 Pro → Opus |
| Momus | High-accuracy reviewer | GPT-5.2 (medium) → Opus → Gemini 3 Pro |
| Agent | Role | Default Chain |
|---|---|---|
| Explore | Fast codebase grep | MiniMax M2.5 Free → Grok Code Fast → Haiku |
| Librarian | Docs/code search | MiniMax M2.5 Free → Gemini Flash → Big Pickle |
| Multimodal Looker | Vision/screenshots | Kimi K2.5 → Kimi Free → Gemini Flash |
Safe vs dangerous overrides
Safe (same family):- Sisyphus: Opus → Sonnet, Kimi K2.5, GLM 5
- Prometheus: Opus → GPT-5.2 (auto-switches prompt)
- Atlas: Kimi K2.5 → Sonnet, GPT-5.2 (auto-switches)
- Sisyphus → GPT: No GPT prompt. Will degrade significantly.
- Hephaestus → Claude: Built for Codex. Claude can’t replicate this.
- Explore → Opus: Massive cost waste. Explore needs speed, not intelligence.
- Librarian → Opus: Same. Doc search doesn’t need Opus-level reasoning.
Custom configuration
Override specific agents or categories in~/.config/opencode/oh-my-opencode.json:
See the Configuration Reference for all available options.
Troubleshooting
Plugin not loading
Plugin not loading
Check
~/.config/opencode/opencode.json contains "oh-my-opencode" in the plugin array.If missing:Authentication failing
Authentication failing
Clear auth cache and re-authenticate:
Sisyphus not responding
Sisyphus not responding
Check if Claude is authenticated:If not listed, run:Select Anthropic → Claude Pro/Max.
Hephaestus unavailable
Hephaestus unavailable
Models not showing in config list
Models not showing in config list
Plugin load timeout may be too short. The plugin needs time to load all configurations.Wait 10-15 seconds after starting OpenCode, then check again:
Next steps
Run your first ultrawork
Try ultrawork mode and see parallel agent execution in action
Learn about agents
Deep dive into each agent’s role and capabilities
Customize configuration
Override models, disable features, and tune for your workflow
Troubleshooting guide
Solutions for common issues and advanced debugging