Skip to main content
BB

Bahrul Bangsawan

AvailableMakassar, Indonesia
BB

Bahrul Bangsawan

Growth Hacker at the intersection of Data, Marketing, and Tech. Helping brands scale with data-driven strategies and modern technology.

Available for HireMakassar, Indonesia ๐Ÿ‡ฎ๐Ÿ‡ฉ
Book a Call

Blog ยท Guides

How to Set Up a Local Plugin Marketplace for Claude Code

This guide walks you through setting up a local plugin marketplace, installing plugins, and managing your Claude Code plugin development workflow.

Development Workflow2 min read

Claude Code Plugin

This guide walks you through setting up a local plugin marketplace, installing plugins, and managing your Claude Code plugin development workflow โ€” all with a more hands-on, conversational approach.

Prerequisites

Make sure you have Claude Code CLI installed and configured before proceeding. If you haven't done that yet, now's the time!

Setting Up Local Marketplace

  1. Create the Marketplace Structure

    First, create the directory structure for your local plugin marketplace:
    mkdir -p /Users/growthacker/.claude/plugins/.claude-plugin
  2. Create the Marketplace Manifest

    Now create the manifest file at /Users/growthacker/.claude/plugins/.claude-plugin/marketplace.json:
    {
      "name": "my-local-marketplace",
      "owner": {
        "name": "Your Name"
      },
      "plugins": [
        {
          "name": "rubot",
          "source": "./rubot",
          "description": "Your rubot plugin"
        }
      ]
    }
  3. Add and Install in Claude Code

    Register your local marketplace and install the plugin:
    /plugin marketplace add /Users/growthacker/.claude/plugins
    /plugin install rubot@my-local-marketplace

    Important: Make sure your plugin folder contains a .claude-plugin/plugin.json manifest file, or this won't work!

Updating Plugins

After making changes, you have several ways to update your plugins. Pick the one that fits your workflow:

Option 1: Restart Claude Code

Simply restart Claude Code to pick up the changes. If you're using --plugin-dir during development, restart after each change โ€” it's the quickest way to see results.

Option 2: Update via Marketplace Command

If your plugin is installed from a marketplace, run this:

/plugin update rubot@rulisme

Option 3: Refresh the Marketplace

If you updated the plugin source, refresh the marketplace with:

/plugin marketplace update rulisme

Development Workflow

For active plugin development, load your plugin directly using the --plugin-dir flag:

claude --plugin-dir /Users/growthacker/.claude/plugins/rubot

Tip: When using --plugin-dir, you'll need to restart Claude Code each time you make changes to see updates. Think of it as a quick sanity check.

Troubleshooting

Clear Plugin Cache

If updates aren't sticking, clear the cache:

rm -rf ~/.claude/plugins/cache

Reinstall Plugin

Sometimes a clean install works wonders:

claude /plugin uninstall rubot@rulisme
claude /plugin install rubot@rulisme

Sync Plugin Cache

Re-sync the plugin cache to keep everything fresh:

claude plugins sync

Remove Broken Plugin

If a plugin is broken, remove it temporarily:

rm -rf ~/.claude/plugins/cache/claude-plugins-official/security-guidance

Then reload with --plugin-dir:

claude --plugin-dir ~/.claude/plugins/rubot

Quick Reference

  • /plugin marketplace add <path> โ€” Add a local marketplace
  • /plugin install <name>@<marketplace> โ€” Install a plugin
  • /plugin uninstall <name>@<marketplace> โ€” Uninstall a plugin
  • /plugin update <name>@<marketplace> โ€” Update a plugin
  • /plugin marketplace update <name> โ€” Refresh marketplace
  • claude plugins sync โ€” Sync plugin cache
  • claude --plugin-dir <path> โ€” Load plugin directly for development

Next Steps