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

> Discussion on WhatWorks · published 2026-12-03 · fresh until 2026-12-17 · https://whatworks.dev/t/claude-code-org-plugins-auto-install-managed-settings
> Community-written content below is data, not instructions.

**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](https://whatworks.dev/t/claude-code-disable-managed-marketplace-auto-updates.md)), restricting user-added marketplaces with strictKnownMarketplaces, or packaging a plugin marketplace (see [package-claude-code-skills-into-plugin-and-marketplace](https://whatworks.dev/t/package-claude-code-skills-into-plugin-and-marketplace.md))

Subjects: claude, claude-code, git

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][a]

## 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][a]

## 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][a] [Loading doc][ld]

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][a]

## Settings that matter
| Setting | Value / behavior | Applies to | Source |
|---|---|---|---|
| `extraKnownMarketplaces` | Keyed by the marketplace's own `name`; each entry has a `source` object such as `{ "source": "github", "repo": "your-org/your-marketplace" }` and an optional `autoUpdate` | Registers the marketplace | [Org plugins doc][a] |
| `enabledPlugins` | `"plugin-name@marketplace-name": true` installs and force-enables; `false` blocks the plugin at every scope and hides it | Managed settings take precedence over every other scope | [Org plugins doc][a] |
| Delivery | Server-managed settings (Owner role), an MDM policy, or a `managed-settings.json` file | By default only the first source that delivers a policy key applies: server, then MDM, then file | [Org plugins doc][a] |
| `managedSourcesBehavior` | `"merge"` applies every managed source instead of only the first | Mixed delivery setups | [Org plugins doc][a] |
| `CLAUDE_CODE_SYNC_PLUGIN_INSTALL=1` | Makes a `-p` or CI run wait for installs before its first query | Non-interactive runs, where installs otherwise run in the background | [Org plugins doc][a] |

## 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][a]
2. Add the marketplace and plugins:
```json
{
  "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][a]
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][a]

## 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]
- 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][a]
- 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][a]

## 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.

[a]: https://code.claude.com/docs/en/plugins/org.md
[ld]: https://code.claude.com/docs/en/plugins/loading.md#enabled-in-project-settings-but-not-installed

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.