@involvex/create-opencode-pluginCreate a new OpenCode plugin with a single command
0
26
26 in 7 days
28.2
Multi-signal model
17 days ago
2026-08-02
Install and configure
opencode.jsonWrites to this project's opencode.json — applies to this repository only.
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@involvex/create-opencode-plugin@0.0.1"]
}Writes to ~/.config/opencode/opencode.json — applies to every project.
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@involvex/create-opencode-plugin@0.0.1"]
}If you want to modify the plugin locally, install it into the project and reference the local path.
shell
pnpm add -D @involvex/create-opencode-pluginopencode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.
Scaffold a new OpenCode plugin with a single command.
Usage
bun create opencode-plugin my-plugin
cd my-plugin
bun install
bun dev
Or create in the current directory:
bun create opencode-plugin .
What's included
- TypeScript configuration
- Build setup with Bun
- Prettier + ESLint for linting and formatting
bun dev- run OpenCode with your plugin loaded from sourcebun check- run all checks (format, lint, typecheck)npm publishready
Plugin structure
my-plugin/
src/
index.ts # Plugin entry point
dev.ts # Development script
package.json
tsconfig.json
eslint.config.js
.prettierrc.json
.prettierignore
.gitignore
README.md
License
MIT