OpenCode CLI
See the generated compatibility matrix for capability details and version-scoped evidence.
opencode-cli is the OpenCode-backed harness for teams that already rely on OpenCode as their command-line assistant layer.
Good fit
- Provider-flexible environments that already use OpenCode
- Workflows where you want ctrlyoke orchestration without switching assistant tooling
Notes
- Install with
npm install -g opencode-aiand make sureopencode modelslists the models you want before selecting this harness. - The workflow surface is the same as the other CLI harnesses.
- Models use OpenCode's
provider/modelform. The dashboard lists whatopencode modelsreports for your setup. - Tool permissions (
mode,allowedTools,deniedTools), MCP servers, and ctrlyoke's completion plugin are delivered per process throughOPENCODE_CONFIG_CONTENT; ctrlyoke does not write a workspaceopencode.json. OpenCode's own categories are coarser than tool patterns (for example,writeandeditboth map to OpenCode'seditpermission). permissions.trustedExternalRootsis not passed to OpenCode; it has no--add-direquivalent.
Example
yaml
harness: opencode-cli
model: opencode/claude-sonnet-4-6
steps:
- prompt: Summarize the responsibilities of @src/platform/ and suggest one cleanup.