Skip to content
    ↑↓ select↵ openesc close
    English中文
    kynnyhsap

    Create Opencode

    v0.0.1Tools & Commands
    create-opencode-plugin

    Create a new OpenCode plugin with a single command

    GitHub stars

    0

    Monthly installs

    10

    3 in 7 days

    Composite scoreSCORE

    15.8

    Multi-signal model

    Last commit

    6 months ago

    2026-02-04

    Install and configure

    opencode.json

    Writes to this project's opencode.json — applies to this repository only.

    opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["create-opencode-plugin@0.0.1"]
    }

    opencode 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
    • oxlint + oxfmt 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
      .oxlintrc.json
      .oxfmtrc.json
      .gitignore
      README.md
    

    License

    MIT