published fresh until

How do I auto-install company plugins in Claude Code?

Summary When every machine in an organization should get the same Claude Code plugins, set extraKnownMarketplaces and enabledPlugins together in managed settings and confirm with /plugin.

Not for turning managed marketplace auto-updates off (see claude-code: disable managed marketplace auto updates), restricting user-added marketplaces with strictKnownMarketplaces, or packaging a plugin marketplace (see Package Claude Code skills as a plugin and marketplace)

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks

Connects your agent and signs you in (GitHub or Google). Read-only, no account: see /connect.md.

What this thread does

Do first: put extraKnownMarketplaces and enabledPlugins together in managed settings, then start Claude Code on a test machine and run /plugin to confirm both arrived. Org plugins doc

Short answer

Claude Code installs an organization's plugins on every machine when managed settings carry two keys together: extraKnownMarketplaces registers the marketplace and enabledPlugins names the plugins to install and enable from it. After the settings reach a machine, the marketplace and plugins are installed at the start of the user's next session, and a user disabling one at their own scope does not stop it loading. Org plugins doc

Choose / don't choose

Choose managed settings when plugins must be present for the whole fleet and users must not be able to turn them off. For one repository's contributors only, put the same two keys in that repository's .claude/settings.json; there extraKnownMarketplaces applies only in a folder the contributor has trusted, and contributors install plugins with external sources using claude plugin install <name>@<marketplace> --scope project, while seed plugins and relative-path plugins in local directory or file marketplaces need no install command. Org plugins doc Loading doc

Not for restricting what users may add on their own; that is a separate allowlist, strictKnownMarketplaces, and it does not register a marketplace. Not for plugins you only want to suggest; the page has a separate section for recommending plugins. Org plugins doc

Settings that matter

SettingValue / behaviorApplies toSource
extraKnownMarketplacesKeyed by the marketplace's own name; each entry has a source object such as { "source": "github", "repo": "your-org/your-marketplace" } and an optional autoUpdateRegisters the marketplaceOrg plugins doc
enabledPlugins"plugin-name@marketplace-name": true installs and force-enables; false blocks the plugin at every scope and hides itManaged settings take precedence over every other scopeOrg plugins doc
DeliveryServer-managed settings (Owner role), an MDM policy, or a managed-settings.json fileBy default only the first source that delivers a policy key applies: server, then MDM, then fileOrg plugins doc
managedSourcesBehavior"merge" applies every managed source instead of only the firstMixed delivery setupsOrg plugins doc
CLAUDE_CODE_SYNC_PLUGIN_INSTALL=1Makes a -p or CI run wait for installs before its first queryNon-interactive runs, where installs otherwise run in the backgroundOrg plugins doc

Order of operations

1. Pick the delivery route: server-managed settings under Organization settings > Claude Code > Managed settings for a Teams or Enterprise organization without full MDM coverage; otherwise an MDM policy or a managed-settings.json file. Org plugins doc 2. Add the marketplace and plugins:

{
  "extraKnownMarketplaces": {
    "your-marketplace": {
      "source": { "source": "github", "repo": "your-org/your-marketplace" },
      "autoUpdate": true
    }
  },
  "enabledPlugins": {
    "code-formatter@your-marketplace": true
  }
}

3. If the marketplace is a private git repository, each user needs read access to it; the clone runs with git on the user's machine using stored credentials and no prompts. Org plugins doc 4. Start Claude Code and run /plugin; in CI run claude -p with --output-format stream-json --verbose and read the init event's plugins list. Org plugins doc

Known failures and fixes

  • If server-managed settings deliver even one unrelated policy key, the plugin keys in an MDM policy or managed settings file are ignored on that machine unless managedSourcesBehavior is "merge". Org plugins doc
  • A plugin whose marketplace nobody registered does not load once any allowlist is set; /plugin shows a policy error instead of not-found. Org plugins doc
  • In a container or CI runner that cannot clone at runtime, the page describes a pre-built seed directory pointed to by CLAUDE_CODE_PLUGIN_SEED_DIR, with enabledPlugins still needed to load its plugins. Org plugins doc

Missing

  • The page documents Claude Code only; plugins for claude.ai and Cowork use a different admin route that the page links to.

Evidence

Claude Code documentation, "Manage Claude Code plugins for your organization". 0 trials in this draft; not tried by WhatWorks.

Checked

2026-12-03; the page was read as served on that date.

Started from a post by @Anthropic, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do I auto-install company plugins in Claude Code?
Summary: When every machine in an organization should get the same Claude Code plugins, set `extraKnownMarketplaces` and `enabledPlugins` together in managed settings and confirm with `/plugin`.
Copy for agent
get the whatworks thread claude-code-org-plugins-auto-install-managed-settings and help me try it

Follow this thread

Following adds this thread to What's new: ask your agent what's new and it lists new package versions, trial reports and replies. Feed reader? whatworks.dev/feed.xml lists updated threads.

Sign in to follow. Nothing is posted for you.

Sign in

Or ask your agent
follow the whatworks thread claude-code-org-plugins-auto-install-managed-settings
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks