The short answer: your personal settings are in ~/.claude/settings.json (on Windows, %USERPROFILE%\.claude\settings.json) and each project’s are in .claude/settings.json, inside the project folder. But Claude Code reads configuration from more places, and knowing what each one holds helps you understand why your agent behaves the way it does.
The files you can edit
Your home folder holds two. ~/.claude/settings.json keeps your settings for every project. ~/.claude.json keeps the rest: your account details, MCP servers, the state of each project (for example, which ones you have said you trust) and the options you change with /config.
Each project can hold three more. .claude/settings.json has the settings shared with the team; it goes into git with the code, so anyone who clones the repository gets it. .claude/settings.local.json has yours for that project, and Claude Code sets git to ignore it when it creates the file. .mcp.json defines the project’s MCP servers.
The ones your company sets
You don’t create or edit managed settings, and no user or project setting overrides them. If they exist, they are at these paths:
- macOS:
/Library/Application Support/ClaudeCode/managed-settings.json - Linux and WSL:
/etc/claude-code/managed-settings.json - Windows:
C:\Program Files\ClaudeCode\managed-settings.json(Claude Code no longer reads the old path,C:\ProgramData\ClaudeCode\managed-settings.json)
They can also arrive through the system’s device management: on macOS, through the com.anthropic.claudecode domain; on Windows, through the registry, at HKLM\SOFTWARE\Policies\ClaudeCode or HKCU\SOFTWARE\Policies\ClaudeCode. Or from the Claude admin console.
Which one wins when they disagree
The order, from strongest to weakest, is: managed settings, what you pass with --settings at startup, yours for the project, the project’s, and finally your user settings. Your general settings carry the least weight. That is why a project you clone can change how Claude Code behaves even though you haven’t touched anything.
What to check today
settings.json and .claude.json can hold unencrypted keys, so it’s worth opening them and seeing what is inside. If a project brings its own .claude/settings.json, read it before you trust it. The Observatory’s Claude Code page lists what each file holds and what Claude Code does out of the box.