NachschlagenQuellenregister

Dokumentationerreichbar

Anthropic, Settings files and precedence

code.claude.com (externe Seite)

Die Dokumentation zu den Ein­stel­lungs­da­teien von Claude Code: welche Ebenen es gibt, in welche Ebene ein Schlüssel gehört, wie man eine Änderung prüft und welcher Wert gilt, wenn ein Schlüssel an mehreren Stellen steht.

geprüft 22.11.2026

Worauf sich diese Seite beruft, wörtlich, abgerufen am 12.10.2026:

  • the file it reads a setting from decides who the setting applies tobestätigt 22.11.2026
  • Claude Code reads settings from four files, and an organization can also deliver managed settings from the claude.ai console.bestätigt 22.11.2026
  • Installing Claude Code doesn’t create any settings file.bestätigt 22.11.2026
  • when you give a standing approval on a permission promptbestätigt 22.11.2026
  • that it writes for itself; you don’t need to edit itbestätigt 22.11.2026
  • When the same key appears in more than one place, Claude Code uses the value from the highest level that sets it.bestätigt 22.11.2026
  • Claude Code combines the lists instead of picking one, so each file can add entries without removing another file’s.bestätigt 22.11.2026
  • Managed is the top level.bestätigt 22.11.2026
  • For a few security-sensitive keys, Claude Code honors a stricter value from a lower level over a managed valuebestätigt 22.11.2026
  • so everyone who clones the repository gets the same permissions, hooks, and plugin settingsbestätigt 22.11.2026
  • Until then they still see prompts and don’t get plugins from a marketplace the file declares.bestätigt 22.11.2026
  • don’t take effect from project or local settingsbestätigt 22.11.2026
  • so the file stays out of your commits in every repositorybestätigt 22.11.2026
  • It lists a short set of personal options such as theme, editor mode, and verbose output, not every settings key.bestätigt 22.11.2026
  • change settings there by editing a settings file or through those apps’ own settingsbestätigt 22.11.2026
  • Settings files are strict JSONbestätigt 22.11.2026
  • which gives you autocomplete and inline validationbestätigt 22.11.2026
  • Claude Code watches your settings files and reloads them when they changebestätigt 22.11.2026
  • Claude Code reads some keys only once, at session startbestätigt 22.11.2026
  • The value applies to that session and your settings files stay as they were.bestätigt 22.11.2026
  • The line confirms which files Claude Code read; it doesn’t show which file supplied each key.bestätigt 22.11.2026
  • Environment variables aren’t a level in this stack.bestätigt 22.11.2026
  • which one applies is decided per pair, not by levelbestätigt 22.11.2026
  • Only server-managed settings reach the cloud sessionbestätigt 22.11.2026
  • Claude Code then stores your settings, session history, and plugins there instead.bestätigt 22.11.2026
  • Before v2.1.211, Claude Code kept the file in the starting directory.bestätigt 22.11.2026
  • Its allow rules don’t wait for trust while the file stays untracked.bestätigt 22.11.2026
  • asks whether to exit and fix it or reset to the default configurationbestätigt 22.11.2026
  • Those keys never apply from the shared filebestätigt 22.11.2026
  • took effect from any filebestätigt 22.11.2026
  • is an ordered chain where position carries meaningbestätigt 22.11.2026
  • For a few keys whose values restrict a session, Claude Code honors a restrictive value from a scope that otherwise couldn’t override managed settings.bestätigt 22.11.2026
  • Something else is setting the same key, the file can’t set that value, or the file didn’t loadbestätigt 22.11.2026
  • At the start of an interactive session Claude Code shows a dialog that lets you fix the file with Claude’s help, exit, or continue without the broken settings.bestätigt 22.11.2026
  • Claude Code skips those values and keeps the rest of the file in effect.bestätigt 22.11.2026
  • Claude Code skips a broken user, project, or local file or its broken values and continues with the restbestätigt 22.11.2026
  • the change applies to the current session and is gone in the next onebestätigt 22.11.2026
  • a session with several repositories starts above the clonesbestätigt 22.11.2026
  • opens your claude.ai Code or Claude Code settings page instead of changing a valuebestätigt 22.11.2026
  • not for managed settings that arrive from MDM or the claude.ai consolebestätigt 22.11.2026
  • system prompt isn’t publishedbestätigt 22.11.2026
  • The schema can lag behind the newest CLI releasesbestätigt 22.11.2026
  • when the repository root is your home directorybestätigt 22.11.2026
  • unless an app that embeds Claude Code supplies its own model listbestätigt 22.11.2026
  • the locks are availableModels and deniedModelsbestätigt 22.11.2026
  • still don’t load in a cloud sessionbestätigt 22.11.2026
  • A self-hosted environment also reads the managed settings file in its runner image.bestätigt 22.11.2026
  • not permission rules, hooksbestätigt 22.11.2026
  • Both stay on your machine, and the local file isn’t in the clone.bestätigt 22.11.2026
  • Some of what you commit waits until each teammate trusts the folder, and a few keys never take effect from a repository filebestätigt 22.11.2026
  • After you move the session with /cd, Claude Code reads both project files from the new directory insteadbestätigt 22.11.2026
  • Unless a managed settings document can’t be parsedbestätigt 22.11.2026
  • in a cloud thread in a project, none of a repository’s .claude/settings.json permission rules, hooks, or env applybestätigt 22.11.2026
  • read in a session with one repository outside a project’s threads, because the file is part of the clone and the session starts inside it.bestätigt 22.11.2026
  • In a session with one repository outside a project’s threads, you can instead commit the key to that repository’s .claude/settings.json.bestätigt 22.11.2026
  • when the repository root or its .git or .claude entry isn’t owned by your userbestätigt 22.11.2026

11 Eine Wissensbasis aufbauen15 Einstellungen und Ebenen31 Der Harness

Alle Quellen

↑↓ auswählenEnter öffnenDie Suche läuft im Browser. Nichts wird übertragen.