Skip to main content

Core Settings

These keys control how Claude Code compacts the conversation, remembers things, cleans up old files, and runs shell commands. Most people change only a few of them, such as language or cleanupPeriodDays. The env and sandbox keys are objects that have their own pages elsewhere.

Every key here works today. Boolean keys such as autoMemoryEnabled and autoCompactEnabled switch a feature.

Keys​

Source: Settings Reference for rows marked

Documented: An official docs page names this item.
. For rows marked
Undocumented: Only the program shows this item. It can change without notice.
, Source: the program (its bundled settings schema). Where to Set It tells you which files may set the key. See Settings Files and Scopes.

KeyStatusTypeDefaultWhat It DoesWhere to Set It
$schema
Documented: An official docs page names this item.
string-Point your editor at the published JSON schema for autocomplete and checks. Use https://clawdipedia.cc/schemas/claude-code-settings.json, which is the $id of the schema.Settings files
attribution
Documented: An official docs page names this item.
boolean or objectStandard attributionCustomize the attribution Claude Code adds to commits and pull requests. false hides all attribution.Any settings file
autoCompactEnabled
Documented: An official docs page names this item.
boolean-Turn automatic compaction off or on.Any settings file
autoCompactWindow
Documented: An official docs page names this item.
number or "auto"-Set how full the context gets before Claude Code compacts. A number from 100000 to 1000000 tokens, or "auto" for the window tuned for the model.Any settings file
autoDreamEnabled
Undocumented: Only the program shows this item. It can change without notice.
boolean-Turn background memory consolidation (auto-dream) on or off. A value here overrides the server-side default.Settings files
autoMemoryDirectory
Documented: An official docs page names this item.
string~/.claude/projectsStore auto memory in a directory you choose. ~/ expands to your home directory. Claude Code ignores the key in the checked-in project file.Any settings file
autoMemoryEnabled
Documented: An official docs page names this item.
boolean-Turn auto memory off or on.Any settings file
autoUpdatesChannel
Documented: An official docs page names this item.
enum: latest, stable, rclatestFollow the stable release channel instead of latest.Any settings file
awaySummaryEnabled
Documented: An official docs page names this item.
boolean-Turn off the session recap shown when you come back to the terminal. The recap shows after 5 or more minutes away.Any settings file
bashEditDiffEnabled
Documented: An official docs page names this item.
booleanOn when the Bash tool handles file editsRecord the files that changed while a Bash command ran in every permission mode. Outside auto and bypassPermissions modes, only user or managed settings can turn it on.User or managed settings
bashOutputMaxChars
Documented: An official docs page names this item.
integer30000Set how much of a successful command's output Claude receives inline. Claude Code clamps it to 4000-128000. Longer output goes to a file. Claude gets a preview.Any settings file
claudeMd
Documented: An official docs page names this item.
Managed Only: Works only in managed (organization policy) settings.
string-Inject organization-wide CLAUDE.md instructions from managed settings. Only managed settings honor it.Managed settings only
claudeMdExcludes
Documented: An official docs page names this item.
array of string-Skip specific CLAUDE.md files when memory loads. Takes glob patterns or absolute paths. Managed files cannot be excluded.Any settings file
cleanupPeriodDays
Documented: An official docs page names this item.
integer30Choose how many days Claude Code keeps transcripts before deleting them. The minimum is 1. --no-session-persistence turns off transcript writes.Any settings file
defaultShell
Documented: An official docs page names this item.
enum: bash, powershellbashChoose whether Bash or PowerShell runs the shell commands you type with the ! prefix.Any settings file
desktopSessionCleanupPeriodDays
Documented: An official docs page names this item.
integer-Set an age limit in days for Claude Desktop and Cowork transcripts. 0 (the default) means no ceiling. Claude Code ignores it when org policy sets cleanupPeriodDays.User or managed settings
disableArtifact
Documented: An official docs page names this item.
Deprecated: The program or the official docs call this deprecated. Use enableArtifact
boolean-Deprecated. Use enableArtifact to turn the Artifact tool off. true still turns the tool off. Claude Code ignores false.Any settings file
enableArtifact
Documented: An official docs page names this item.
booleanOn once the feature is availableTurn the Artifact tool on or off. A false in any file turns it off. No file can turn it back on.Any settings file
env
Documented: An official docs page names this item.
object-Set environment variables for every session and its subprocesses.Any settings file
fileCheckpointingEnabled
Documented: An official docs page names this item.
boolean-Turn off or on the file snapshots that /rewind restores.Any settings file
fileSuggestion
Documented: An official docs page names this item.
object-Supply @ file autocomplete from your own command.Any settings file
idleCompaction
Documented: An official docs page names this item.
boolean-Stop Claude Code from compacting a long conversation while your terminal session is idle. Setting true does not turn idle compaction on.Any settings file
attributionProject
Undocumented: Only the program shows this item. It can change without notice.
string-The claude.ai Project this session names for your organization's usage reports: the Project UUID, or its ID that starts with claude_proj_. An empty string names none and stops lower-precedence files from naming one. Claude Code sends it only with a claude.ai login or a direct Anthropic API connection, outside cloud sessions, and when CLAUDE_CODE_ATTRIBUTION_HEADER is not 0. The CLAUDE_CODE_ATTRIBUTION_PROJECT variable wins. In managed settings it overrides personal files. Project settings count only once you trust the folder, so use the variable for CI. Source: the settings schemaAny settings file
attributionProjectPolicy
Undocumented: Only the program shows this item. It can change without notice.
Managed Only: Works only in managed (organization policy) settings.
object-Your organization's default for attributionProject. Its default key is the Project used when neither CLAUDE_CODE_ATTRIBUTION_PROJECT nor attributionProject names one. Source: the settings schemaManaged settings only
includeCoAuthoredBy
Documented: An official docs page names this item.
Deprecated: The program or the official docs call this deprecated. Use attribution
booleantrueDeprecated, so use attribution to hide or change commit and PR attribution.Any settings file
includeGitInstructions
Documented: An official docs page names this item.
booleantrueRemove the built-in commit and PR instructions from Claude's context.Any settings file
language
Documented: An official docs page names this item.
string-Have Claude respond in a language other than English.Any settings file
minimumVersion
Documented: An official docs page names this item.
string-Keep auto-updates from installing anything below a version.Any settings file
plansDirectory
Documented: An official docs page names this item.
string~/.claude/plansChoose where plan mode writes plan files. The path is relative to the project root.Any settings file
precomputeCompactionEnabled
Undocumented: Only the program shows this item. It can change without notice.
boolean-Build the compaction summary in the background before Claude Code needs it. It applies only when auto-compact is on.Settings files
respectGitignore
Documented: An official docs page names this item.
booleantrueKeep gitignored files out of the @ file picker.Any settings file
respondToBashCommands
Documented: An official docs page names this item.
booleantrueStop Claude from responding after a ! shell command runs. The command output still joins the context.Any settings file
sandbox
Documented: An official docs page names this item.
object-Isolate Bash commands from your filesystem and network on macOS, Linux, and WSL2.Any settings file
skipWebFetchPreflight
Documented: An official docs page names this item.
boolean-Skip the WebFetch hostname check when Anthropic is unreachable.Any settings file
todoFeatureEnabled
Undocumented: Only the program shows this item. It can change without notice.
boolean-Turn the todo and task tracking panel on or off.Settings files
worktree
Documented: An official docs page names this item.
object-Configure how Claude Code creates git worktrees. Covers --worktree, EnterWorktree, and agent isolation.Any settings file

Example​

Keep Transcripts for a Week​

This file deletes transcripts after 7 days. It keeps auto memory on. It lets Claude see more shell output inline. It asks for answers in German.

~/.claude/settings.json
{
"$schema": "https://clawdipedia.cc/schemas/claude-code-settings.json",
"cleanupPeriodDays": 7,
"autoMemoryEnabled": true,
"bashOutputMaxChars": 50000,
"language": "german"
}