The panel
OpenCode
The optional second engine: what changes when an agent runs on OpenCode instead of Claude Code.
OpenCode is the second engine Silos can drive. It is optional: install the opencode binary and pick it for an agent. Agents on OpenCode can use any provider OpenCode supports. Agents on Claude Code and agents on OpenCode work side by side in the same fleet, with the same Home, Needs you, tasks, automations, vault and territory.
Turning it on for an agent
- Install OpenCode on the machine. The minimum version is 1.19.4. An older OpenCode is refused before any console or turn starts, with
opencode upgradeas the fix. Silos finds the binary onPATH, or in~/.opencode/bin, where OpenCode’s installer puts it. - When you create the agent (the New agent form), under Harness, choose OpenCode. The harness is chosen at creation: the agent’s settings show it but do not change it.
- Give it something to run on: in Settings › Providers, a key for a provider OpenCode already knows, an Anthropic-compatible endpoint, or OpenCode’s own login. If you have no OpenCode logins yet, run
opencode auth login, then import the login in Providers. Silos reads an OpenCode login only when you import it.
Settings shows OpenCode’s installed version under its own section, next to Claude Code’s.
How it runs
| Claude Code | OpenCode | |
|---|---|---|
| Console | claude in tmux |
OpenCode’s TUI in tmux, with its small local HTTP server bound to 127.0.0.1 |
| Chat turn | one Agent SDK query | one opencode run --format json process |
| Session id | chosen by Silos | minted by OpenCode (ses_…) and reported back by Silos’ OpenCode plugin |
| Where sessions live | JSONL transcripts | SQLite: ~/.silos/agents/<id>/opencode.db per agent; sessions you launch by hand in ~/.local/share/opencode/opencode.db |
| Delete | moves the transcript to the trash | hides the session on Silos’ side; the database is never written |
Silos opens every OpenCode database strictly read-only. Text you send to a live OpenCode console goes through the TUI’s own HTTP API rather than as keystrokes. A started conversation can switch between console and chat, as on Claude Code. When you choose the mode that skips permission prompts, Silos runs OpenCode with its own --auto flag, in the console and in chat turns alike.
Silos ships a separate plugin for OpenCode (plugin-opencode/). It carries the same conventions and skills as the Claude Code plugin, and its hooks talk only to the Silos API and to OpenCode’s own local server.
What differs
Accounts and models. Claude accounts are a Claude Code feature, so an agent on OpenCode never runs on one. Its default provider is OpenCode’s own login. Models are named the way OpenCode names them, provider/model, from OpenCode’s own model list. A model picked inside the TUI with /models becomes the conversation’s pin in Silos.
Permission questions reach Needs you. OpenCode reports a permission request as an event. Silos turns it into a Needs you row you can answer from Home, and the answer goes back to the running session.
Skills. Silos’ skills reach OpenCode through its config’s skills.paths. Your personal ~/.claude/skills load too, unless OpenCode’s own environment settings say otherwise. Claude Code plugins never load on OpenCode. A skill held in a folder is denied at launch through OpenCode’s permission.skill, so held means off on both engines.
Territory. The same fence is translated into OpenCode’s permission config. Every agent’s territory also denies OpenCode’s login file (auth.json) and the places OpenCode loads behaviour from (opencode.json, .opencode/, ~/.config/opencode/), whatever engine the agent runs on. A fenced agent on OpenCode runs without the project’s own opencode.json. Silos passes the project instructions itself. See Territory.
What the context column can show. Some things are read from records only Claude Code writes, so on OpenCode they are absent rather than filled with a guess:
- no «Started with» breakdown of the first reply;
- no «% context» in the status line;
- no plan-mode proposal (OpenCode’s plan mode is an agent with edits off, with no proposal record to read);
- no output style: the field is never offered;
- Usage says «not measured on OpenCode» for its conversations instead of inventing tokens.
The Checklist does appear when OpenCode wrote one with its todowrite tool.
Heartbeats. A heartbeat turn on OpenCode has web fetch, web search and subagents denied through OpenCode’s own permission config. See Control.
Console colours. OpenCode’s section in Settings has a «Console colours» row. The console can follow Silos’ light and dark theme, or keep OpenCode’s own theme, which you change with /theme inside the console.
When to choose it
On Claude Code an agent runs on a Claude account or an Anthropic-compatible endpoint. OpenCode adds what Claude Code cannot run: a key for a provider OpenCode already knows (MiniMax, Z.ai and Kimi, for example), handed to that agent alone, or OpenCode’s own login. Everything Silos does around the agent (identity, tasks, automations, vault, territory, Needs you) stays the same. Only the engine underneath and the few gaps listed above change.