Run sessions on OpenCode
OpenCode is a separate coding agent. It runs Claude Sonnet on your Anthropic key, or almost any model through your OpenRouter key.
On this page
OpenCode is a separate coding agent you can run in Yardmaster. On its default setting it runs Claude Sonnet with your Anthropic API key. With an OpenRouter key it can run many other models, such as GPT, Kimi or DeepSeek.
Set up OpenCode#
Open Settings > Accounts, turn on Show alternative AI providers, and open OpenCode (CLI provider) under Other AI tools.
Click Set it up for me. It installs the OpenCode program, turns OpenCode on, and reuses your saved Anthropic key if you have one.
If you had no Anthropic key saved, paste one into OpenCode API Key (Anthropic).
Then start a session and, before your first message, pick OpenCode from the engine name next to the session title. OpenCode cannot be a project's default engine, so you pick it each time. See Choose your AI engine.
Run a different model#
Pick it under Model: Claude Sonnet (default), a few models through OpenRouter, or Custom… (type below) to type any model name OpenCode knows. For a model through OpenRouter, paste your key into OpenRouter API Key (for other models); one key reaches many models.
What does not work. OpenCode sessions do not get your connected tools (MCP servers) or images you attach, and Claude-only features such as asides do not apply.
After a restart. OpenCode keeps the conversation itself, so a session picks up where it left off after Yardmaster restarts.
Installing by hand. Without Set it up for me, install the
opencodeprogram yourself; the OpenCode CLI binary row says whether Yardmaster found it.
Related
- Choose your AI engineClaude runs your sessions by default. Turn on other engines, such as Codex, Gemini or DeepSeek, and pick one per session or per project.
- Run sessions on CodexCodex is OpenAI's coding agent. Run it in Yardmaster on your ChatGPT plan, next to your Claude sessions.
- Approve what your agents ask forAgents stop and ask before risky steps. Allow or deny them, approve requests in the Inbox, and choose how often they ask.