OpenCode
Solanum runs the OpenCode you installed, with the model providers you connect to it. This page covers installing it, connecting providers, and what works with it in a thread.
Install it
Open Settings › Providers and choose the OpenCode profile. If it isn't in the list, choose + and pick it under Set up. If opencode isn't on this computer, the Runtime section says so and offers Install, which runs OpenCode's own installer into your home folder.
If you installed it yourself, Solanum finds opencode in your PATH and the usual install folders. Binary path names it when it's somewhere else.
Solanum needs OpenCode 2.2.0 or later. An older one reads Not working, with the command that installs the current one.
Sign in
OpenCode signs in to model providers, not to one account. In the profile, the Providers section lists what it's connected to, and connects another: with an API key, or in the browser where the provider signs in that way. Disconnect removes one.
Until you connect a provider, the profile reads Free models only, and the model menu offers OpenCode Zen's free models.
Sign-ins stay with OpenCode and are shared by every OpenCode profile. A profile's Config folder, given to OpenCode as OPENCODE_CONFIG_DIR, holds its settings, such as its providers and models. The default is ~/.config/opencode. A provider's key can also go in that folder's opencode.json, or under Environment.
How Solanum runs it
Solanum starts your installed opencode as a background server and talks to it there. It bundles no OpenCode of its own, so your version and settings are the ones a terminal would use.
Choose a model and effort
The model menu lists the models of every provider OpenCode is connected to. A model's variants are offered as Effort, with Default for the model as it comes.
Set its access
Access says what a thread may do without asking. Change it from the model menu, or press ⇧⌘A. Auto isn't offered, as OpenCode has no safety check of its own to lean on.
| Access | What OpenCode does |
|---|---|
| Ask first | Reads the project and asks before editing files, running commands, or fetching pages. |
| Auto edit | Edits files in the project without asking; asks before running commands. |
| Full access | Edits files and runs commands anywhere without asking. |
Questions, images and MCP servers
When OpenCode asks you a question, it shows in the thread as a form, and your answers go back to it. What it asks leave for shows the same way, and so does what one of its subagents asks.
Files you attach, images among them, are handed to OpenCode as files.
OpenCode uses the MCP servers in its opencode.json or opencode.jsonc, in its config folder and in a project, and gets Solanum's tools, such as the browser, in every thread. See Skills and MCP servers.
Keep it up to date
The profile's Version row says when a newer release is out. Update runs opencode upgrade once no thread is running OpenCode. Update all, above the list, does the same for every agent.