Skip to content

About

Create a new OpenCode plugin with a single command

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

create-opencode-plugin

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 source
  • bun check - run all checks (format, lint, typecheck)
  • npm publish ready

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

About

Create a new OpenCode plugin with a single command

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages