Omniscio

OmniscioSettings examplesA solo power user

Claude Code settings.json example for a solo power user

The user file is where your opinions live: the model you start on, how hard it thinks, what the prompt looks like, and which commands never need to ask. This is a complete file. Below: every key explained, the one permission mode that only works from this scope, and the three mistakes that make the whole file look ignored.

Checked against Anthropic’s Claude Code 2.1.332. By the Omniscio team. Updated .

The file

Save this as ~/.claude/settings.json, which is %USERPROFILE%\.claude\settings.json on Windows. Installing Claude Code creates no settings file. The file appears the first time you save something from /config, and writing it yourself at that path works exactly the same. If ~/.claude does not exist yet, create the folder first. It is strict JSON: no comments, no trailing commas.

{
  "$schema": "https://json.schemastore.org/claude-code-settings.json",
  "model": "claude-sonnet-5",
  "modelSettings": {
    "claude-sonnet-5": { "effortLevel": "xhigh" }
  },
  "permissions": {
    "defaultMode": "auto",
    "allow": [
      "Bash(git diff *)",
      "Read(~/.zshrc)"
    ],
    "deny": [
      "Read(./.env)",
      "Read(./.env.*)"
    ]
  },
  "statusLine": {
    "type": "command",
    "command": "jq -r '\"[\\(.model.display_name)] \\(.context_window.used_percentage // 0)% context\"'",
    "padding": 2
  },
  "spinnerTipsEnabled": false,
  "autoUpdatesChannel": "stable",
  "cleanupPeriodDays": 20
}

The status line needs jq on your PATH, because it is a shell command that reads JSON from Claude Code on stdin. On Windows without jq, delete the statusLine block rather than keep a command that fails on every redraw.

Two more edits before you paste, if they apply to you. modelSettings is keyed by model name, so a change to model needs the same name changed in both places, or the effort level silently stops applying. And Read(~/.zshrc) is dead weight on Windows: point it at the profile you actually use.

Who this file is for

One developer, many repositories, and no team to agree with. You want every new session to start the same way without typing flags, and you want the prompts you answered yesterday to stay answered. A user file reaches every project on the machine and touches nobody else’s.

If the same rules should reach teammates, commit them instead: that is the team project file. If your organization deploys a managed file, it outranks this one, with one exception: an explicit --model flag on the command line. The enterprise file is what that looks like.

What every key does

KeyWhat it does hereWhat overrides it
$schemaGives your editor autocomplete and inline validation for Claude Code settings. The schema can lag the newest CLI release.Nothing; it is editor metadata
modelStarts every new session on Sonnet 5. It is a starting default, not a lockA model in a project, local or managed file, or an organization-wide default. --model and ANTHROPIC_MODEL beat this key for one session, even over a managed value
modelSettingsGives Sonnet 5 the xhigh effort level, which reasons more deeply and spends more tokens. It maps one model name to its own settingsCLAUDE_CODE_EFFORT_LEVEL first, then a level picked in the session with /effort or the /model picker, then --effort. A level for the same model in a higher-precedence file also wins
permissions.defaultModeStarts sessions in auto: a background classifier checks each shell command and network request against what you asked for before it runsA defaultMode in a project or local file can win, but only with a mode other than auto or bypassPermissions, which are ignored there; --permission-mode for one session; and a managed disableAutoMode, which starts every session in default
permissions.allowRuns git diff and reads your .zshrc without asking, in every projectNothing replaces the list: a project’s allow merges with yours. A deny or ask rule from any file is evaluated first and wins, and a managed allowManagedPermissionRulesOnly drops every rule from your own files
permissions.denyBlocks the file tools from reading .env, and blocks a command whose text names a .env file; a command that reads the directory without naming one, such as grep -r, still runs. A relative path like this anchors at the session’s working directory, so it means the project you are inA managed allowManagedPermissionRulesOnly, which drops every permission rule from your own files; otherwise nothing, because deny is evaluated before ask and allow
statusLineRuns a command and shows its output under the prompt: here the model name and how full the context isA statusLine in a project, local or managed file, which sits above your user file. allowManagedHooksOnly narrows it to a managed status line, and a managed disableAllHooks turns it off
spinnerTipsEnabledHides the tips that rotate under the spinnerA project or managed file that sets it to true, because those sit above your user file
autoUpdatesChannelTakes updates from the stable channel instead of latestA managed value, which can pin the channel across an organization
cleanupPeriodDaysDeletes session transcripts and other application data older than 20 days (the default is 30), except Claude Desktop and Cowork session transcripts, which are kept past that period by defaultA managed value, which wins over every other file

Which file this is, and what outranks it

This is the user file, the last one consulted in the precedence order. Anything a project commits, anything in that project’s .claude/settings.local.json, --settings, and anything your organization deploys all sit above it.

Two levels are worth knowing precisely. auto and bypassPermissions are ignored in project and local files, so this user file is the only ordinary file where defaultMode can be auto; a project can set acceptEdits but not auto. And a list key merges rather than replaces, so your permissions.allow rules combine with a project’s instead of being dropped.

The full order, strongest first, is managed settings, then --settings, then .claude/settings.local.json, then .claude/settings.json, then this file. If a key of yours does nothing in one repository and works in the rest, that is the file to look at, not this one.

How to confirm it took effect

  1. Run /status. The Setting sources line lists User settings when this file loaded, and the Status tab also reports whether managed settings are in effect.
  2. Run /config to see and change the personal options Claude Code stores in this file, such as the theme and editor mode. The Config tab is a menu of options, not a view of your file; the file is the source, the menu is one way to write it.
  3. Run /model to see the model the session is on. When project or managed settings set a model, the startup header names the file that set it.
  4. Run claude doctor from your terminal, or /doctor inside a session, to list entries Claude Code rejected. Otherwise the next start is your only signal: a Settings Warning for entries it skipped, or a Settings Error dialog for invalid JSON or a value the schema rejects.

Edits mostly reach a running session on their own, because Claude Code watches its settings files. The exceptions are the keys read once at startup, and this file carries two of them: model and the effort settings. Change those with /model and /effort in the session you are in, or start a new one.

The common mistake: expecting the user file to win

A user file is the easiest one to write and the easiest one to overestimate, because it is the lowest-precedence file there is. The three failures below cover the usual reasons a settings file looks ignored.

  • A project’s committed .claude/settings.json sets the same key, and the project wins. spinnerTipsEnabled set to true there beats your false here. Put your value in that project’s .claude/settings.local.json instead and your teammates stay unaffected.
  • The key cannot be set by a user file at all. Anthropic’s settings index marks some keys Managed or Global config, and a value you write here is simply not read.
  • You edited a startup-only key and expected the running session to change. model and the effort keys are read at startup; the confirm section above has the two commands that change them mid-session.

The four settings files and their precedence has the whole collision story, and the permissions builder writes a rule block you can paste into permissions.allow or permissions.deny without guessing the syntax.

Common questions

Does a change to ~/.claude/settings.json apply to a session that is already running?

Most of it does. Claude Code watches its settings files and reloads them, including permissions, hooks and credential helpers. A few keys are read once at session start and do not reach a running session: model is one of them, so use /model to switch mid-session, and effortLevel and modelSettings are changed with /effort or from the /model picker.

What does auto mode do, and can I still get a prompt?

In auto mode a background classifier checks each shell command and network request against your request before it runs, so routine work stops asking. Critical-path removals still prompt in an interactive terminal, within a two-minute limit; away from the terminal, in VS Code, the desktop app and a -p run, auto mode denies them. An organization can remove auto mode with the disableAutoMode key in its managed settings, and then a session that would have started in auto mode starts in default.

Does the model setting override the model I pick with /model?

No. The model key sets the starting model for new sessions. /model changes the session you are in and saves the choice as your default for new sessions. On the command line --model beats both the key and ANTHROPIC_MODEL for that one session.

Where to go next

Run the sessions side by side and watch which settings win

Omniscio starts Claude Code sessions side by side, so one user file, one project file and one managed policy can be seen working, or failing, in the same window. The features page covers what it adds, and you can download it for Windows, macOS or Linux.