Scaffold a new OpenCode plugin with a single command.
bun create opencode-plugin my-plugin
cd my-plugin
bun install
bun devOr create in the current directory:
bun create opencode-plugin .- 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
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
MIT