> 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/no/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
```

## Fungerer godt med OpenCode

- [Browse](https://opencode.ai/no/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

### [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))

[Se alle høydepunkter i v2.4.3](https://opencode.ai/changelog/v2.4.3)

#### Forbedringer

- **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))

#### Rettelser

- **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))

Utgitt i [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

[Se alle høydepunkter i v2.4.2](https://opencode.ai/changelog/v2.4.2)

#### Forbedringer

- **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))

#### Rettelser

- **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)

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

### [Config-Only Providers Show Their Models](https://opencode.ai/changelog/v2.4.1)

2026-11-23 · v2.4.1

Providers you set up only in your config, such as Ollama, now show their models in `/models` without a `/connect` login. ([#65793](https://github.com/anomalyco/opencode/pull/65793))

[Se alle høydepunkter i v2.4.1](https://opencode.ai/changelog/v2.4.1)

#### Forbedringer

- **Core, Terminal, Desktop:** With `experimental.model_speeds` enabled, model service tiers are exposed as remembered speeds instead of separate model-picker entries. ([#65749](https://github.com/anomalyco/opencode/pull/65749))

Utgitt i [v2.4.1](https://github.com/anomalyco/opencode/releases/tag/v2.4.1)

[Se alle oppdateringer](https://opencode.ai/changelog?area=terminal)

---

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