plugins
v1.2.5
Published
Install open-plugin format plugins into agent tools
Readme
plugins
Install plugins into agent tools. Works with Claude Code and Cursor.
npx plugins add owner/repoUsage
Add plugins from a GitHub repo
# GitHub shorthand
npx plugins add vercel/vercel-plugin
# Full HTTPS URL
npx plugins add https://github.com/vercel/vercel-plugin
# SSH URL (auto-retries via HTTPS if SSH auth fails)
npx plugins add [email protected]:vercel/vercel-plugin.gitAdd plugins from a local directory
npx plugins add ./my-plugins
npx plugins add /absolute/path/to/pluginsDiscover plugins without installing
npx plugins discover owner/repoList detected agent tools
npx plugins targetsCommands
| Command | Description |
|---|---|
| plugins add <source> | Discover and install plugins from a source |
| plugins discover <source> | Inspect plugins without installing (dry run) |
| plugins targets | List available agent tools and their detection status |
If no subcommand is given, plugins <source> defaults to add.
Flags
| Flag | Short | Default | Description |
|---|---|---|---|
| --target | -t | auto-detect | Install to a specific agent tool (claude-code, cursor) |
| --scope | -s | user | Installation scope: user, project, or local |
| --yes | -y | false | Skip the confirmation prompt |
| --help | -h | | Show usage information |
Supported targets
The CLI auto-detects which agent tools are installed and installs to all of them.
| Target | Detection |
|---|---|
| Claude Code | claude binary on PATH |
| Cursor | cursor + claude binaries on PATH |
How it works
Source resolution
The CLI accepts GitHub shorthand (owner/repo), HTTPS URLs, SSH URLs, or local paths. Remote repos are shallow-cloned to ~/.cache/plugins/<slug>. SSH URLs that fail automatically retry via HTTPS.
Plugin discovery
Discovery follows a 3-step fallback:
- Marketplace index — looks for a
marketplace.jsonthat indexes multiple plugins - Root plugin — checks if the repo root itself is a plugin
- Recursive scan — scans subdirectories (up to 2 levels deep) for plugin directories
A plugin is any directory containing skills, commands, agents, rules, hooks, MCP servers, or LSP servers.
Installation
The CLI translates the vendor-neutral .plugin/ format into target-specific formats, then installs via the target's native plugin system. Plugin authors write once; the CLI handles the rest.
Environment variables
| Variable | Purpose |
|---|---|
| DISABLE_TELEMETRY | Disable anonymous install telemetry |
| DO_NOT_TRACK | Disable anonymous install telemetry (standard) |
| NO_COLOR | Disable color output |
| FORCE_COLOR | Force color output |
Development
npm install
npm run build
node dist/index.js --helpZero runtime dependencies. Built with tsup as a single bundled ESM file targeting Node.js 18+.
