Answer: You can configure mods using environment variables and settings such as CLAUDE_CODE_PLUGIN_DIRS, CLAUDE_CODE_PLUGIN_DIR_WATCH, prependPlugins, appendPlugins, allowManagedModsOnly, allowModsToOverrideDenyRules, allowManagedHooksOnly, disableAllHooks, disableSideloadFlags, and pluginConfigs. Status: Confirmed Entry: tool/claude-code/settings/mod-settings-env-vars Revision: 2 Digest: sha256:ea83be9a66f7fa9e (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:17Z Last changed: 2026-11-14T12:19:39Z (prependPlugins, appendPlugins: prependPlugins → prependPlugins`, `appendPlugins) Last verified: 2026-11-20T12:23:51Z Next check: 2026-11-21T12:23:51Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of CLAUDE_CODE_PLUGIN_DIRS | CLAUDE_CODE_PLUGIN_DIRS | [1] | 2026-11-20 CLAUDE_CODE_PLUGIN_DIR_WATCH | CLAUDE_CODE_PLUGIN_DIR_WATCH | [1] | 2026-11-20 prependPlugins, appendPlugins | prependPlugins`, `appendPlugins | [1] | 2026-11-20 allowManagedModsOnly | allowManagedModsOnly | [1] | 2026-11-20 allowModsToOverrideDenyRules | allowModsToOverrideDenyRules | [1] | 2026-11-20 allowManagedHooksOnly | allowManagedHooksOnly | [1] | 2026-11-20 disableAllHooks | disableAllHooks | [1] | 2026-11-20 disableSideloadFlags | disableSideloadFlags | [1] | 2026-11-20 Sources: [1] Anthropic. "Mods reference". https://code.claude.com/docs/en/plugins/mods/reference.md Role: primary. Accessed: 2026-11-20T12:23:51Z Quote: "| `CLAUDE_CODE_PLUGIN_DIRS` | Environment, or `env` in `~/.claude/settings.json` | Plugin directories to load as `--plugin-dir` does, for apps you can't pass a flag to. Absolute paths separated by `:`, or `;` on Windows. |" (Supports: CLAUDE_CODE_PLUGIN_DIRS) Quote: "| `CLAUDE_CODE_PLUGIN_DIR_WATCH` | Environment | Whether mods reload on save." (Supports: CLAUDE_CODE_PLUGIN_DIR_WATCH) Quote: "| `prependPlugins`, `appendPlugins` | Managed settings." (Supports: prependPlugins, appendPlugins) Quote: "| `allowManagedModsOnly` | Managed settings, as an [option on the built-in guard]" (Supports: allowManagedModsOnly) Quote: "| `allowModsToOverrideDenyRules` | Managed settings, as an [option on the built-in guard]" (Supports: allowModsToOverrideDenyRules) Quote: "| `allowManagedHooksOnly` | Managed settings | Blocks hooks and installed mods that aren't your organization's." (Supports: allowManagedHooksOnly) Quote: "| `disableAllHooks` | Any settings file | In managed settings, no mod or hook from an installed plugin runs." (Supports: disableAllHooks) Quote: "| `disableSideloadFlags` | Managed settings | Rejects `--plugin-dir` and `--plugin-url` at startup |" (Supports: disableSideloadFlags) Published: 2026-11-20T02:55:29Z Snapshot SHA-256: 68af2b8c3585c594b6fd2cf5d66f5c3b5075cfb7f1822606dc98ddb5e7b1135f (captured 2026-11-19T12:19:13Z) 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]. On this check the text of [1] was unchanged since 2026-11-19T12:19:14Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:23:51Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:23:51Z Last attempt: 2026-11-20T12:23:51Z Notes and limitations: Extracted automatically from a single official source (section "Settings and environment variables"). Related: https://latestn.com/tool/claude-code/settings/pause-archive-delete-project How do I pause, archive, or delete a Claude Code project? https://latestn.com/tool/claude-code/settings/persist-auth-settings-rebuilds How do I persist Claude Code authentication and settings across dev container rebuilds? https://latestn.com/tool/claude-code/settings/personal-settings-out-of-repo How do I keep my personal Claude Code settings out of a git repository? https://latestn.com/tool/claude-code/settings/mcp-config-location Where does Claude Code save MCP server configuration on disk? https://latestn.com/tool/claude-code/settings/mcp-installation-scopes What MCP installation scopes exist in Claude Code and how do they take precedence? https://latestn.com/tool/claude-code/settings/mobile-push-notifications How do I enable push notifications for Claude Code sessions on my phone? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-14T12:19:39Z | changed | prependPlugins, appendPlugins: prependPlugins → prependPlugins`, `appendPlugins | [1] 2026-11-13T03:05:17Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/settings/mod-settings-env-vars/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/settings/mod-settings-env-vars POST: https://latestn.com/dispute/tool/claude-code/settings/mod-settings-env-vars with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/settings/mod-settings-env-vars?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What settings and environment variables can I use to configure Claude Code mods? Revision 2, last verified 2026-11-20T12:23:51Z. https://latestn.com/tool/claude-code/settings/mod-settings-env-vars (accessed 2026-11-21T09:55:10Z). @misc{LatestN_tool_claude_code_settings_mod_settings_env_vars_r2, title = {What settings and environment variables can I use to configure Claude Code mods?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/settings/mod-settings-env-vars}}, note = {Revision 2; digest sha256:ea83be9a66f7fa9e; last verified 2026-11-20T12:23:51Z; accessed 2026-11-21T09:55:10Z} } 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/settings/mod-settings-env-vars