CLI marketplace for OpenCode plugins
npm install opencode-marketplaceCLI for installing OpenCode plugins from local directories or GitHub repositories.
- š¦ Install from local directories or GitHub URLs
- š Update remote plugins with one command
- šÆ Zero-config convention-based discovery
- š Content-hash based change detection
- š Support for commands, agents, and skills
- š User-global or project-local scope
``bash`
bunx opencode-marketplace
Or install globally:
`bash`
bun install -g opencode-marketplace
`bashInstall from local directory
opencode-marketplace install /path/to/my-plugin
Plugin Structure
A plugin is a directory with components in well-known locations:
`
my-plugin/
āāā command/ # or .opencode/command/, .claude/commands/
ā āāā reflect.md
āāā agent/ # or .opencode/agent/, .claude/agents/
ā āāā reviewer.md
āāā skill/ # or .opencode/skill/, .claude/skills/
āāā code-review/
āāā SKILL.md
āāā reference.md
`Discovery Priority:
.opencode/ ā .claude/ ā ./command/ ā ./commands/How It Works
1. Discovery - Scans for components using convention-based paths
2. Namespacing - Copies files with prefixes:
my-plugin--reflect.md
3. Registry - Tracks installations in ~/.config/opencode/plugins/installed.json
4. Change Detection - Content hashing detects actual changesScopes
| Scope | Target | Registry |
|-------|--------|----------|
|
user (default) | ~/.config/opencode/ | ~/.config/opencode/plugins/installed.json |
| project | .opencode/ | .opencode/plugins/installed.json |Use
--scope project for project-local installations.Example Output
`bash
$ opencode-marketplace install https://github.com/user/awesome-plugins/tree/main/miscInstalling misc [a1b2c3d4]...
ā command/misc--reflect.md
ā skill/misc--review/
Installed misc (1 command, 1 skill) to user scope.
``bash
$ opencode-marketplace listUser scope:
misc [a1b2c3d4] (1 command, 1 skill)
Source: https://github.com/user/awesome-plugins/tree/main/misc
`Development
`bash
bun install # Install dependencies
bun run dev # Run locally
bun test # Run tests
bun run lint # Lint code
``MIT