Claude Code Plugin Dependencies: Version Ranges, Bundles and Conflicts

David IyaDavid Iya November 23, 2026 9 min read
Interlocking brass gears of different sizes on a dark slate workbench, one small gear tagged with a blank paper label on string, beside a coiled measuring tape in cool morning light
Original image, Claude Code Club

What Claude Code plugin dependencies are

A Claude Code plugin dependency is another plugin your plugin relies on, for example one whose MCP server or skill your plugin calls. You declare it once in your plugin's manifest, and when someone installs your plugin, Claude Code installs and enables the dependency at the same scope and lists it in the success message. Nobody has to read a setup doc and install five things in the right order.

The part that matters for a team is the version. Without a constraint, a dependency moves to every new release its marketplace publishes the next time people update. If that release renames an MCP tool your plugin calls, your plugin breaks for everyone at once. A version range stops that: you stay on releases you tested, and you widen the range when you are ready.

Declare a dependency with a version range

Dependencies go in the dependencies array of your plugin's .claude-plugin/plugin.json. Each entry is either a string or an object.

Two ways to write a dependency entry

EntryExampleWhat it does
Bare name"audit-logger"Depends on whatever version that plugin's marketplace provides, in the same marketplace as your plugin
Name and marketplace"audit-logger@shared-tools"Resolves the plugin in another marketplace, subject to that marketplace being allowed
Object with a range{ "name": "secrets-vault", "version": "~2.1.0" }Installs the highest tagged release that satisfies the range

The version field takes a semantic-version range: ~2.1.0 keeps you on 2.1.x patches, ^2.0 allows any 2.x, >=1.4 sets a floor, and =2.1.0 pins one release. A range does not match pre-release versions such as 2.0.0-beta.1 unless you opt in with a suffix like ^2.0.0-0.

My default: use ~ for anything whose tools or skill names your plugin calls directly, and ^ for anything you only need present. A tilde range means a minor release upstream never reaches your users until you have run your plugin evals against it and published a new version of your own plugin with the wider range.

Tag releases so version ranges resolve

This is the step most teams miss. A version range resolves against git tags, not against the version field you typed into plugin.json. If the plugin you depend on is never tagged, your range has nothing to match.

  • Tag each release as <plugin-name>--v<version>, for example secrets-vault--v2.1.0. The name prefix lets one repository hold several plugins with separate version histories.
  • Tag the repository the plugin's source points at. For a github, url or git-subdir source, that is the plugin's own repo. For a relative path such as ./plugins/secrets-vault, that is the marketplace repo, so the marketplace maintainer tags it.
  • Run claude plugin tag --push from the plugin directory. It validates the plugin, checks that plugin.json and the marketplace entry agree on the version, requires a clean working tree, refuses if the tag exists, then creates and pushes it. Add --dry-run to see the plan first.
  • Confirm what resolved with claude plugin list. A tag-resolved dependency shows its version with a 12-character commit suffix.

What happens when no tag satisfies the range

Where the dependency livesResult
Its own repositoryThe install fails with a message containing has no git tag satisfying
A relative path in the marketplace repoThe marketplace's current copy installs, the range is checked at load, and if it is outside the range your plugin stays disabled

Ranges only control the fetched version for git-backed sources. For npm, archive and command sources, the range is still checked when the plugin loads, against the version in the dependency's plugin.json, so set a version there before anyone constrains it. A plugin.json with no version satisfies no range.

Ship a team bundle with one install

A plugin manifest needs only a name, so a plugin that contains nothing but a name and a dependencies array is valid. That is the cleanest way I know to hand a new hire a standard toolset.

  • Publish one bundle per role in your internal marketplace, such as backend-standard or support-standard, each listing the plugins that role needs.
  • People install the bundle once, in the desktop app's plugin browser or with one install command, and every dependency comes with it.
  • To add a plugin to the standard set, publish a new version of the bundle with the extra dependency. With marketplace auto-update on, the next update installs it. Otherwise people run claude plugin update on the bundle, then /reload-plugins in an open session.
  • To give the bundle to everyone in the organization, an admin adds it to enabledPlugins in managed settings, the same mechanism covered in Claude Code managed plugins.

Auto-installing a dependency that was added in a newer bundle version needs Claude Code v2.1.319 or later, so check versions before you rely on it across a team.

Depend on a plugin from another marketplace

By default, Claude Code will not install a dependency from a different marketplace than your plugin's own, unless the person already has it installed and enabled at the same scope. That default stops one catalog from quietly installing plugins from a source nobody reviewed.

To allow it, add the other marketplace's name to allowCrossMarketplaceDependenciesOn in your marketplace.json. Only the root marketplace's list counts, meaning the one hosting the plugin being installed.

What happens without the allowlist

Where the dependency is declaredResult
In the marketplace entryThe install is refused with a message saying the marketplace is not in the allowlist, naming the field to set
In plugin.jsonThe install completes without the dependency, and your plugin then fails to load

The second row is the trap. It looks like a successful install and then nothing works. If you depend across marketplaces, declare the dependency in the marketplace entry as well, or set the allowlist before you publish.

When two plugins want different versions

When several installed plugins constrain the same dependency, Claude Code installs the highest version that satisfies all of their ranges.

How combined ranges resolve

Plugin A requiresPlugin B requiresResult
^2.0>=2.1One install at the highest 2.x tag at or above 2.1.0. Both plugins load.
~2.1~3.0Installing plugin B fails with has conflicting version requirements. Plugin A and the dependency stay as they were.
=2.1.0noneThe dependency stays at 2.1.0. Auto-update skips newer versions while plugin A is installed.

This is why I keep ranges as wide as my testing honestly allows. An exact pin in one popular internal plugin freezes that dependency for every other plugin that uses it. When ranges stop overlapping, auto-update leaves the dependency where it is and the Errors tab in /plugin names the plugin doing the constraining.

Dependency errors and the fix

MessageFix
Dependency "<dep>" is not installedInstall the dependency, or add its marketplace and run /reload-plugins
Dependency "<dep>" is disabledEnable it, or uninstall the plugin that needs it
Requires "<dep>" <range>, installed <version>Update the dependency into the range, or uninstall the plugin
has conflicting version requirementsUninstall or update one of the conflicting plugins, or ask the author to widen the range
has no git tag satisfying <range>Check the upstream tags with the <name>--v convention, or relax the range

Clean up dependencies nobody needs

Uninstalling a plugin leaves its auto-installed dependencies in place. Disabling a plugin that another enabled plugin still needs is refused, and Claude Code prints a chained command that disables both in the right order.

  • Run claude plugin prune --dry-run to list orphaned dependencies without removing anything.
  • Run claude plugin prune to remove them after a confirmation prompt, or add -y in scripts and CI, where there is no terminal to answer the prompt.
  • Prune never removes a plugin someone installed themselves, only dependencies that were pulled in automatically. It works at user scope unless you pass --scope project or --scope local.

Those commands run in a shell. In the desktop app you can ask Claude Code to run them for you in a local session, so nobody on the team needs to open a terminal for routine cleanup.

Free Claude Code drops, straight to your inbox

Short, practical drops on skills, MCP, agents, prompts, and more. No spam, unsubscribe anytime.

Frequently asked questions

How do I add a dependency to a Claude Code plugin?

Add a dependencies array to .claude-plugin/plugin.json. Use a plugin name as a string to track the latest version, or an object with name and version, such as { "name": "secrets-vault", "version": "~2.1.0" }, to stay within a tested range.

Why does my plugin dependency say it has no git tag satisfying the range?

Version ranges resolve against git tags named <plugin-name>--v<version> on the repository that hosts the dependency. If the maintainer never tagged releases with that pattern, no range can match. Tag releases with claude plugin tag --push, or relax the range.

Can a Claude Code plugin depend on a plugin from another marketplace?

Yes, if the root marketplace lists the other marketplace in allowCrossMarketplaceDependenciesOn in marketplace.json, or if the person already has the dependency installed and enabled at the same scope.

What happens when two plugins need different versions of the same dependency?

Claude Code installs the highest version that satisfies every range. If the ranges do not overlap, such as ~2.1 and ~3.0, installing the second plugin fails with a conflicting version requirements message and nothing changes.

How do I bundle several Claude Code plugins into one install?

Publish a plugin whose plugin.json has only a name, a version and a dependencies array listing the plugins. Installing it installs every dependency at the same scope. Admins can roll it out to everyone through enabledPlugins in managed settings.

Does uninstalling a plugin remove its dependencies?

No. Auto-installed dependencies stay until you run claude plugin prune, which removes only dependencies no installed plugin needs and never touches plugins someone installed directly.

Last reviewed by David Iya on November 23, 2026

David Iya

Written by

David Iya

Forbes 30 Under 30 · Y Combinator

Keep reading

Claude CodeSetup

How to Host a Private Claude Code Plugin Marketplace for Your Team

A private Claude Code plugin marketplace is a git repository with a .claude-plugin/marketplace.json file that lists your internal plugins. Here is how to build one, validate it, host it where only your company can read it, give people working access without a git token in the file, and ship updates and renames without breaking anyone's install.

David Iya 9 min
Read article
Claude CodeSetup

Claude Code Plugin Evals: Test a Plugin Before Your Org Ships It

Claude Code plugin evals run your plugin against realistic prompts, grade what Claude produced, and compare the score against the same prompts with no plugin loaded. Here is how to create a suite with claude plugin eval init, which graders give a stable signal, what the no-plugin baseline tells you, and how to gate plugin changes in CI.

David Iya 9 min
Read article

Ready to build it yourself?

Join Claude Code Club, the #1 community for learning claude code, for $9/month.

← Back to the blog