跳到主要內容

Terminal

快速的終端機介面,支援任何 shell、編輯器或遠端伺服器。用平常說話的方式描述需求,即時查看每項變更的 Diff,再決定哪些指令可自動執行。

功能

用日常語言提問

輸入你的需求,agent 會在工作時展示計畫。

由你核准要執行的指令

變更會以 Diff 顯示,指令要你核准後才會執行。

自訂你的終端機介面

用快捷鍵切換主題,可選預設、tokyonight 等多款主題。

Mini

執行 opencode mini,回覆會直接輸出到終端機的捲動歷史。

  • 任何終端機可在任何 shell、編輯器的終端機或遠端伺服器中使用。
  • 在時間軸查看 Diffagent 每次編輯後,都會立即在時間軸顯示 Diff。
  • 稍後繼續用 -c 繼續上一個工作階段,或用 -s 繼續任何工作階段。
  • 單次執行opencode run 傳送一則訊息並輸出回覆。
  • agent 與指令按 shift+tab 切換 agent,按 ctrl+p 開啟指令面板查看所有指令。
  • 自動核准以 --auto 執行,即可允許所有你未拒絕的動作。
  • 任何伺服器使用 --server 透過 URL 連線到 OpenCode 伺服器。
  • 用量統計opencode stats 會顯示可分享的用量統計。

  • 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

變更記錄

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

    查看 v2.4.3 的所有亮點

    改進

    • 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

    修正

    • 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
  2. v2.4.2

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

    查看 v2.4.2 的所有亮點

    改進

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

    修正

    • 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 項 修正
  3. v2.4.1

    Config-Only Providers Show Their Models

    Providers you set up only in your config, such as Ollama, now show their models in /models without a /connect login.#65793

    查看 v2.4.1 的所有亮點

    改進

    • Core, Terminal, DesktopWith experimental.model_speeds enabled, model service tiers are exposed as remembered speeds instead of separate model-picker entries.#65749
查看所有更新