Déploiement 3p / entreprise de Claude Desktop sous Linux

VérifiéSûr

Référence sur le déploiement 3p/managed de Claude Desktop sous Linux : lecture de managed-settings.json, effets du mode 3p, répertoires Claude-3p et vérification via les logs.

Spar Skills Guide Bot
DevOpsAvancé
11/11/2026
Claude Code
#enterprise-deployment#managed-settings#claude-desktop#linux#inference-gateway

Recommandé pour

Synthèse automatique

Documente le déploiement « 3p » (géré/entreprise) de Claude Desktop sous Linux, piloté par /etc/claude-desktop/managed-settings.json, et les effets du mode 3p sur le répertoire userData, les onglets visibles et le SPA de configuration.

Points forts

  • Décrit précisément le schéma de managed-settings.json et signale le piège des managedMcpServers en tableau (une map mcpServers est ignorée silencieusement)
  • Explique chaque effet du mode 3p (userData dans ~/.config/Claude-3p, onglet Chat masqué, bannière de téléchargement trompeuse) avec la position à adopter et la correction côté configuration
  • Distingue le namespace de logs [custom-3p], qui appartient à l'amont, des tags de patch, et recommande de s'appuyer sur des chaînes stables plutôt que sur les noms minifiés
  • Donne les clés d'activation du mode (inferenceProvider, bootstrapUrl, disableDeploymentModeChooser) et la procédure de vérification par les logs

Limites

  • Contenu spécifique à Linux uniquement : rien sur Windows/MSIX ni macOS
  • Noms minifiés et chemins valables pour une version donnée (v1.14271.0) et susceptibles de changer à chaque release
  • Suppose l'existence du pipeline de patches interne (fix_marketplace_linux.nim, fix_ion_dist_linux.nim, baseline/ION.md) et renvoie à des mémoires externes pour le schéma complet
Quand l'utiliser

À consulter lorsqu'on configure ou débogue un déploiement géré de Claude Desktop sous Linux avec une passerelle d'inférence ou une configuration MDM.

Quand l'éviter

Inutile pour un usage standard de Claude Desktop en 1p, ou pour des déploiements sur Windows et macOS.

Analyse de sécurité

Sûr
Score qualité80/100

This is a pure reference document. The only executable content is read-only log inspection (`rg -a` over files under ~/.config/Claude-3p/logs/); there are no destructive commands, no network calls, no curl|sh pipelines, no obfuscated or base64 payloads, and no instruction to transmit API keys or tokens anywhere. Mentions of `inferenceGatewayApiKey` and managed-settings.json are schema descriptions only. Mild prompt-injection-adjacent framing exists ('Our stance', 'The rule for new patches') but it is ordinary authorship of internal patch guidance, not an attempt to hijack the evaluating agent, and it never asks the reader to change role or ignore policies.

Aucun point d'attention détecté

Comment cette analyse est faite

Exemples

Activer le mode passerelle
Write a /etc/claude-desktop/managed-settings.json that points Claude Desktop at our LiteLLM gateway with two models, and explain why my managedMcpServers entry keeps getting ignored.
Comprendre le dossier Claude-3p
My Claude Desktop config appeared under ~/.config/Claude-3p instead of ~/.config/Claude and the Chat tab is gone. Explain what triggered 3p mode and how to restore the Chat tab without patching anything.
Diagnostiquer la bannière de téléchargement
Claude Desktop on Linux shows a 'Download a one-time package' banner in our managed deployment. Check main.log for the 3p markers and tell me whether Cowork still works on the native VM backend.

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/linux/fix_marketplace_linux.nim, patches/linux/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 managedMcpServers is an array (name+transport+url/command), NOT an object-keyed mcpServers map (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 / bootstrapUrl present + (disableDeploymentModeChooser OR persisted deploymentMode!=="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 old claude-cowork-service is 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: inferenceModels must be Anthropic models or the config-health gate reports config_model_rejected. A gpt-* 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 through app.getPath("userData"), which auto-relocates to Claude-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 .desktop files live in the XDG ~/.config/autostart/ spec dir and are CLAUDE_PROFILE-aware - both correctly not tied to the -3p userData.
  • The rule for new patches: write user state via app.getPath("userData") (auto-isolates), never a literal os.homedir()+"/.config/Claude". The Python screenshot fallback ~/.config/Claude/... in js/cu_linux_executor.js is dead code (the JS always passes the real getPath value via CLAUDE_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.json path.
  • 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 annexes

Ce 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.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/3p-enterprise-deployment-of-claude-desktop-on-linux-mvvwbpa7/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-of-claude-desktop-on-linux-mvvwbpa7' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/3p-enterprise-deployment-of-claude-desktop-on-linux-mvvwbpa7/download' --output '.skill-downloads/3p-enterprise-deployment-of-claude-desktop-on-linux-mvvwbpa7/SKILL.md.part' && mv '.skill-downloads/3p-enterprise-deployment-of-claude-desktop-on-linux-mvvwbpa7/SKILL.md.part' '.skill-downloads/3p-enterprise-deployment-of-claude-desktop-on-linux-mvvwbpa7/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-of-claude-desktop-on-linux-mvvwbpa7/SKILL.md' && test -s '.skill-downloads/3p-enterprise-deployment-of-claude-desktop-on-linux-mvvwbpa7/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/3p' && cp -R '.skill-downloads/3p-enterprise-deployment-of-claude-desktop-on-linux-mvvwbpa7' '.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’OpenSkills
openskills install './.skill-downloads/3p-enterprise-deployment-of-claude-desktop-on-linux-mvvwbpa7'

openskills read '3p-enterprise-deployment-of-claude-desktop-on-linux-mvvwbpa7'

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 sync

Mode 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-of-claude-desktop-on-linux-mvvwbpa7/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.

Skills similaires