mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 02:05:31 +00:00
* 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
1.5 KiB
1.5 KiB
title, description, nav
| title | description | nav |
|---|---|---|
| OpenCode | 安装 OpenCode 并在 Paseo 中运行。 | OpenCode |
OpenCode
Paseo 通过你已安装的 opencode CLI 运行 OpenCode。它使用你现有的凭据和配置。
开始使用
OpenCode 内置于 Paseo 且默认启用。
-
在 daemon 主机上安装 OpenCode:
npm install -g opencode-ai -
为 OpenCode 配置模型 Provider,并确认
opencode可以在终端中运行。 -
在 Paseo 中启动 Agent 时选择 OpenCode。
如果你使用 OpenCode v2,请安装 2.0.10 或更高版本。Paseo 会拒绝更早的 v2 版本。
如果 opencode 不在 daemon 的 PATH 中,请使用命令覆盖。
模式
Paseo 将 OpenCode 的 Agent 显示为模式。
| 模式 | 效果 |
|---|---|
| Build | 允许编辑文件和执行工具。 |
| Plan | 只读规划。OpenCode 会避免编辑文件。 |
你在 OpenCode 中定义的主 Agent 也会出现在同一个列表中。
另请参阅
- GitHub 上的使用现有的 OpenCode v2 服务器:让 Paseo 使用已经在运行的 OpenCode 服务器。
- Provider 选项:为通过 SDK 创建的 Agent 设置 OpenCode 权限规则。