opencode-project-panelOpenCode TUI plugin with a file manager and permissions panels
0
1,090
近 7 天 703
38.7
生态多维模型
2 天前
2026-08-18
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-project-panel@0.1.9"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-project-panel@0.1.9"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-project-panelopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
OpenCode TUI plugin that adds a bottom bar with:
- a project file manager with Markdown/code preview and editing;
- a Permissions panel for Skills, Tools, and MCP configuration.
Install
This is an OpenCode TUI plugin. It must be declared in tui.json, not in the
server plugin list in opencode.json.
Project installation
Install the package in the project's .opencode/ directory:
mkdir -p .opencode
cd .opencode
bun add opencode-project-panel
Create or update .opencode/tui.json:
{
"$schema": "https://opencode.ai/tui.json",
"plugin": ["opencode-project-panel"]
}
The plugin loader uses OpenCode's own package cache; it does not load this
plugin from an unrelated application workspace such as apps/tui/node_modules.
Global installation
To enable the plugin for every project, create
~/.config/opencode/tui.json:
{
"$schema": "https://opencode.ai/tui.json",
"plugin": ["opencode-project-panel"]
}
The global TUI configuration is ~/.config/opencode/tui.json. OpenCode
automatically downloads npm plugins into its own cache at
~/.cache/opencode/packages/; manually installing the package into
~/.opencode/ is not required for global activation.
The plugin uses the current project configuration (opencode.json or
opencode.jsonc) when editing permissions and MCP settings.
Upgrading
Alternatively, specify the version in the tui.json plugin spec. OpenCode
automatically downloads and loads the specified version when it starts:
{
"$schema": "https://opencode.ai/tui.json",
"plugin": ["opencode-project-panel@0.1.9"]
}
Change @<version> to the version you want and restart OpenCode to upgrade;
you do not need to clear the cache manually.
For a project installation, run this command from the project's .opencode/
directory:
bun add opencode-project-panel@latest
For a global installation, remove this plugin's cache so OpenCode downloads the latest version from npm:
cache="$HOME/.cache/opencode/packages/opencode-project-panel"
if [ -d "$cache" ]; then rm -rf -- "$cache"; fi
Restart OpenCode after upgrading, changing tui.json, or clearing the package
cache.
If you are an agent
When installing or upgrading this plugin:
- Treat it as an OpenCode TUI plugin. Update the project
.opencode/tui.jsonor global~/.config/opencode/tui.json, notopencode.json. - Preserve existing
pluginentries and avoid duplicates. - If a specific version is requested, use
"opencode-project-panel@<version>"in thepluginarray. OpenCode will download and load that version on startup. - For a project dependency upgrade, run
bun add opencode-project-panel@latestfrom the project's.opencode/directory. - Restart OpenCode after changing
tui.json. For a global cached installation, remove only this plugin's cache directory if a fresh download is needed. - Do not load the npm package and a local
dist/index.jscopy at the same time.
Shortcuts
F1: open the file managerF3: open PermissionsF2: rename the selected fileF7: create a file or directoryDelete: delete the selected fileCtrl+G: go to a pathCtrl+R: return to the project root
Development
bun install
bun run typecheck
bun run build
The package entry point is the generated dist/index.js file. Runtime UI
dependencies remain external in the bundle and are declared in dependencies
so OpenCode's Bun-based plugin loader can resolve them.
Changelog
See CHANGELOG.md for the release history.
License
MIT