All posts
Developer Tools·7 min read·Updated 23 Oct 2026

Claude Code Plugins: What They Are, How to Install Them, and the Hidden Cost (2026)

Quick answer
A Claude Code plugin is a folder of skills, subagents, hooks and MCP servers that installs as one unit. Run /plugin in a terminal session and install from the Discover tab; Anthropic's official marketplace is added on first launch. Every enabled plugin costs context on every turn, so install few.

How Claude Code plugins work: what is inside one, how to install from the official marketplace with /plugin, install scopes, trust tiers, and the context cost of every enabled plugin.

Piyush Jangir
Verified author

Founder of StackPicks. Self-taught builder shipping open-source dev tools, marketing, and curator content since 2019. Based in Mumbai, India. Available on GitHub and LinkedIn.

7 min read
Claude Code Plugins: What They Are, How to Install Them, and the Hidden Cost (2026)

**Short version:** a plugin is a bundle. Instead of setting up a skill, a subagent, a hook and an MCP server one by one, you install them together with one command, and update them together from a marketplace. That convenience has a cost most people miss: every enabled plugin sits in Claude's context on every turn, even when you never use it. Everything below is from Anthropic's plugins documentation.

What a Claude Code plugin can contain: skills, subagents, hooks, a hooks module and MCP servers

What is inside a plugin

A plugin is a directory with a manifest at .claude-plugin/plugin.json. The manifest gives the plugin its name and optionally a version and description. Around it sit the components:

  • Skills — SKILL.md instructions Claude loads when relevant, which you can also run as a command such as /my-plugin:review
  • **Agents** — subagent definitions Claude can delegate to (see our subagents guide)
  • **Hooks** — shell commands that run at lifecycle points, such as after every edit (see hooks examples)
  • A hooks module — hooks written as JavaScript functions; a plugin with one is called a mod
  • MCP servers — tool servers that connect while the plugin is enabled

How to install a plugin

  1. Start Claude Code in a terminal and run /plugin.
  2. Open the Discover tab — it lists plugins from every marketplace you have added.
  3. Pick a plugin and choose an install scope.

Anthropic's official marketplace, claude-plugins-official, is added automatically the first time you start an interactive session. Plugins are addressed as name@marketplace, for example commit-commands@claude-plugins-official. To add someone else's catalogue, use /plugin marketplace add with its repository.

Pick the right install scope

Claude Code plugin install scopes: user, project and local

ScopeEnabled forStored in
UserYou, in every project on this machineyour user settings
ProjectEveryone in the repocommitted .claude/settings.json
LocalYou, in this repo onlylocal settings

Project scope is how a team standardises tooling: commit it once, and each collaborator installs the plugin on their own machine. Note that a cloud session at claude.ai/code does not load the plugins from your local settings.

The cost nobody mentions

For every skill, agent and command Claude can invoke on its own, the name and description are in context on every turn — that is how Claude knows they exist. Those tokens count toward your usage whether or not the plugin does anything that session. MCP servers a plugin defines run alongside every session where it is enabled.

Three ways to stay in control:

  • Before installing: open the plugin from the Marketplaces tab in `/plugin`. Plugins in the official marketplace show a Context cost estimate.
  • After installing: the Installed tab groups plugins you have not used recently.
  • To pause without uninstalling: disable it in /plugin, or run claude plugin disable in your shell.

If token spend already worries you, our guide to reducing Claude Code token usage covers the rest of the budget.

Trust: a plugin runs as you

Marketplaces fall into three tiers. Official names such as `claude-plugins-official` and community names such as `claude-community` are only accepted when sourced from `github.com/anthropics/` repositories. Everything else, including your company's own catalogue, is third-party.

Whatever the tier, a plugin's hooks and MCP servers execute with your user privileges. Read what a plugin runs before you install it — the same discipline as our MCP server security checklist.

When you do not need a plugin

Skills, subagents, hooks and MCP servers all work on their own. A skill saved in ~/.claude/skills/ is already available in every project. Reach for a plugin when you want several of those packaged together, shared with a team, or versioned. To build one, start from an empty folder and load it with --plugin-dir while developing — no marketplace needed until you publish.

**Related:** How to use MCP in Claude Code · Claude Code vs Codex

Frequently asked questions

What is a Claude Code plugin?+

A Claude Code plugin is a directory of components that installs and loads as one unit. It can contain skills, subagent definitions, hooks, a JavaScript hooks module and MCP servers, described by a manifest at .claude-plugin/plugin.json. Most plugins come from a marketplace, which is a catalogue listing plugins and where to fetch each one. You can also load a plugin straight from a folder with the --plugin-dir flag while you are building it.

How do I install a Claude Code plugin?+

Run /plugin inside a Claude Code terminal session and open the Discover tab, which lists plugins from every marketplace you have added. Choose a plugin, then pick an install scope: user for every project, project for your whole team through the committed settings file, or local for just you in one repository. Anthropic's official marketplace is added automatically the first time you start an interactive session.

Do Claude Code plugins cost tokens?+

Yes, even when idle. For every skill, agent and command Claude can invoke on its own, the name and description are placed in context on every turn so Claude knows it exists. That uses tokens and leaves less room in the context window in sessions where the plugin does nothing. Check the Context cost estimate in the Marketplaces tab before installing, and disable plugins you have not used recently.

Are Claude Code plugins safe to install?+

Treat them like any software you run. A plugin's hooks and MCP servers execute with your user privileges, whatever marketplace it came from. Official and community marketplace names are only accepted when sourced from Anthropic's own GitHub repositories, so those names cannot be spoofed, but everything else is third-party. Read the hooks and server commands a plugin defines before installing, and prefer project scope only for plugins your team has reviewed.

Should I use a plugin or a standalone skill?+

Use a standalone skill when you have one set of instructions you want available everywhere; a skill in ~/.claude/skills/ already works in every project without any plugin. Use a plugin when you want several pieces bundled together, such as a skill plus a subagent plus a formatting hook, or when you need to share a setup with teammates and update it through versioned releases from a marketplace.

More in Developer Tools

Claude Code Plugins: What They Are, How to Install Them, and the Hidden Cost (2026) — StackPicks — StackPicks