brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: .claude/settings.local.json overrides the team file just for you

Claude
~/tips/tip-claude-settings-local-override

"model": "opus"

Overrides a shared Claude Code project setting for you only, without touching git.

The team commits a setting you disagree with. You do not have to start a fight in the pull request.

Claude Code reads project settings from .claude/settings.json, which you commit, and from .claude/settings.local.json, which is yours. The local one wins.

{
  "model": "opus"
}

Put that in the local file and only your sessions change, even if the shared file says something else. The full order, highest first, is managed, command line, project local, shared project, then user. Lists such as permissions.allow merge instead of replacing each other.

Claude Code also writes to this file. When you answer a prompt with "Yes, and don't ask again", the rule lands here, and Claude Code adds the file to your global git excludes the first time. If you create the file by hand, add it to .gitignore yourself.

This matters most on shared repositories where a setting is a matter of taste, such as the default model or a verbose option. The shared file holds what the team agreed on, and the local file holds what you prefer. Nothing you try out can end up in a commit by accident.

Settings files are strict JSON: a comment or a trailing comma is a syntax error. Run /status after saving to check that the file loaded.

Further reading: Settings files and precedence – Claude Code docs, On this site: .mcp.json can read ${VAR} so the team file holds no secrets, On this site: a skill can run shell commands before Claude reads it

More Claude tips /recap /focus /skill-doctor /autocompact 500k claude purge ~/work/my-repo --dry-run All Claude tips (83) All topics

Link