Small TUI plugins for OpenCode. Each package supports OpenCode 1 and OpenCode 2.
Shows the current and previous prompt-turn cost in the sidebar Context section.
opencode2 plugin add opencode-cost-detailsShows GitHub pull requests opened by the current session. Every title links to GitHub.
opencode2 plugin add opencode-prsSee each plugin README for OpenCode 1 installation and configuration.
pnpm install
pnpm typecheck
pnpm testPackages live under packages/. Each package builds its TypeScript and JSX into dist/ before publishing because OpenCode loads published plugins from node_modules.
To use both plugins from this checkout:
pnpm dev:link
pnpm devdev:link configures both compiled plugin directories in cli.json and removes the published versions. dev rebuilds both plugins when their source changes. Restart the OpenCode client after a rebuild to load it.
Restore the published configuration with:
pnpm dev:unlinkReleases use Changesets and npm trusted publishing. There is no npm token in the repository.
- Run
pnpm changesetin a feature branch and commit the generated file. - Merge the feature PR. CI opens or updates
release: version packages. - Merge the release PR. CI publishes every changed package to npm.
Each npm package must trust the release.yml workflow in vvo/opencode-plugins.
MIT