These cases are covered on other pages:
- Claude Code’s own security model: see Security
- Restricting or requiring plugins for an organization: see Manage plugins for your organization
- The
security-guidanceorclaude-securityplugins: this page isn’t about them. Seesecurity-guidanceandclaude-security
Understand what a plugin can do
A plugin can carry content that runs code on your machine with your user privileges and content that enters Claude’s context as instructions, so review a plugin before you install it. Here’s what an installed plugin can do:- Hooks: a plugin’s hooks run as shell commands at points in Claude Code’s lifecycle, such as before or after a tool call.
- MCP and LSP servers: Claude Code connects to the MCP servers an enabled plugin declares and gives Claude their tools. A stdio MCP server runs as a process that Claude Code starts on your machine. Claude Code also starts the language servers the plugin declares.
bin/directory: Claude Code adds each enabled plugin’sbin/directory to thePATHof the Bash tool’s shell, so Claude’s Bash commands can run any executable there.- Skills, commands, and agents: these enter Claude’s context as instructions, so they influence what Claude does with the tools it already has.
- Updates: when auto-update is on for the marketplace you installed a plugin from, Claude Code updates that plugin in the background, so the files you reviewed can change on disk. When auto-update runs has the timing. To turn auto-update on or off per marketplace, see Keep plugins updated.
- Hooks and server processes: command hooks execute shell commands with your full user permissions. Claude Code runs hooks and MCP servers outside the sandbox.
- Claude’s tool calls: a call to one of the plugin’s MCP tools, and a Bash command that runs an executable from the plugin’s
bin/, are tool calls, so your permission rules apply to them.
defaultEnabled: false and you haven’t enabled it yourself.
To remove a plugin you no longer trust, see Remove a plugin you no longer trust.
Identify Anthropic’s marketplaces by name
A marketplace’s name places it in one of three tiers: official, community, or third-party. Claude Code accepts the official and community names only for marketplaces sourced fromgithub.com/anthropics/ repositories, so a third-party marketplace can’t present itself as an Anthropic one. A marketplace that a coworker or your organization publishes is third-party.
The table lists which names fall in each tier:
Where the
claude-community catalog pins a plugin to a commit SHA, which it does for nearly every entry, Claude Code refuses to install a different commit.
Official marketplace names
These marketplace names make up the official tier:claude-plugins-officialclaude-code-marketplaceclaude-code-pluginsanthropic-marketplaceanthropic-pluginsagent-skillsanthropic-agent-skillslife-sciencesknowledge-work-pluginsclaude-for-legalclaude-for-financial-servicesfinancial-services-pluginsfirst-party-pluginsclaude-tag-plugins
Review a plugin before you install
Before you install a plugin, look at what it adds and where it comes from.1
Check the marketplace's source
In your shell, run
claude plugin marketplace list to print the source each marketplace was added from, such as a GitHub repository or a directory.2
Read the details pane
In a Claude Code session, run
/plugin and select the plugin. The details pane shows a Will install section listing the plugin’s commands, agents, skills, hooks, and MCP and LSP servers. For a plugin Anthropic has no published component data for, the section shows what the marketplace entry declares, or a note: Components will be discovered at installation for a plugin stored inside the marketplace, or Component summary not available for remote plugin for one fetched from elsewhere.3
Read the plugin's source
In the details pane, select Open homepage or View on GitHub below the install options. If the pane offers neither, open the marketplace repository you found in the first step. Find the plugin’s directory there. The Will install section shows that a hook exists but not what it runs, so read these files in the plugin’s directory:
hooks/hooks.json: the command each hook runs.mcp.json: each server’s command or URLbin/: every file in the directory
4
List what the plugin contains
Clone the repository that holds the plugin’s directory, then run
claude --plugin-dir <plugin directory> plugin details <plugin name> in your shell to see what Claude Code finds in it. The command reads the plugin’s files without starting a session and prints a Component inventory listing the plugin’s skills and commands, agents, hooks with each hook’s event, and MCP and LSP servers.claude plugin details <plugin name> in your shell to print the same Component inventory for the installed copy under ~/.claude/plugins/cache/<marketplace>/<plugin>/<version>/.
Remove a plugin you no longer trust
In your shell, runclaude plugin uninstall <plugin> with the --scope you installed it at. Then check what the uninstall removed and what it left:
- Persistent data: when that was the last scope the plugin was installed at, uninstalling also deletes the plugin’s persistent data directory, unless you pass
--keep-data. - Cached files: the plugin’s files stay on disk under
~/.claude/plugins/cache/for 14 days before a background sweep removes them. After you uninstall your last plugin, orphaned directories stay until you install another. To delete the files now, remove the plugin’s directory under~/.claude/plugins/cache/<marketplace>/<plugin>/yourself. - The marketplace: if you don’t trust the marketplace’s owner either, remove the marketplace too, which uninstalls every plugin you installed from it.
Recognize when Claude Code refuses or warns
The details pane you open from the Discover or Marketplaces tab in/plugin shows the same trust warning for each plugin. Claude Code refuses instead of warning in cases such as those under Untrusted marketplace sources and failed integrity checks.
Trust warning before you install
The warning reads the same whatever marketplace the plugin comes from:pluginTrustMessage in managed settings, Claude Code appends that text to the warning.
Untrusted marketplace sources and failed integrity checks
Claude Code refuses to load a marketplace or to install a plugin in these cases, each with its own error message:- Untrusted marketplace source: when a marketplace uses an official or community name but its source is outside
github.com/anthropics/, Claude Code stops loading the marketplace and the plugins you installed from it. The error is Marketplace is registered from an untrusted source. - Archive integrity: when a marketplace entry pins an
archivesource to asha256digest and the downloaded file’s digest doesn’t match it, Claude Code refuses the install. The error is Plugin archive integrity check failed.
sha256 pin is separate from the community catalog’s commit SHA pin, which selects the git commit to check out.
Enforce plugin controls for your organization
With managed settings, an administrator can enforce these plugin controls:- Allowlist or blocklist marketplace sources
- Force-enable plugins
- Turn off the
--plugin-dirand--plugin-urlflags and theCLAUDE_CODE_PLUGIN_DIRSvariable - Limit hooks to those from managed settings and force-enabled plugins
- Stop plugins from members’ claude.ai accounts from loading in Claude Code, with
syncClaudeAiPlugins
Find plugins in telemetry
If your organization exports Claude Code’s OpenTelemetry events to its own backend, the marketplace tiers decide which plugin names appear there:- Plugin loaded event: the event reports official-tier plugin and marketplace names as they are. For the community and third-party tiers,
plugin.nameandmarketplace.nameare the literal stringthird-partyunless you setOTEL_LOG_TOOL_DETAILS=1. - Plugin scope: the loaded event’s
plugin.scopestill reports where the plugin came from, such asorgfor a plugin your managed settings enable oruser-localfor any other third-party plugin. The plugin loaded event lists every value. - Plugin installed event: unless you set
OTEL_LOG_TOOL_DETAILS=1, the event omits the name fields for non-official plugins instead of reportingthird-party. - Claude Code Analytics API: Claude Code reports plugins from the official and community tiers by name and reports every other plugin as
third-party.
Next steps
- Manage plugins for your organization: restrict which marketplaces users can install from and require the ones you trust
- Install and manage plugins: review a plugin’s details pane before you choose a scope
- Anthropic’s marketplaces: which marketplace names are Anthropic’s
- Security: Claude Code’s own security model