Omniscio

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.

ScopeFileWho it reachesExample here
User~/.claude/settings.jsonYou, in every project on this machineSolo power user · Bedrock or Vertex
Shared project.claude/settings.jsonEveryone in the folder, once committedTeam project · Monorepo
Project local.claude/settings.local.jsonYou, 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 listNo example here; it takes the same keys as the project file
Managedmanaged-settings.json and other managed sourcesEveryone your organization deploys it toEnterprise 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

SetupWhat it is for
A team projectA committed .claude/settings.json: npm scripts approved, git push confirmed, .env unreadable, commands sandboxed, a plugin marketplace registered
A solo power userA ~/.claude/settings.json: starting model and effort, a status line, auto mode, four permission rules of your own, a shorter transcript retention
An enterprise policyA managed-settings.json: login pinned to one organization, models restricted, managed permission and MCP rules made the only ones, sandbox mandatory
Bedrock or VertexYour 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 monorepoOne 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

  1. 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.
  2. Save the file at the path its page names. Create the .claude folder if it is not there. Installing Claude Code creates no settings file at all, so starting from an empty folder is normal.
  3. 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.
  4. Start a session and run /status. The Setting sources line lists the files that loaded, so User settings or Project settings appearing there is your proof.
  5. If you edited a key and nothing changed, run claude doctor from your terminal or /doctor in 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.defaultMode set to auto or bypassPermissions in 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 set default (or its manual alias), acceptEdits, plan or dontAsk.
  • A committed project file’s allow rules, additionalDirectories and extraKnownMarketplaces entries apply only after each person trusts the folder. deny and ask rules 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 managed or Managed, 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

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.