OmniscioGuidesPlugin dependencies
Claude Code plugin dependencies: version ranges and tags
A dependency without a version moves to every new release its marketplace publishes, the next time users update. One rename in that release can break your plugin for everyone who updates, which is what the range prevents.
Last checked against Anthropic's documentation on November 26, 2026. By the Omniscio team. Updated .
Declare a dependency
List dependencies in the dependencies array of your plugin's .claude-plugin/plugin.json. An entry can be a string with the plugin name alone, or "name@marketplace" to resolve it in another marketplace. With a bare string, your plugin depends on whatever version that plugin's marketplace provides.
A dependency can also be declared in the plugin's entry in marketplace.json. Both sites are supported, and the difference matters in the cross-marketplace section: a refused install names the field to set when the entry is in the marketplace file, while a plugin.json entry can install without the dependency and leave the plugin failing to load.
Several checks below depend on a plugin's scope: whether it is installed for the user, for the project, or for the local checkout. A dependency already enabled at the same scope as the plugin is exempt from the cross-marketplace rule.
To set a version constraint, use an object with these fields, each a string:
| Field | What it does |
|---|---|
name | The dependency's plugin name. Claude Code looks it up in the declaring plugin's marketplace unless you set marketplace. Required. |
version | A semantic-version range such as ~2.1.0, ^2.0, >=1.4 or =2.1.0. The dependency installs at the highest git tag that satisfies the range, so its maintainer must tag releases. |
marketplace | A different marketplace to resolve name in. An allowlist controls cross-marketplace dependencies. |
In plain terms, ~2.1.0 accepts 2.1.x, ^2.0 accepts 2.x, >=1.4 accepts 1.4 and above, and =2.1.0 accepts only that version. The following manifest declares one unversioned dependency and one constrained dependency:
{
"name": "deploy-kit",
"version": "3.1.0",
"dependencies": [
"audit-logger",
{ "name": "secrets-vault", "version": "~2.1.0" }
]
}A range does not match pre-release versions such as 2.0.0-beta.1 unless you opt in with a pre-release suffix such as ^2.0.0-0.
Version ranges and release tags
A constraint resolves against git tags on the repository that hosts the plugin. Tag the repository that the plugin's source in marketplace.json points at: the plugin's own repository for a github, url or git-subdir source, or the marketplace repository for a relative path such as ./plugins/secrets-vault.
Tag each release as <plugin-name>--v<version>, where the version matches the version field in that commit's plugin.json. The plugin-name prefix lets one marketplace repository host several plugins with independent version histories.
Create the tag from the plugin directory, with an origin remote configured to receive the pushed tag, using claude plugin tag --push. The command builds the tag name from the plugin's manifest, then validates the plugin, checks that plugin.json and the marketplace entry agree on the version when the plugin directory is inside a marketplace checkout, requires a clean working tree under the plugin directory, and refuses if the tag already exists.
Resolution looks for tags in that prefixed form, so a release tagged only v2.1.0 is not a candidate for a constraint.
claude plugin tag --pushA successful run prints Created tag secrets-vault--v2.1.0. With --push, it also prints Pushed to origin. Without --push, it prints the git push command to run yourself. You can also run git tag secrets-vault--v2.1.0 directly, as long as you keep the version in plugin.json and in the marketplace entry in sync.
Tag-based resolution applies only to git-backed sources. For an npm, archive or command source, the constraint does not control which version is fetched. It is still checked when the plugin loads, and the dependent plugin is disabled if the installed version does not satisfy it.
For those three source types, the version checked is the version in the dependency's plugin.json, so set one there before you constrain that dependency. A plugin.json that sets no version satisfies no constraint. Claude Code never installs a dependency with a command source itself, so users install it first, and it never runs a dependency's headersHelper, so users also install a dependency whose marketplace entry sets one before they install your plugin.
Depend on a plugin from another marketplace
By default, Claude Code does not install a dependency from a different marketplace than the declaring plugin's own, unless the user already has that dependency installed and enabled at the same scope. The default prevents one marketplace from silently installing plugins from a source the user has not reviewed.
To allow the install, add the target marketplace's name to allowCrossMarketplaceDependenciesOn in the root marketplace's marketplace.json. The root marketplace is the one that hosts the plugin the user is installing, and only its allowlist applies.
{
"name": "your-marketplace",
"owner": { "name": "Your Org" },
"allowCrossMarketplaceDependenciesOn": ["your-shared-marketplace"],
"plugins": [
{
"name": "deploy-kit",
"source": "./deploy-kit",
"dependencies": [
{ "name": "audit-logger", "marketplace": "your-shared-marketplace" }
]
}
]
}If the allowlist is missing or does not include the target marketplace, Claude Code does not install the dependency. When it is declared in the marketplace entry, the install is refused with a message that starts Dependency "audit-logger@your-shared-marketplace" (required by deploy-kit@your-marketplace) is in marketplace "your-shared-marketplace", which is not in the allowlist and names the field to set. When it is declared in plugin.json, the install completes without the dependency and your plugin then fails to load.
The allowlist check does not apply to a dependency that is already enabled. If a user installs audit-logger from the other marketplace themselves first, at the same scope, deploy-kit then installs without any change to the allowlist.
Ship a bundle for a team
To let users install a chosen set of plugins with one command, publish a plugin whose manifest contains a name and a dependencies array. A plugin manifest needs only name, so this is a valid plugin.
{
"name": "backend-standard",
"version": "1.0.0",
"description": "Standard plugin set for backend engineers",
"dependencies": [
"secrets-vault",
"deploy-kit",
{ "name": "db-migrate", "version": "^3.0" },
"oncall-runbook"
]
}To add a plugin to the standard set later, publish a new backend-standard version with the extra dependency. When the marketplace does not auto-update by default, users either turn on auto-update, whose install of the added dependency requires Claude Code v2.1.319 or later, or update manually with claude plugin update backend-standard, then run /reload-plugins in an open session to install the newly added dependencies.
To deploy a bundle to everyone in an organization, an administrator adds it to enabledPlugins in managed settings; the managed settings guide covers where that policy lives.
Test a plugin and its dependency locally
If you are developing a plugin and the plugin it depends on at the same time, start Claude Code from your shell and load both with --plugin-dir:
claude --plugin-dir ./my-dependency --plugin-dir ./my-pluginThe local copy of the dependency satisfies your plugin's dependency entry, so you do not need to install the dependency from its marketplace. A local plugin.json does not need a version, because a version constraint is not checked against a local copy. An entry that names a marketplace also matches the local copy on Claude Code v2.1.242 or later.
Until you install the dependency from its marketplace, your plugin stops loading whenever the local copy is disabled or absent. If you disabled the local copy, your plugin is disabled at the next plugin load, with an error that ends is disabled — enable it or remove the dependency. If you started a session without the dependency's --plugin-dir flag, the error reports the dependency as not installed.
When both plugins are in one parent folder, you can pass that folder to --plugin-dir once. If the folder is not itself a plugin, Claude Code loads it as a folder of plugins. That requires Claude Code v2.1.265 or later.
How the dependency resolves for your users
When a user installs a plugin that declares { "name": "secrets-vault", "version": "~2.1.0" }, the dependency installs from the highest secrets-vault--v tag that satisfies ~2.1.0 on the repository that hosts secrets-vault. When no tag satisfies the range, the install either fails or uses the marketplace's current copy.
A plugin with its own repository fails with a message containing Dependency "secrets-vault@your-marketplace" has no git tag satisfying. A plugin referenced by a relative path uses the marketplace's current copy instead, and the constraint is checked when the plugin loads. If that copy is outside the range, the dependent plugin stays disabled and claude plugin list shows Requires "secrets-vault@your-marketplace" ~2.1.0, installed 3.0.0.
To confirm which version a constraint resolved to, run claude plugin list. A tag-resolved dependency shows its version with a 12-character commit suffix, such as 2.1.0-8713c5b11005. Constraint checks use the tag's version rather than the version in plugin.json, even if that file lags behind.
When several installed plugins constrain the same dependency, the dependency resolves to the highest version that satisfies all of their ranges. Common combinations resolve like this:
| Plugin A requires | Plugin B requires | Result |
|---|---|---|
^2.0 | >=2.1 | One install at the highest 2.x tag at or above 2.1.0. Both plugins load. |
~2.1 | ~3.0 | Installing plugin B fails with a has conflicting version requirements message. Plugin A and the dependency stay as they were. |
=2.1.0 | none | The dependency stays at 2.1.0. Auto-update skips newer versions while plugin A is installed. |
Auto-update fetches a constrained dependency at the highest git tag that satisfies every installed plugin's range, rather than at the marketplace's latest version. If the ranges do not overlap, auto-update leaves the dependency at its current version, and the /plugin Errors tab shows an entry naming the constraining plugin.
When a user uninstalls the last plugin that constrains a dependency, the dependency is no longer constrained to a version range and resumes tracking its marketplace entry on the next update. claude plugin prune removes auto-installed dependencies no plugin needs anymore.
Besides claude plugin install, these operations also install a missing declared dependency:
/reload-plugins.- Auto-update of the dependent plugin's marketplace.
- Re-running
claude plugin installon the dependent plugin. - Updating the dependent plugin with
claude plugin updateor Update now in/plugin, unless non-essential traffic is off. That path requires Claude Code v2.1.319 or later. claude plugin marketplace add.
When a user turns your plugin on for their claude.ai account, Claude Code loads it as <name>@synced with no marketplace. For that copy, a dependency entry that names a marketplace is met when the user has the dependency installed from that marketplace and enabled, or has a claude.ai plugin of the same name enabled. Claude Code checks your version range against that copy, and a claude.ai plugin that states no version passes the check. Tell users to turn the dependency on there too, or to install it from its marketplace.
Common mistakes
- Constraining a dependency whose releases are not tagged. A git-backed constraint resolves against tags, so an untagged release cannot satisfy it.
- Constraining an npm, archive or command dependency with no version in its manifest. For those sources the constraint is checked against the dependency's
plugin.json, and a manifest with no version satisfies no range. - Crossing marketplaces without the allowlist. Add the target marketplace to
allowCrossMarketplaceDependenciesOnon the root marketplace, or the install is refused or completes without the dependency. - Expecting a command-source dependency to install itself. Claude Code never installs one, so users install it first.
- Looking for a version in a local test copy. A version constraint is not checked against a dependency loaded with
--plugin-dir.
How to confirm it resolved
claude plugin listshows the dependency installed at a version inside your range, with a commit suffix for a tag-resolved copy./pluginopens with no dependency error, and the dependent plugin is enabled.- In a session, the dependency's skills, commands or agents are available, which shows it loaded rather than merely installed.
Where these answers come from
- Anthropic's plugin dependencies page, read November 26, 2026: the manifest fields, the range and tag rules, the cross-marketplace allowlist, bundles, local testing, resolution, combination and auto-update behavior.
- The plugin manifest reference, the dependencies section, read November 26, 2026: the
dependenciesentry shapes and the bare-name rule.
Common questions
Where do I declare a Claude Code plugin dependency?
In the dependencies array of the plugin's .claude-plugin/plugin.json. Each entry is a plugin name, name@marketplace, or an object with name, version and marketplace fields.
How does a version range pick a release?
A range resolves against git tags on the repository that hosts the dependency, and the dependency installs at the highest tag that satisfies the range. The tag is <plugin-name>--v<version>, and claude plugin tag --push creates it from the plugin's manifest.
Why was my cross-marketplace dependency refused?
The root marketplace must list the target marketplace in allowCrossMarketplaceDependenciesOn. Without that entry the install is refused when the dependency is declared in the marketplace entry, and it completes without the dependency when declared in plugin.json.
How do I see which dependency version is installed?
Run claude plugin list. A tag-resolved dependency shows its version with a 12-character commit suffix, such as 2.1.0-8713c5b11005.