跳到主要內容

Terminal

快速的終端機介面,可在任何 shell、編輯器或遠端伺服器中使用。用日常語言描述需求,看著每處編輯以 diff 呈現,並選擇哪些指令可以自動執行。

功能

用日常語言提問

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

核准要執行的內容

編輯以 diff 顯示,指令會等待你的許可。

隨心打造

一鍵切換主題,從預設主題到 tokyonight 等。

Mini

執行 opencode mini,回覆會輸出到你自己的捲動紀錄中。

  • 任何終端機可在任何 shell、編輯器的終端機或遠端伺服器中使用。
  • 時間軸中的 diff代理每做一處編輯,都會以 diff 顯示在時間軸中。
  • 稍後繼續用 -c 繼續上一個工作階段,或用 -s 繼續任何工作階段。
  • 單次執行opencode run 傳送一則訊息並輸出回覆。
  • 代理與指令用 shift+tab 切換代理,用 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.2.5

    The connect menu no longer lists MCP servers

    The connect menu no longer lists MCP servers, which are managed in their own place.#60675

  2. v2.2.4

    Preserved prompt cursor styles applied by plugins when themes or unrelated prompt state change

    修正

    • TerminalAdded missing right padding to edit and patch diffs.#60614
    • TerminalExtended the vertical session-tab activity pulse across the full tab width.#60338
  3. v2.2.3

    Added lazy loading for stored image references when experimental.media_blob is enabled

    Added lazy loading for stored image references when experimental.media_blob is enabled. Images are downloaded only for previews, while undo, revert, fork, and prompt recall restore referenced attachments safely.#60116

    破壞性變更

    TUI plugins require OpenTUI 0.8

    @opencode/plugin now requires @opentui/core and @opentui/solid 0.8.0 or later. In OpenTUI 0.8, a ScrollBox's wrapper, viewport, content, and scrollbars are facade objects instead of renderables, and a custom RenderContext must implement clock and onAnimationTick. See the OpenTUI 0.8.0 release notes.

    #60385

    改進

    • TerminalAdded a distinct marker for the selected composer suggestion in the new designs.#60393

    修正

    • TerminalFixed PHP syntax highlighting for code blocks without an opening <?php tag.#60359
    • TerminalPreserved # in file-search paths unless it introduces a valid line range.#60336
    • TerminalKept the configured default cursor style after config reloads.#60302
    • TerminalMatched the search cursor to the highlighted row when a selection dialog has no query.#60310
查看所有更新