快速开始

在 OpenCode 中以插件形式安装 Lagune

在 OpenCode 1.x 和 2.x 中以插件形式安装 Lagune,并保持更新。

在终端中安装插件:

opencode plugin add lagune

或者把它添加到 plugins 列表(位于 opencode.json):

{
"plugins": ["lagune"]
}

更新​

运行以下命令更新 Lagune:

opencode plugin update lagune
opencode reload

命令​

输入 @ 并选择命令,例如 @lagune-charter,然后在同一条消息中写下你的输入。


权限

引擎通过两个工具运行:lagune_read 只读取你的项目,lagune_write 只写入 .lagune/。OpenCode 运行它们时不会询问。

常见问题

在 OpenCode 2.x 中,运行 opencode plugin add lagune。在 OpenCode 1.x 中,运行 opencode plugin lagune,加上 -g 可为你的所有项目安装。

在 OpenCode 2.x 中,运行 opencode plugin update lagune,然后运行 opencode reload。在 OpenCode 1.x 中,运行 opencode plugin lagune@0.16.0 --force。

在 OpenCode 2.x 中,输入 @ 并选择命令,例如 @lagune-charter,然后在同一条消息中写下你的输入。在 OpenCode 1.x 中,直接输入命令名,例如 /lagune-charter,或者在 /skills 中找到它们。

不会。OpenCode 会直接运行引擎的两个工具 lagune_read 和 lagune_write,不会询问。

最后更新于 2026年11月3日。

Copyright © 2026 年至今 Weslley Araújo 及贡献者。Lagune 采用 Apache License 2.0 授权。请查阅安全策略。

文中提及的所有产品名称、商标和注册商标均为其各自所有者的财产,仅用于识别目的。