> ## Documentation Index
> Fetch the complete documentation index at: https://docs.avibe.bot/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenCode

> Run OpenCode through Avibe — from the browser Workbench or any chat app.

# OpenCode

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

## Install

```bash theme={null}
curl -fsSL https://opencode.ai/install | bash
```

Verify:

```bash theme={null}
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](/concepts/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:

```json theme={null}
{
  "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](/concepts/thread-sessions) for routing.
