跳到主要內容

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.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 項 修正
  2. 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
  3. v2.4.0

    New TUI Look

    The TUI's new designs are on by default, and the opencode theme is the new one. Pick opencode-classic in Theme to keep the previous colors.#64988

    查看 v2.4.0 的所有亮點

    改進

    • Terminal/login and /auth open the same dialog as /connect, which now lists a single OpenCode entry that includes OpenCode Go models.#65265#65466
    • TerminalPressing ↓ opens the picker on the first tab with something running, the same tab that clicking the footer opens.#64972
    • TerminalText prompt dialogs such as rename session, /btw, worktree names and connect forms end with a Submit button, and prompt and export dialogs have tighter spacing.#64944
    • TerminalThe opencode theme's light mode uses lighter grays for the prompt box, selected tabs and hovered rows.#64962

    修正

    • TerminalFixed connect forms built from integration fields, such as the Azure resource name, showing an empty row between the title and the input.#64944
    • TerminalFixed list dialogs ending with two blank rows, and the Manage workspaces footer not staying at the bottom.#64983
    • TerminalFixed long dialog lists replacing their last visible row with a stray ….#64934
    • TerminalFixed the selection bar of a delete-confirmation row staying blue instead of red.#64936
    還有 1 項 修正
查看所有更新