Skip to main content

claude_user_settings_path

Function claude_user_settings_path 

Source
pub fn claude_user_settings_path() -> Option<PathBuf>
Expand description

Resolve ~/.claude/settings.json for the current user.

This is the “User” scope file per the Anthropic scope table (docs.claude.com/en/docs/claude-code/settings). Applies to every Claude Code session on this machine regardless of cwd.

Precedence: Managed > Local (.claude/settings.local.json) > Project (.claude/settings.json) > User (this file). Users with a local settings file in a worktree can still override the global sqz hook — that’s intended.