Synthèse automatique
Référence sur le déploiement « 3p » (tiers / entreprise / passerelle d'inférence) de Claude Desktop sous Linux, piloté par /etc/claude-desktop/managed-settings.json : lecture du fichier, effets du mode 3p, chemins scindés et vérification via les journaux.
Points forts
- Décrit précisément le schéma de managed-settings.json, notamment le fait que managedMcpServers doit être un tableau et non une map mcpServers (silencieusement ignorée).
- Explique les effets concrets du mode 3p : bascule de userData vers ~/.config/Claude-3p, masquage de l'onglet Chat, SPA de configuration, avec pour chacun la position à adopter.
- Distingue clairement ce qui relève du comportement upstream (namespace de log [custom-3p]) de ce qui relève des patches du dépôt.
- Signale les clés de configuration exactes (inferenceProvider, inferenceGatewayBaseUrl, disableDeploymentModeChooser…) et les moyens de rétablir un comportement, souvent sans patch.
Limites
- Les noms minifiés cités sont propres à une version (vérifié contre v1.14271.0) et changent à chaque release.
- Suppose une bonne familiarité avec le déploiement géré de Claude Desktop et l'écosystème du dépôt (patches Nim, baseline/ION.md).
- Ne couvre que Linux ; les chemins Windows/macOS et l'ancien pipeline MSIX sont mentionnés comme obsolètes sans détail.
À utiliser dès qu'il faut configurer ou déboguer un déploiement géré de Claude Desktop sous Linux avec une passerelle d'inférence, ou comprendre le mode 3p.
À éviter pour une utilisation standard de Claude Desktop en compte personnel, ou pour du déploiement sur Windows/macOS.
Analyse de sécurité
SûrThis is a documentation/reference skill. It contains no executable instructions, no shell pipelines, no network fetches, no obfuscated payloads, and no attempts to disable safety controls. The only 'powerful' surfaces it touches are config files and API-key field names, which it discusses anatomically rather than instructing agents to read or exfiltrate them.
- •References privileged config paths (/etc/claude-desktop/managed-settings.json) and credential-adjacent fields (inferenceGatewayApiKey, inferenceGatewayAuthScheme) purely descriptively — no instruction to read, print, or transmit them
- •Mentions patch files (patches/fix_marketplace_linux.nim, patches/fix_ion_dist_linux.nim) and memory keys (project_enterprise_json_schema, /linux) that are out of scope of the skill body; no code is embedded or executed
Exemples
I put my MCP servers under a `mcpServers` object in /etc/claude-desktop/managed-settings.json but none of them show up. Why, and what's the correct shape?Our managed Claude Desktop deployment uses an inference gateway and the Chat tab disappeared. How do I bring it back without patching anything?The 3P setup window at app://localhost/setup-desktop-3p is broken in our build — walk me through fix_ion_dist_linux and fix_marketplace_linux and how to confirm it from the logs.name: 3p description: Reference for the 3p / enterprise / inference-gateway deployment of Claude Desktop on Linux - how /etc/claude-desktop/managed-settings.json is read, what "3p mode" changes (separate ~/.config/Claude-3p userData, hidden Chat tab, the false VM-download banner), how Cowork still runs under it, which hardcoded paths are safe vs split under the -3p switch, and how to verify it all from logs. Use when working on managed-settings.json, inferenceProvider/gateway/Bedrock/Vertex configs, the 3p setup SPA (ion-dist), the Claude-3p directory, or debugging managed-deployment Cowork. when_to_use: When the user mentions managed-settings.json (or the old enterprise.json), managed/MDM config, 3p / third-party deployment, inferenceProvider (gateway/bedrock/vertex/foundry/mantle), an inference gateway / LiteLLM, the Claude-3p config dir, the "Download a one-time package" banner, deploymentMode, the 3P setup window, or edits fix_marketplace_linux / fix_ion_dist_linux. paths: patches/fix_marketplace_linux.nim, patches/fix_ion_dist_linux.nim, baseline/ION.md
3p / enterprise / inference-gateway deployment on Linux
"3p" = third-party / managed deployment: Claude Desktop pointed at a non-Anthropic inference
backend (Bedrock, Vertex, Azure, or a self-hosted gateway like LiteLLM) and/or an MDM-managed config.
On Linux it is driven by /etc/claude-desktop/managed-settings.json.
Minified names below are version-specific (they churn every release - see /linux); anchor on stable
strings. Verified against v1.14271.0.
managed-settings.json (/etc/claude-desktop/managed-settings.json)
The official Linux build reads /etc/claude-desktop/managed-settings.json natively - it ships a Linux
managed-config reader, so we no longer patch the win32-registry/macOS-plist reader the way the old MSIX
pipeline did. (Historical note: on the MSIX, fix_enterprise_config_linux.nim injected a Linux JSON reader
for the old enterprise.json path; that patch and path are obsolete now that the official build does it.)
Schema is documented in memory project_enterprise_json_schema - the load-bearing facts:
- Top-level
managedMcpServersis an array (name+transport+url/command), NOT an object-keyedmcpServersmap (that is silently dropped by the schema parser - no warning). - Inference-gateway keys:
inferenceProvider("gateway"/"bedrock"/"vertex"/…),inferenceGatewayBaseUrl,inferenceGatewayApiKey,inferenceGatewayAuthScheme,inferenceModels(array; first is default),disableDeploymentModeChooser:true. - Any of
inferenceProvider/bootstrapUrlpresent + (disableDeploymentModeChooserOR persisteddeploymentMode!=="1p") flips the app into 3p mode.
What "3p mode" changes (all upstream behavior, not our patches)
| Effect | Why | Our stance |
|---|---|---|
| userData -> ~/.config/Claude-3p/ | Upstream setPath("userData", base+"-3p") at bootstrap, guarded by !process.env.CLAUDE_USER_DATA_DIR. Logs [custom-3p] .... | Intended - isolates 1p login from 3p. Keep it. (To collapse: export CLAUDE_USER_DATA_DIR in the launcher - it short-circuits the suffix. Not done by default.) |
| Chat tab hidden | chatTabEnabled:A=>A.chatTabEnabled===!0 (strict; default off in 3p). Cowork/Code stay (!==!1). | Intended. To restore: add "chatTabEnabled": true to managed-settings.json (config-only, no patch). |
| 3P setup SPA at app://localhost/setup-desktop-3p | The ion-dist config UI. | fix_ion_dist_linux + fix_marketplace_linux. Config-key schema in baseline/ION.md. |
[custom-3p] in main.log is upstream's own log namespace - do not mistake it for a patch tag.
Cowork under 3p: works the same as 1p, on the official native backend
Cowork runs on the official native Cowork VM backend bundled in the Linux .deb (cowork-linux-helper
- QEMU/OVMF; requires
/dev/kvm) - the same backend 1p uses. There is no separate daemon (the oldclaude-cowork-serviceis deprecated). The 3p OAuth bounce (issue #142 /session_stale_relogin) only fires for a genuinely broken token; a logged-in account with credits + valid Anthropic models does not bounce. (Provider model names matter:inferenceModelsmust be Anthropic models or the config-health gate reportsconfig_model_rejected. Agpt-*entry, or no credits ->billing_error, makes a turn fail and looks like a bounce - it is not.)
The old "Download a one-time package" banner (getDownloadStatus() -> NotDownloaded because the local
VM-image check never matched on the MSIX build) is no longer ours to patch: the official Linux build ships
the native Cowork VM backend, so the historical fix_cowork_download_status_linux.nim patch is obsolete.
Does the Claude-3p split break anything? (hardcoded-path audit, verified)
No load-bearing path breaks. State isolates between Claude (1p) and Claude-3p (3p) by design;
nothing crashes or cross-leaks. Rules:
- Markers/sockets (quick-entry, SSO-callback) live in
$XDG_RUNTIME_DIR(+CLAUDE_PROFILE), not.config-> unaffected by the userData switch. - All Electron userData (sessions, logs,
claude_desktop_config.json, custom-themes JSON, screenshot restore-token) goes throughapp.getPath("userData"), which auto-relocates toClaude-3p. So it follows the split (e.g. a custom-theme set in 1p won't carry into 3p - cosmetic only). - CLI config uses
CLAUDE_CONFIG_DIR(launcher); autostart.desktopfiles live in the XDG~/.config/autostart/spec dir and areCLAUDE_PROFILE-aware - both correctly not tied to the-3puserData. - The rule for new patches: write user state via
app.getPath("userData")(auto-isolates), never a literalos.homedir()+"/.config/Claude". The Python screenshot fallback~/.config/Claude/...injs/cu_linux_executor.jsis dead code (the JS always passes the realgetPathvalue viaCLAUDE_PORTAL_TOKEN_PATH) - harmless, but don't copy that pattern.
Verify it loaded / works (logs at ~/.config/Claude-3p/logs/)
Note the dir: 3p logs to ~/.config/Claude-3p/, NOT ~/.config/Claude/. Reading the wrong dir gives
stale/1p evidence.
L=~/.config/Claude-3p/logs/main.log
rg -a 'Enterprise config loaded|custom-3p\] (3P mode active|Credentials loaded|ConfigHealth)' "$L" | tail
# healthy gateway: [custom-3p] ConfigHealth recomputed { state: 'healthy', provider: 'gateway' }
rg -a 'LocalAgentModeSessions.start|Turn succeeded|cycle_health|session_stale_relogin|config_model_rejected|billing_error' "$L" | tail
# Cowork spawn proof (official native VM backend):
rg -a 'Using Claude VM spawn|Spawn succeeded|vmStarted|Turn succeeded' ~/.config/Claude-3p/logs/cowork_vm_node.log | tail
Related
baseline/ION.md- 3P setup SPA bundle, patched patterns, config-key schema (inferenceProvider,deploymentOrganizationUuid, …) and the~/.config/Claude-3p/claude_desktop_config.jsonpath.- memory
project_enterprise_json_schema- the exact managed-settings.json shape + how to confirm it loaded. - memory
issue142_cowork_3p_oauth_regression- the OAuth-bounce mechanism (only bites a broken token).
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/3p-enterprise-deployment-on-linux-mrwakd6k/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/3p-enterprise-deployment-on-linux-mrwakd6k' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/3p-enterprise-deployment-on-linux-mrwakd6k/download' --output '.skill-downloads/3p-enterprise-deployment-on-linux-mrwakd6k/SKILL.md.part' && mv '.skill-downloads/3p-enterprise-deployment-on-linux-mrwakd6k/SKILL.md.part' '.skill-downloads/3p-enterprise-deployment-on-linux-mrwakd6k/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/3p-enterprise-deployment-on-linux-mrwakd6k/SKILL.md' && test -s '.skill-downloads/3p-enterprise-deployment-on-linux-mrwakd6k/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/3p' && cp -R '.skill-downloads/3p-enterprise-deployment-on-linux-mrwakd6k' '.claude/skills/3p'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/3p-enterprise-deployment-on-linux-mrwakd6k'openskills read '3p-enterprise-deployment-on-linux-mrwakd6k'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/3p-enterprise-deployment-on-linux-mrwakd6k/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Configurer un canal de discussion avec SecretRefs
DevOps
Configurez des canaux de discussion avec des commandes non interactives, les secrets étant uniquement des SecretRefs. Couvre les étapes de collecte, modification, réparation et vérification.
Enquêter sur les échecs CI de ClickHouse
DevOps
Investigue un échec CI de ClickHouse de bout en bout à partir d'une URL de PR ou de rapport S3. Récupère les tests échoués, classe flaky vs vraie régression, et cherche des issues/fixes existants.
Revue de PR Ansible
DevOps
Examine une PR Ansible selon le processus standardisé du projet, incluant la validation des changelogs, la couverture de tests et le suivi des commentaires.