0
33,623
近 7 天 7k
47.8
生态多维模型
7 天前
2026-09-27
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-plugin-browser@1.0.0-alpha.4"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-plugin-browser@1.0.0-alpha.4"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-plugin-browserOpenCode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
Note: this plugin is published on npm as
opencode-plugin-browser— the original project name, kept for package continuity. The repository and README title useopencode-plugin-manager; both refer to the same package. Install it by the npm name shown below.
An OpenCode sidebar section listing plugins with installed/uninstalled status — placed below the built-in MCP section and the Skills list, mirroring the built-in sidebar widgets.
What it shows
- Installed plugins from the plugin registry (same list
opencode2 plugin listshows; built-ins excluded) with their activation state:✓ active,✗ failed,○ inactive. - LOCAL group mixes registered plugins (
✓ … installed) with workspace plugin projects discovered by scanning the workspace root for sibling directories whosepackage.jsondepends on@opencode/plugin(private monorepo roots and shared libraries excluded) — those show dimmed with○ … uninstalledand a[+]to register them, same status column as everything else. - Built-in plugins are listed by default (group collapsed to keep the
sidebar short) and can be hidden/shown with
/plugins-builtins— a view toggle only, persisted; built-ins always run. They can't be disabled individually: the runtime has no per-built-in disable mechanism — the only switch is the all-or-nothingOPENCODE_DISABLE_DEFAULT_PLUGINSenv var, whose state the widget shows when the BUILT-IN group is visible. Per-built-in disable requires upstream support in OpenCode's plugin host. - Plugin descriptions — the registry exposes no human metadata, so the
plugin ships its own catalog (
builtins.ts): curated descriptions for well-known built-ins plus per-category generation (provider.*,tool.*,config.*,websearch.*). Click any row to inspect its details.
Collapsed header shows PLUGINS (installed/total); more than two entries
collapse, click (or expand) to list them — same interaction as the built-in
MCP/Skills sections.
Install
Published on npm.
Automatic (recommended) — add it to your OpenCode config (~/.config/opencode/opencode.json) and it installs on startup:
{ "plugins": ["opencode-plugin-browser"] }
Manual:
npm install opencode-plugin-browser
Restart the TUI (or opencode2 service restart) after changing the config.
Prerequisites
- OpenCode V2.0.3 or newer (plugin API is beta). 2.0.3 is the floor: earlier 2.x releases ship no
./tuisubpath export, so the TUI entrypoint cannot resolve@opencode/plugin/tui.
Placement: appends to sidebar.content (below MCP/Skills). If you use
multiple sidebar plugins, order in plugins controls stacking.
Remove
Remove the plugin's entry from the plugins array in opencode.json.
Data sources
- Plugin registry:
client.plugin.list()(activation state included) - Workspace scan: sibling directories of the current location, one
package.jsonread per candidate; result is cached through opencode-plugin-kit'screateCachedStoreso the sidebar restores instantly after a TUI restart.
License
GNU Affero General Public License v3.0 — see LICENSE.
同类生态推荐
Skills Tui
opencode-skills-tui
OpenCode TUI plugin that shows skills and loaded state in the sidebar
Sidebar Token Metrics
opencode-sidebar-token-metrics
OpenCode sidebar plugin showing generation speed (tok/s), cache hit rate, and average time-to-first-token (TTFT).
Tui Quota Usage
opencode-tui-quota-usage
OpenCode quota usage sidebar tracker for OpenCode V2 CLI/TUI