Learning resourcesReviewed · Anthropic

Claude Code: Settings files and precedence

This Claude Code configuration guide is for developers and team administrators, but settings behave differently across scopes, versions and cloud sessions. It explains where JSON settings belong, how competing values combine, and how to investigate changes that do not apply.

Researched 12 Nov 2026

In short.

This Claude Code settings guide helps developers and administrators choose where to save configuration, but file priority alone does not explain every setting. It documents personal, shared project, project local and managed settings, alongside temporary overrides, validation and troubleshooting. Its practical value is explaining configuration conflicts; individual key definitions and full permission semantics require linked references. No commands or configurations were executed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete supplied selected-page.txt resource at [https://code.claude.com/docs/en/settings.md], including notes and notices present in that text. Linked pages, external schema contents, other folders and software packages are excluded. No explicit licence notice is present in the supplied text. All behavior descriptions are documentation-based; nothing was executed.

The overview

Identity

Settings files and precedence is a Claude Code documentation page at [https://code.claude.com/docs/en/settings.md]. It explains configuration files and their interaction, rather than providing an installable tool. Its main coverage is Claude Code running locally through the terminal, VS Code, JetBrains and the desktop app, with a separate account of cloud-session differences.

Assessment

The guide is useful when a setting works in one project but not another, a team needs shared defaults, or an administrator's policy appears to override personal choices. Concrete paths, conflict examples and diagnostic commands make it actionable. It does not establish that a particular configuration is secure or effective in practice, and it is not a complete installation guide or catalogue of every setting.

Users

Individual developers can use it to separate personal preferences from repository settings. Team maintainers can learn what to commit and which settings require each teammate's workspace trust. Organization administrators get an introduction to managed policy sources and enforcement boundaries, although detailed deployment procedures are linked elsewhere. Beginners receive concrete examples, but applying them requires editing JSON or using Claude Code commands.

Capabilities

The page explains where to put model defaults, permissions, hooks, plugin settings and environment variables. It covers changes through /config, direct file editing and temporary --settings overrides, plus automatic reloading and error handling.

It also distinguishes ~/.claude.json, which Claude Code maintains for account details, MCP configuration and other state, from the settings files users normally edit. Troubleshooting covers ignored values, settings that do not persist, managed-policy delays and committed settings that do not reach teammates.

Using it

Requirements

Applying the instructions requires access to Claude Code and permission to edit the relevant personal or project files. Settings use strict JSON: comments and trailing commas are invalid. Organization-managed settings are deployed by administrators rather than edited by individual developers.

Requirements vary by feature. For example, reading project settings after /cd requires v2.1.246 or later, and the documented blockWritesOutsideWorkingDirectories exception requires v2.1.314 or later. The page does not specify one minimum version for every instruction or provide complete installation and account requirements.

Mechanism

For ordinary settings values, the documented priority is managed settings, --settings, project local settings, shared project settings, then user settings. A higher source overrides a lower source when both set the same key. Dedicated flags and shell environment variables follow rules defined for each key rather than one universal position in this stack.

Lists generally merge across files. Exceptions include fallbackModel, modelPicker, availableModels and modelSettings, each with distinct resolution rules. Some restrictive values can also prevail over managed settings. A managed model is described as a starting default; availableModels and deniedModels provide model restrictions. Permission rules need separate attention: a local allow rule does not outrank a project or managed ask rule.

Setup

Choose ~/.claude/settings.json for personal settings across projects, .claude/settings.json for shared project settings, or .claude/settings.local.json for personal changes within one project. Commit the shared file to distribute it. If you create the local file manually, add it to .gitignore; Claude Code adds an exclusion when it first writes the file itself.

After editing valid JSON, use /status to check which sources loaded and claude doctor to inspect rejected entries. The optional schema at [https://json.schemastore.org/claude-code-settings.json] supports editor validation, although the guide warns that it can lag behind CLI releases. /status identifies loaded sources, not the source of every effective key.

Example

The guide illustrates precedence with spinnerTipsEnabled. If user settings set it to false but shared project settings set it to true, tips appear in that project. Adding {"spinnerTipsEnabled": false} to the project's local settings would override the shared value for that developer. A managed true value would override all three files and --settings. This is a documented scenario, not an executed test.

Assessment & evidence

Limitations

Most file edits reload during a running session, but model and effort settings need their session commands to change immediately. Removing blockReadsOutsideWorkingDirectories requires a restart to lift the existing block. The /config command is a terminal interface feature; the VS Code chat panel and desktop app do not open that menu.

Local settings do not transfer unchanged to cloud sessions. User and project local files are not read there. A single-repository session outside project threads can read committed shared settings, while project threads do not apply repository permission rules, hooks or env. Anthropic-hosted sessions with multiple repositories read only two plugin-related keys from shared files, and the page says the declared plugins and marketplaces still do not load. Managed-policy coverage also depends on delivery source and environment.

Reasoning

The guide's value comes from connecting a setting's location to who receives it and what can override it. That helps explain why committing a file, saving a personal preference or granting a standing approval may produce different outcomes. Its treatment of merging, trust and restrictive exceptions also shows why finding the highest file is insufficient for some problems. These conclusions follow from the documentation; actual enforcement was not assessed.

Alternatives

For individual keys and defaults, this page points to All settings [https://code.claude.com/docs/en/settings-reference.md]. For complete configurations, it points to Example settings files [https://code.claude.com/docs/en/settings-example.md]. Detailed permission syntax is directed to Configure permissions [https://code.claude.com/docs/en/permissions.md]. These are complementary resources identified by the selected page; their contents and competing products were not assessed.

Evidence

The evidence is the supplied complete text of Settings files and precedence at [https://code.claude.com/docs/en/settings.md]. It supports descriptions of documented behavior, examples and stated exceptions. Linked pages, the external JSON schema and software implementation were not inspected. No commands, file edits, permission checks or cloud sessions were executed, so runtime behavior remains unverified.

Access & freshness

Costs

The page gives no prices for reading the documentation, accessing Claude Code, using models or deploying managed settings. Those costs are unknown from this evidence. It says the first request after switching models rereads the conversation without the previous model's prompt cache, but provides no monetary estimate or measured usage impact.

Rights

The supplied page contains no explicit licence or redistribution terms for its documentation and examples. Permission to copy, modify or redistribute that material is therefore unknown. The page also does not establish licence terms for Claude Code itself.

Freshness

The supplied copy was captured on 12 November 2026. Its publication and last-update dates are not stated. It includes version-dependent behavior, such as local-file placement before v2.1.211 and bypassPermissions scope restrictions introduced in v2.1.257. The latest available release and compatibility with any particular installation are unknown.

Actions

Identify whether the intended change is personal, shared with teammates or organization-wide, then inspect /status and choose the corresponding scope. For a personal trial, use project local settings or --settings, keeping a manually created local file out of Git. Check the individual key's permitted scopes, override rules and version requirements before relying on it. After editing, inspect loaded sources and rejected entries, and restart when the setting requires it.

Evidence for this report

selected-page.txtselected · checked 2026-11-12