claudepluginhub
v0.7.1
Published
Install Claude Code components from ClaudePluginHub
Maintainers
Readme
claudepluginhub
Install Claude Code plugins from ClaudePluginHub and GitHub with a single command.
Usage
# GitHub plugin or marketplace
npx claudepluginhub owner/repo
# ClaudePluginHub collection
npx claudepluginhub u/<userId>/<slug>
# Full URL
npx claudepluginhub https://claudepluginhub.com/api/user-plugins/<userId>/<slug>/marketplace.jsonIdentifier types
owner/repo (GitHub)
Installs a plugin or marketplace directly from a GitHub repository using Claude Code's native plugin system.
- Marketplace repos (
.claude-plugin/marketplace.json): Adds the marketplace and installs selected plugins viaclaude plugin marketplace addandclaude plugin install. - Plugin repos (with or without
.claude-plugin/plugin.json): Creates a local wrapper marketplace, then installs via Claude Code.
u/<userId>/<slug> (ClaudePluginHub)
Installs from a ClaudePluginHub user-curated collection. Components are downloaded directly and tracked in a lock file.
Full URL
Same as u/ form but with the full marketplace JSON URL.
Commands
npx claudepluginhub <identifier> Install from a source
npx claudepluginhub add <identifier> Same as above
npx claudepluginhub update [identifier] Update (u/ collections only)
npx claudepluginhub list List (u/ collections only)
npx claudepluginhub remove <identifier> RemoveExamples
# Install a specific plugin from a marketplace repo
npx claudepluginhub vercel/next.js --plugin cache-componentsOptions
| Option | Description |
|--------|-------------|
| --plugin <name> | Install a specific plugin from a marketplace repo |
| --yes, -y | Skip prompts (install all, project scope) |
| --scope <scope> | Set scope: user, project (default), local |
| -h, --help | Show help |
Lifecycle differences
| Feature | owner/repo | u/ collections |
|---------|-------------|------------------|
| Install | claude plugin commands | Direct download |
| List | claude plugin list | npx claudepluginhub list |
| Update | claude plugin update | npx claudepluginhub update |
| Remove | npx claudepluginhub remove owner/repo --scope <scope> (standalone) or claude plugin commands (marketplace) | npx claudepluginhub remove |
Standalone wrapper
When installing a standalone plugin via owner/repo, a local wrapper marketplace is created:
| Scope | Wrapper path |
|-------|-------------|
| user | ~/.claude/.cpd-wrappers/<owner>-<repo>-user/ |
| project | .claude/.cpd-wrappers/<owner>-<repo>-project/ |
| local | ~/.claude/.cpd-wrappers/<owner>-<repo>-local-<cwd-hash>/ |
Note: local scope wrappers are stored under ~/.claude/ and are tied to the working directory where they were installed. Running npx claudepluginhub remove owner/repo --scope local for a local install must be done from the same project directory.
Requirements
- Node.js 18+
- Claude Code installed and available in PATH (required for
owner/repoinstalls)
