OpenCode
Set up OpenCode on the computer running Amble.
On this page
How Amble runs OpenCode
Amble runs OpenCode through your installed opencode CLI. It uses your
existing credentials and configuration, so one OpenCode setup can reach several model
sources, including a local model.
Connect it
- OpenCode installed on the computer running Amble.
- OpenCode connected to a model provider.
-
Install OpenCode
npm install -g opencode-ai -
Connect a model provider
Make sure
opencoderuns in a terminal. If you use OpenCode v2, install version 2.0.10 or later; older v2 versions are rejected. -
Open the agent list
Go to SettingsAI & agents. The Connections tab lists each agent and whether it is ready.
-
Start an agent
Open a project and choose OpenCode in the chat box. Check the provider and model before you send.
OpenCode shows as available under SettingsAI & agents and you can pick it in the chat box.
Modes
Amble shows OpenCode agents as modes. Primary agents you define in OpenCode appear in the same list.
| Mode | Effect |
|---|---|
| Build | Allows edits and tool execution. |
| Plan | Read-only planning. OpenCode avoids file edits. |
If it doesn’t appear
If opencode isn’t found, Amble can’t start the agent. Check that the
command runs in a terminal on the computer running Amble, then select
Refresh on the provider’s page. If Amble was already open when
you installed the CLI, restart it first.
See also
Connect a coding agent covers the agent list and sign-in. Multiple AI accounts and fallback covers more than one account. Configuration and credentials says where each setting lives.