Skip to content
Yardmaster Guide

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.

Advanced2 minutes

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#

  1. Open Settings > Accounts, turn on Show alternative AI providers, and open OpenCode (CLI provider) under Other AI tools.

  2. Click Set it up for me. It installs the OpenCode program, turns OpenCode on, and reuses your saved Anthropic key if you have one.

  3. If you had no Anthropic key saved, paste one into OpenCode API Key (Anthropic).

Set up OpenCode for meSettings, AccountsOne click installs the OpenCode CLI, turns it on, and reuses your saved Anthropic keyOpen in YardmasterOpens Yardmaster. Don't have it? Download

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.

OpenCode modelSettings, AccountsWhich model OpenCode runs: Claude (default), Kimi, GPT, or a custom provider/modelOpen in YardmasterOpens Yardmaster. Don't have it? Download

Did this help?