opencode-cli

Installation
SKILL.md

opencode CLI docs (v2)

Overview

opencode v2 changed the CLI, and what you remember is probably v1: v2 runs one shared background server per account (--standalone for a private one, --server <url> to pick one), sessions live under opencode session ..., and CLI/TUI settings are in cli.json (not opencode.json). Do not give opencode commands or flags from memory. Look them up first:

  1. opencode <command> --help on the installed version, when you can run it.
  2. ERRATA.md beside this file: known mistakes in the docs below.
  3. references/: the v2 CLI docs cached as Markdown.

When they disagree, the higher source wins.

Which reference

Installs
2
First Seen
4 days ago