Config Files
~/.claude/settings.json
User settings
.claude/settings.json
Project (shared)
.claude/settings.local.json
Local only
~/.claude.json
OAuth, MCP, state
.mcp.json
Project MCP servers
Key Settings
modelOverrides
Map model picker → custom IDs
worktree.sparsePaths
Sparse checkout dirs
skillOverrides
Control skill visibility: off/user-invocable-only/name-only
disableAllHooks
Disable all hooks via settings.json / managed settings
fallbackModel
Up to 3 fallback models tried in order when primary is overloaded
deny: tool-name glob
* denies all; Tool(param:value) matches; Write/Glob/NotebookEdit→Edit/Read; dir/** cwd-only in hooks
disableBundledSkills
Hide bundled skills, workflows, and built-in slash commands from model
sandbox.credentials
Block credentials; mask, extract, JWT maskClaims, AWS SigV4; needs tlsTerminate
sandbox.network.strictAllowlist
Deny non-allowlisted hosts for sandboxed commands without prompting
disableAutoMode
Disable auto mode in settings.json
"owner/*" marketplaces
Wildcards & bare URLs in strict/blocked; allowed/additional aliases; GitLab repos
Concise output style
Built-in style: leads with results, skips preamble; select in /config Output style
keybindingFlavor
readline = Bash word keys (Ctrl+W, Alt+F/D, Ctrl/Option+→); classic (default)
modelPicker
Curate /model picker with ordered, labeled models; append or replace built-in lineup NEW
promptCacheTtl / subagentPromptCacheTtl
1-hour prompt cache on main conv; subagents at 5 min (API-key/cloud) NEW
modelPricing
Org contracted per-model rates + discount for /cost, status line, telemetry NEW
feedbackDrafts
SendFeedback tool drafts feedback for /feedback review; false to disable NEW
Key Env Vars
ANTHROPIC_API_KEY
API key
ANTHROPIC_MODEL
Forces model; /model picks don't persist; org restrictions can override
ANTHROPIC_DEFAULT_MODEL
Set initial model for new sessions; /model picks persist across restarts
CLAUDE_CODE_EFFORT_LEVEL
low/med/high
MAX_THINKING_TOKENS
0=off; disables thinking on models that think by default
CLAUDE_EFFORT
Current effort level in hooks and Bash tool
CLAUDE_PROJECT_DIR
Project dir passed to MCP stdio servers and hooks env
CLAUDE_CODE_WORKFLOWS
Enable Workflow tool for multi-agent orchestration
CLAUDE_CODE_SUBAGENT_MODEL
Set model for subagents and agent-team teammates
CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS
Cap on concurrently-running subagents (default 20)
CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH
Nested subagent spawning; default depth 3; set 1 to disable
CLAUDE_CODE_DISABLE_1M_CONTEXT
Hold 1M-window models to 200K via auto-compaction
Hooks
PreToolUse
Before tool executes
PostToolUse
After tool executes (duration_ms; can replace output)
Notification
When Claude sends notification; agent_needs_input / agent_completed from bg agents
Stop
When Claude finishes response (background_tasks, session_crons)
SubagentStop
When subagent finishes (background_tasks, session_crons)
mcp_tool type
Invoke MCP tool directly from hook
args: string[]
Hook exec form — spawn directly without shell
continueOnBlock
PostToolUse: feed rejection reason back, continue turn
hookSpecificOutput.additionalContext
Stop/SubagentStop: give Claude feedback, continue turn
SessionStart
Run on session start/resume; source="fork" for forks; set title, reload skills
ConfigChange
Fire when settings files change (hot-reload)
DirectoryAdded
Fires after /add-dir or SDK register_repo_root registers new working dir