Answer: To declare a plugin dependency with a version constraint, list it in the `dependencies` array of your plugin's `.claude-plugin/plugin.json` as an object with a `name` and a `version` field, where `version` is a semantic-version range such as `~2.1.0`. Status: Confirmed Entry: tool/claude-code/features/declare-dependency-version-constraint Revision: 1 Digest: sha256:0d1103f479916277 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:02Z Last changed: 2026-11-13T03:05:02Z Last verified: 2026-11-20T12:23:05Z Next check: 2026-11-21T12:23:05Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of version constraint example | ~2.1.0 | [1] | 2026-11-20 manifest location | .claude-plugin/plugin.json | [1] | 2026-11-20 version field description | A [semantic-version range](https://github.com/npm/node-semver#ranges) such as `~2.1.0`, `^2.0`, `>=1.4`, or `=2.1.0`. | [1] | 2026-11-20 name field | The dependency's plugin name, as it appears in its marketplace entry. | [1] | 2026-11-20 marketplace field | A different marketplace to resolve `name` in. | [1] | 2026-11-20 Sources: [1] Anthropic. "Plugin dependencies". https://code.claude.com/docs/en/plugins/dependencies.md Role: primary. Accessed: 2026-11-20T12:23:05Z Quote: "{ "name": "secrets-vault", "version": "~2.1.0" }" (Supports: version constraint example) Quote: "List dependencies in the `dependencies` array of your plugin's `.claude-plugin/plugin.json`." (Supports: manifest location) Quote: "A [semantic-version range](https://github.com/npm/node-semver#ranges) such as `~2.1.0`, `^2.0`, `>=1.4`, or `=2.1.0`." (Supports: version field description) Quote: "The dependency's plugin name, as it appears in its marketplace entry." (Supports: name field) Quote: "A different marketplace to resolve `name` in." (Supports: marketplace field) Published: 2026-11-20T03:41:00Z Snapshot SHA-256: 9aadf3651b8c9c434b0bb0c56353987449e7732225613ee443f183ef8ba41c7a (captured 2026-11-20T12:23:05Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:23:05Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:23:05Z Last attempt: 2026-11-20T12:23:05Z Notes and limitations: Extracted automatically from a single official source (section "Declare a dependency with a version constraint"). Related: https://latestn.com/tool/claude-code/features/dependencies-claude-ai-loading How do plugin dependencies behave when a Claude Code plugin loads from claude.ai? https://latestn.com/tool/claude-code/features/disable-advisor-tool How do I turn the advisor off in Claude Code? https://latestn.com/tool/claude-code/features/effective-prompt-patterns What patterns make Claude Code prompts more effective? https://latestn.com/tool/claude-code/features/create-marketplace-json How do I create a marketplace.json file for a Claude Code plugin marketplace? https://latestn.com/tool/claude-code/features/create-project How do I create a new project in Claude Code? https://latestn.com/tool/claude-code/features/customize-code-review-rules How do I customize what Claude Code Code Review flags on my pull requests? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:05:02Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/features/declare-dependency-version-constraint/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/features/declare-dependency-version-constraint POST: https://latestn.com/dispute/tool/claude-code/features/declare-dependency-version-constraint with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/features/declare-dependency-version-constraint?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I declare a plugin dependency with a version constraint in Claude Code? Revision 1, last verified 2026-11-20T12:23:05Z. https://latestn.com/tool/claude-code/features/declare-dependency-version-constraint (accessed 2026-11-21T09:53:31Z). @misc{LatestN_tool_claude_code_features_declare_dependency_version_constraint_r1, title = {How do I declare a plugin dependency with a version constraint in Claude Code?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/features/declare-dependency-version-constraint}}, note = {Revision 1; digest sha256:0d1103f479916277; last verified 2026-11-20T12:23:05Z; accessed 2026-11-21T09:53:31Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/features/declare-dependency-version-constraint