Answer: Managed settings take precedence over all other levels when the same key is set in multiple places. The full order, highest first, is managed settings, command line, project local, shared project, and user settings. Status: Confirmed Entry: tool/claude-code/settings/settings-precedence Revision: 2 Digest: sha256:fa855769d4c4fda3 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:51Z Last changed: 2026-11-20T12:25:28Z (Override rule: — → A key set at a higher level overrides the same key set lower down.) Last verified: 2026-11-20T12:25:28Z Next check: 2026-11-21T12:25:28Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Highest precedence level | managed settings | [1] | 2026-11-20 Second level | command line | [1] | 2026-11-20 Third level | project local | [1] | 2026-11-20 Fourth level | shared project | [1] | 2026-11-20 Lowest level | user | [1] | 2026-11-20 Override rule | A key set at a higher level overrides the same key set lower down. | [1] | 2026-11-20 Sources: [1] Anthropic. "Settings files and precedence". https://code.claude.com/docs/en/settings.md Role: primary. Accessed: 2026-11-20T12:25:28Z Quote: "Settings precedence, highest first: managed settings, command line, project local, shared project, user." (Supports: Highest precedence level, Second level, Third level, Fourth level, Lowest level) Quote: "A key set at a higher level overrides the same key set lower down." (Supports: Override rule) Published: 2026-11-20T02:52:44Z Snapshot SHA-256: d94a7f2f3ef96fd05e0246aacc0697240e1d418c366536d6eabfb3761c9713d7 (captured 2026-11-20T12:25:28Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:25:28Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:25:28Z Last attempt: 2026-11-20T12:25:28Z Notes and limitations: Extracted automatically from a single official source (section "Settings precedence"). Related: https://latestn.com/tool/claude-code/settings/settings-precedence-managed-sources How does Claude Code decide which settings win when server-managed and endpoint-managed settings conflict? https://latestn.com/tool/claude-code/settings/spell-check-toggle How do I turn spell checking on or off in Claude Code? https://latestn.com/tool/claude-code/settings/stop-loading-plugin How do I stop Claude Code from loading a plugin? https://latestn.com/tool/claude-code/settings/setting-sources-precedence How do I control which settings sources the Claude Code Agent SDK loads? https://latestn.com/tool/claude-code/settings/settings-file-locations Where do I save Claude Code settings for myself, my team, or my organization? https://latestn.com/tool/claude-code/settings/settings-json-comments Can I put comments in a Claude Code settings.json file? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T12:25:28Z | changed | Override rule: — → A key set at a higher level overrides the same key set lower down. | [1] 2026-11-20T12:25:28Z | changed | Lowest level: — → user | [1] 2026-11-20T12:25:28Z | changed | Fourth level: — → shared project | [1] 2026-11-20T12:25:28Z | changed | Third level: — → project local | [1] 2026-11-20T12:25:28Z | changed | Second level: — → command line | [1] 2026-11-20T12:25:28Z | changed | User settings file: ~/.claude/settings.json → — | [1] 2026-11-20T12:25:28Z | changed | Shared project settings file: .claude/settings.json → — | [1] 2026-11-20T12:25:28Z | changed | Project local settings file: .claude/settings.local.json → — | [1] 2026-11-20T12:25:28Z | changed | Command line settings file: --settings → — | [1] 2026-11-20T12:25:28Z | changed | Precedence order: managed settings, command line, project local, shared project, user → — | [1] 2026-11-13T03:05:51Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/settings/settings-precedence/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/settings/settings-precedence POST: https://latestn.com/dispute/tool/claude-code/settings/settings-precedence with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/settings/settings-precedence?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). Which Claude Code settings file takes precedence when the same key is set in multiple places? Revision 2, last verified 2026-11-20T12:25:28Z. https://latestn.com/tool/claude-code/settings/settings-precedence (accessed 2026-11-21T09:53:21Z). @misc{LatestN_tool_claude_code_settings_settings_precedence_r2, title = {Which Claude Code settings file takes precedence when the same key is set in multiple places?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/settings/settings-precedence}}, note = {Revision 2; digest sha256:fa855769d4c4fda3; last verified 2026-11-20T12:25:28Z; accessed 2026-11-21T09:53:21Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/settings/settings-precedence