Files
paseo/public-docs/supported-providers/opencode.zh-CN.md
T
Mohamed Boudra 234ddf8dd7 Simplify setup across supported provider docs (#10502)
* docs(providers): simplify setup across supported provider pages

Lead each supported provider page with the official CLI/protocol Paseo uses and the simplest default setup path, removing config.json snippets from Getting started on Antigravity and Oh My Pi. Fixes the outdated Settings path on Codex and keeps all Chinese translations in sync.

* docs(providers): address review feedback on Antigravity, Codex, Muse, and Pi
2026-11-22 15:22:12 +07:00

1.5 KiB
Raw Blame History

title, description, nav
title description nav
OpenCode 安装 OpenCode 并在 Paseo 中运行。 OpenCode

OpenCode

Paseo 通过你已安装的 opencode CLI 运行 OpenCode。它使用你现有的凭据和配置。

开始使用

OpenCode 内置于 Paseo 且默认启用。

  1. 在 daemon 主机上安装 OpenCode:

    npm install -g opencode-ai
    
  2. 为 OpenCode 配置模型 Provider,并确认 opencode 可以在终端中运行。

  3. 在 Paseo 中启动 Agent 时选择 OpenCode。

如果你使用 OpenCode v2,请安装 2.0.10 或更高版本。Paseo 会拒绝更早的 v2 版本。

如果 opencode 不在 daemon 的 PATH 中,请使用命令覆盖。

模式

Paseo 将 OpenCode 的 Agent 显示为模式。

模式 效果
Build 允许编辑文件和执行工具。
Plan 只读规划。OpenCode 会避免编辑文件。

你在 OpenCode 中定义的主 Agent 也会出现在同一个列表中。

另请参阅