Skip to content

Terminal

A fast terminal UI that works in any shell, editor or remote server. Describe what you want in plain words, watch each edit land as a diff, and choose which commands run on their own.

Features

Ask in plain words

Type what you want, and the agent shows its plan as it works.

Approve what runs

Edits show as diffs, and commands wait for your permission.

Make it yours

Switch themes in a keystroke, from the default to tokyonight and more.

Mini

Run opencode mini and replies print into your own scrollback.

  • Any terminalWorks in any shell, in your editor's terminal or on a remote server.
  • Diffs in the timelineSee each edit as a diff in the timeline, as the agent makes it.
  • Pick up laterContinue the last session with -c, or any with -s.
  • One-off runsopencode run sends one message and prints the reply.
  • Agents and commandsSwitch agents with shift+tab and open every command with ctrl+p.
  • Auto-approveRun with --auto to allow every action you haven't denied.
  • Any serverConnect to an OpenCode server by URL with --server.
  • Usage statsopencode stats shows shareable usage statistics.

  • curlcurl -fsSL https://opencode.ai/v2/install | bash
  • npmnpm install -g @opencode/cli
  • bunbun install -g --trust @opencode/cli
  • brewbrew install anomalyco/tap/opencode-v2
  • paruparu -S opencode-beta

Changelog

  1. v2.4.4

    Jump to Sessions by ID and Deep Links

    Paste a session ID into the Command Palette in Desktop or TUI to jump straight to any session across servers, or open sessions directly via opencode://session/<id> deep links.#67779#64180

    See all highlights in v2.4.4

    Improvements

    • Core, TerminalAdded experimental.tool.auto and experimental.permission.save managed policy actions, with required prompts for unparseable shell commands when shell deny policies are active.#67687#67867

    Fixes

    • TerminalReloaded textarea keybindings live when config changes without restarting TUI. Thanks @OpeOginni.#66127
  2. v2.4.3

    Added Find in session behind the Find in session experiment (`experimental["session-find"]

    Added Find in session behind the Find in session experiment (experimental["session-find"]: true): press <leader>f, super+f, or run /find to search loaded messages incrementally.#64870

    See all highlights in v2.4.3

    Improvements

    • TerminalText selections now render using theme colors (text.selection and background.selection), and provider lists now use the same ordering as Desktop and opencode auth login.#65776#66736

    Fixes

    • TerminalFixed three batches of TUI issues covering session list pinning and renaming, stashed input modes, pinned permission prompts, "none" in keybind arrays, "Jump to latest", Mermaid bold tags and unspaced edge labels, symlinked cli.json live reload, clickable bare URLs in user messages, unmatched leader sequences, and opencode mini --replay-limit, plus an empty slot-path hang.#66795#66813#66841#66863
  3. v2.4.2

    The model picker stays responsive with large catalogs, such as OpenRouter's

    See all highlights in v2.4.2

    Improvements

    • TerminalThe goal dialog scrolls when the goal is long.#65906
    • TerminalUpdated OpenTUI to 0.9.9.#65919

    Fixes

    • TerminalFixed /models showing only free models when the TUI opened a session in another directory.#66424
    • TerminalFixed type-to-filter in Message Actions.#65903
    • TerminalFixed removing theme from config not switching back to the default theme.#65925
    • TerminalFixed quick successive settings changes overwriting each other.#65761
    1 more fixes
See all updates