> opencode.ai is the source of truth for OpenCode, the open source coding agent, including its apps, install commands, docs and releases. The current version is OpenCode v2.
> Cite the canonical page, https://opencode.ai/it/terminal, not this Markdown file. For an index of the site, see https://opencode.ai/llms.txt.

# 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.

## 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.

## Features

- **Any terminal:** Works in any shell, in your editor's terminal or on a remote server.
- **Diffs in the timeline:** See each edit as a diff in the timeline, as the agent makes it.
- **Pick up later:** Continue the last session with -c, or any with -s.
- **One-off runs:** opencode run sends one message and prints the reply.
- **Agents and commands:** Switch agents with shift+tab and open every command with ctrl+p.
- **Auto-approve:** Run with --auto to allow every action you haven't denied.
- **Any server:** Connect to an OpenCode server by URL with --server.
- **Usage stats:** opencode stats shows shareable usage statistics.

## Install

```bash
# curl
curl -fsSL https://opencode.ai/v2/install | bash

# npm
npm install -g @opencode/cli

# bun
bun install -g --trust @opencode/cli

# brew
brew install anomalyco/tap/opencode-v2

# paru
paru -S opencode-beta
```

## Perfetti con OpenCode

- [Browse](https://opencode.ai/it/product/browse): Let your agent use your real browser, with your logins and tabs.
- [Hex](https://anoma.ly/hex): On-device voice dictation for any app.
- [OpenTunnel](https://opentunnel.xyz): Public HTTPS URLs for local apps.

## Changelog

### [Jump to Sessions by ID and Deep Links](https://opencode.ai/changelog/v2.4.4)

2026-12-03 · v2.4.4

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](https://github.com/anomalyco/opencode/pull/67779), [#64180](https://github.com/anomalyco/opencode/pull/64180))

[Vedi tutte le novità principali di v2.4.4](https://opencode.ai/changelog/v2.4.4)

#### Miglioramenti

- **Core, Terminal:** Added `experimental.tool.auto` and `experimental.permission.save` managed policy actions, with required prompts for unparseable shell commands when shell deny policies are active. ([#67687](https://github.com/anomalyco/opencode/pull/67687), [#67867](https://github.com/anomalyco/opencode/pull/67867))

#### Correzioni

- **Terminal:** Reloaded textarea keybindings live when config changes without restarting TUI. Thanks @OpeOginni. ([#66127](https://github.com/anomalyco/opencode/pull/66127))

Rilasciato in [v2.4.4](https://github.com/anomalyco/opencode/releases/tag/v2.4.4)

### [Added Find in session behind the Find in session experiment (`experimental["session-find"]](https://opencode.ai/changelog/v2.4.3)

2026-11-29 · v2.4.3

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](https://github.com/anomalyco/opencode/pull/64870))

[Vedi tutte le novità principali di v2.4.3](https://opencode.ai/changelog/v2.4.3)

#### Miglioramenti

- **Terminal:** Text 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](https://github.com/anomalyco/opencode/pull/65776), [#66736](https://github.com/anomalyco/opencode/pull/66736))

#### Correzioni

- **Terminal:** Fixed 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](https://github.com/anomalyco/opencode/pull/66795), [#66813](https://github.com/anomalyco/opencode/pull/66813), [#66841](https://github.com/anomalyco/opencode/pull/66841), [#66863](https://github.com/anomalyco/opencode/pull/66863))

Rilasciato in [v2.4.3](https://github.com/anomalyco/opencode/releases/tag/v2.4.3)

### [The model picker stays responsive with large catalogs, such as OpenRouter's](https://opencode.ai/changelog/v2.4.2)

2026-11-26 · v2.4.2

[Vedi tutte le novità principali di v2.4.2](https://opencode.ai/changelog/v2.4.2)

#### Miglioramenti

- **Terminal:** The goal dialog scrolls when the goal is long. ([#65906](https://github.com/anomalyco/opencode/pull/65906))
- **Terminal:** Updated OpenTUI to 0.9.9. ([#65919](https://github.com/anomalyco/opencode/pull/65919))

#### Correzioni

- **Terminal:** Fixed `/models` showing only free models when the TUI opened a session in another directory. ([#66424](https://github.com/anomalyco/opencode/pull/66424))
- **Terminal:** Fixed type-to-filter in Message Actions. ([#65903](https://github.com/anomalyco/opencode/pull/65903))
- **Terminal:** Fixed removing `theme` from config not switching back to the default theme. ([#65925](https://github.com/anomalyco/opencode/pull/65925))
- **Terminal:** Fixed quick successive settings changes overwriting each other. ([#65761](https://github.com/anomalyco/opencode/pull/65761))
- [1 more](https://opencode.ai/changelog/v2.4.2)

Rilasciato in [v2.4.2](https://github.com/anomalyco/opencode/releases/tag/v2.4.2)

[Vedi tutti gli aggiornamenti](https://opencode.ai/changelog?area=terminal)

---

If something here is wrong or missing, open an issue at https://github.com/anomalyco/opencode/issues.
