Skip to main content

OpenCode

OpenCode is a low-friction backend for users who want fast setup and an extensible local coding agent.

Install

curl -fsSL https://opencode.ai/install | bash
Verify:
opencode --version

Models & providers

OpenCode is provider-flexible: point it at a hosted model, an OpenAI-compatible endpoint, or a local model if you want inference on your own hardware too. That makes it the most “local all the way down” option of the three. Configure the model per agent in the Workbench.

Optional permission behavior

If you understand the tradeoff and want less interruption during agent work, configure OpenCode permissions according to your local policy. Example:
{
  "permission": "allow"
}
Only use broad permissions in repositories and machines where you’re comfortable with that level of autonomy.

Configure in Avibe

In the setup wizard:
  1. Enable OpenCode.
  2. Confirm the opencode CLI path.
  3. Choose a default working directory.
  4. Route one or more chat channels to OpenCode.

Best for

Fast iteration, lightweight tasks, and setups where you want inference local too. A common pattern routes your #frontend or quick-turnaround channels here — see Thread sessions for routing.