OmniscioGuidesClaude Code settings.json examples
Claude Code settings.json examples: five setups to copy
A settings template is only useful if you know which of the four scopes it belongs in. This page is the index: what each file reaches, what outranks it, and a complete copyable example for the five setups people actually ask about, with every key explained beside it.
Checked against Anthropic’s Claude Code 2.1.332. By the Omniscio team. Updated .
Pick the file by where it goes
Claude Code reads four settings files. Which one you write decides who a setting reaches, and it is the first decision to make, before a single key.
| Scope | File | Who it reaches | Example here |
|---|---|---|---|
| User | ~/.claude/settings.json | You, in every project on this machine | Solo power user · Bedrock or Vertex |
| Shared project | .claude/settings.json | Everyone in the folder, once committed | Team project · Monorepo |
| Project local | .claude/settings.local.json | You, in this one project. It stays out of commits only when Claude Code creates it; a copy you write yourself is not excluded, so add it to your ignore list | No example here; it takes the same keys as the project file |
| Managed | managed-settings.json and other managed sources | Everyone your organization deploys it to | Enterprise policy |
Strongest first, the order is managed settings, then JSON passed with --settings, then the project local file, then the shared project file, then the user file. A key set at a higher level overrides the same key lower down; a list key such as permissions.allow merges instead of being replaced. The settings.json location and precedence guide has the full collision story, including the keys where a restrictive value from a lower scope wins over a managed one.
The five setups
| Setup | What it is for |
|---|---|
| A team project | A committed .claude/settings.json: npm scripts approved, git push confirmed, .env unreadable, commands sandboxed, a plugin marketplace registered |
| A solo power user | A ~/.claude/settings.json: starting model and effort, a status line, auto mode, four permission rules of your own, a shorter transcript retention |
| An enterprise policy | A managed-settings.json: login pinned to one organization, models restricted, managed permission and MCP rules made the only ones, sandbox mandatory |
| Bedrock or Vertex | Your API calls go to Amazon Bedrock or Google Cloud’s Vertex AI: an env block that picks the provider and sets the region, the Vertex project for one and the Bedrock model for the other, plus a refresh command that renews an expired credential |
| A monorepo | One repository holding several packages: a file in each package folder that lets it reach its siblings, and a file at the repository root that covers sessions started in a worktree |
Each example page carries the whole file, a row per key explaining what it does, the commands that prove it loaded, and the mistake that particular file invites.
How to apply any of them
- Start the file with a
"$schema"line if it is not already there:https://json.schemastore.org/claude-code-settings.json. It gives your editor autocomplete and inline validation. The schema can lag a release, so a warning on a brand-new key does not make your file invalid. - Save the file at the path its page names. Create the
.claudefolder if it is not there. Installing Claude Code creates no settings file at all, so starting from an empty folder is normal. - Keep the JSON strict: no
//comments and no trailing commas. Both are syntax errors, and Claude Code reports the file as a Settings Error at the next start rather than loading half of it. - Start a session and run
/status. TheSetting sourcesline lists the files that loaded, soUser settingsorProject settingsappearing there is your proof. - If you edited a key and nothing changed, run
claude doctorfrom your terminal or/doctorin the session. Both list entries Claude Code rejected, and an interactive session also warns you at startup.
Most edits reach a running session on their own, because Claude Code watches its settings files and reloads them, permissions included. A few keys are read once at startup and need a new session; you will meet model and the effort settings first.
The common mistake: copying a file into the wrong scope
The same JSON behaves differently in different files, and three cases surprise people most.
permissions.defaultModeset toautoorbypassPermissionsin a project file is ignored. Those two values take effect only from the user file, managed settings or--settings; a project or local file can setdefault(or itsmanualalias),acceptEdits,planordontAsk.- A committed project file’s
allowrules,additionalDirectoriesandextraKnownMarketplacesentries apply only after each person trusts the folder.denyandaskrules apply in every session, which is why a fresh clone can look half-broken. - A key can carry a scope a repository file cannot set, such as
User or managedorManaged, apart from a few that a repository file can still switch off. Check the key’s entry in Anthropic’s settings index before you commit it to a team file.
The permissions builder writes the allow, ask and deny blocks these files use and names the shapes Claude Code silently skips.
Common questions
Which settings.json file should I copy first?
Copy the file for the job you have now. If several people work in one repository, start with the team project file at .claude/settings.json. If you work alone, start with the solo file at ~/.claude/settings.json. An organization policy is a managed-settings.json and is not something a developer copies, and the Bedrock and monorepo files are variations on the first two.
Can I combine two of these files?
Yes, and that is usually right. A user file and a project file are different scopes and both load: your user file sets your model and status line, and the committed project file sets the rules everyone shares. Where the two set the same key, the project file wins, and a list key such as permissions.allow merges instead of replacing.
Does every key in these examples work in every file?
No. Anthropic’s settings index gives each key a scope, and a key marked User, Managed or Global config does not apply from a repository file, apart from a few that a repository file can still switch off. permissions.defaultMode is the one to watch among these examples: auto and bypassPermissions are ignored in a project file, so the solo file is where auto mode belongs.
Where to go next
- settings.json location and precedence: all four paths, including Windows, and every scope a key can carry.
- The permissions builder: write an
allow,askordenyrule that Claude Code will not skip. - Team settings: what to commit, what never to, and how a teammate picks up a change.
- Managed settings: the file that outranks all of these, and how to prove it arrived.
Run the sessions side by side, settings included
Omniscio starts Claude Code sessions side by side, each with its own working directory and its own settings sources, so you can see at a glance which sessions picked up your file and which did not. It is free to download for Windows, macOS or Linux, and the features page covers the rest.