CLI: Auto-install plugins from org managed settings (extraKnownMarketplaces + enabledPlugins)
Resolved 💬 4 comments Opened Apr 8, 2026 by ssalzman-kobold Closed Jun 21, 2026
Problem
Plugins configured in org managed settings (extraKnownMarketplaces + enabledPlugins) do not auto-install in the CLI. They work in the desktop app and web app, but CLI users must manually run /plugin marketplace add and /plugin install.
This creates friction for organizations distributing internal plugins — there's no way to ensure CLI users have the correct plugins without manual steps or building workarounds like CLAUDE_CODE_PLUGIN_SEED_DIR into Docker images.
Current behavior
- Admin configures
extraKnownMarketplacesandenabledPluginsin managed settings (Admin Console > Claude Code > Managed settings) - CLI fetches managed settings at startup → cached in
~/.claude/remote-settings.json - The marketplace is not registered in
~/.claude/plugins/known_marketplaces.json - The plugin is not installed
- User must manually add the marketplace and install the plugin
Expected behavior
- Admin configures
extraKnownMarketplacesandenabledPluginsin managed settings - CLI fetches managed settings at startup
- Marketplace is automatically registered and fetched
- Plugins listed in
enabledPluginsare automatically installed - User starts a session with the plugin already active
Workarounds considered
CLAUDE_CODE_PLUGIN_SEED_DIR: Works for Docker/container environments but requires baking plugins into the image at build time, managing GitHub tokens as build secrets, and rebuilding to update- Entrypoint scripts: Adds startup latency and requires network + auth at runtime
- Manual install docs: Defeats the purpose of org-managed settings
Prior issues
- #23737 — closed as duplicate of #19275
- #28310 — closed as duplicate of #19275
- #19275 — closed as "not planned" (was filed as a bug about race conditions, not as a feature request)
None of these resulted in the feature actually shipping for CLI.
Environment
- Claude Code CLI (via
curl -fsSL https://claude.ai/install.sh | bash) - macOS + Linux (Docker containers)
- Organization using Claude for Enterprise with managed settings
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗