|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | + "$id": "https://json.schemastore.org/claude-code-settings.json", |
| 4 | + "$defs": { |
| 5 | + "rule": { |
| 6 | + "type": "string", |
| 7 | + "description": "Tool permission rule (e.g., 'Bash(ls:*)', 'Read(~/.zshrc)', 'WebFetch(domain:github.com)')", |
| 8 | + "pattern": "^(Agent|Bash|Edit|Glob|Grep|LS|MultiEdit|NotebookEdit|NotebookRead|Read|TodoRead|TodoWrite|WebFetch|WebSearch|Write)\\(?|^mcp__" |
| 9 | + } |
| 10 | + }, |
| 11 | + "description": "Configuration file for Claude Code CLI settings", |
| 12 | + "allowTrailingCommas": true, |
| 13 | + "additionalProperties": true, |
| 14 | + "type": "object", |
| 15 | + "properties": { |
| 16 | + "$schema": { |
| 17 | + "type": "string", |
| 18 | + "description": "The schema for the settings.json file" |
| 19 | + }, |
| 20 | + "apiKeyHelper": { |
| 21 | + "type": "string", |
| 22 | + "description": "Custom script path to generate an auth value" |
| 23 | + }, |
| 24 | + "autoUpdaterStatus": { |
| 25 | + "type": "string", |
| 26 | + "description": "Enable or disable the auto-updater", |
| 27 | + "enum": ["enabled", "disabled"], |
| 28 | + "default": "enabled" |
| 29 | + }, |
| 30 | + "cleanupPeriodDays": { |
| 31 | + "type": "number", |
| 32 | + "description": "How long to locally retain chat transcripts (in days)", |
| 33 | + "default": 30, |
| 34 | + "minimum": 0 |
| 35 | + }, |
| 36 | + "env": { |
| 37 | + "type": "object", |
| 38 | + "description": "Environment variables applied to every session", |
| 39 | + "additionalProperties": false, |
| 40 | + "patternProperties": { |
| 41 | + "^[A-Z_]+$": { |
| 42 | + "type": "string", |
| 43 | + "description": "Environment variable value" |
| 44 | + } |
| 45 | + }, |
| 46 | + "default": {} |
| 47 | + }, |
| 48 | + "includeCoAuthoredBy": { |
| 49 | + "type": "boolean", |
| 50 | + "description": "Include 'co-authored-by Claude' byline in git commits and pull requests", |
| 51 | + "default": true |
| 52 | + }, |
| 53 | + "model": { |
| 54 | + "type": "string", |
| 55 | + "description": "Claude model to use", |
| 56 | + "enum": ["opus", "sonnet"] |
| 57 | + }, |
| 58 | + "permissions": { |
| 59 | + "type": "object", |
| 60 | + "description": "Tool permissions", |
| 61 | + "additionalProperties": false, |
| 62 | + "properties": { |
| 63 | + "allow": { |
| 64 | + "type": "array", |
| 65 | + "description": "List of allowed tool rules", |
| 66 | + "items": { "$ref": "#/$defs/rule" }, |
| 67 | + "uniqueItems": true |
| 68 | + }, |
| 69 | + "deny": { |
| 70 | + "type": "array", |
| 71 | + "description": "List of denied tool rules", |
| 72 | + "items": { "$ref": "#/$defs/rule" }, |
| 73 | + "uniqueItems": true |
| 74 | + } |
| 75 | + }, |
| 76 | + "default": { |
| 77 | + "allow": [], |
| 78 | + "deny": [] |
| 79 | + } |
| 80 | + }, |
| 81 | + "preferredNotifChannel": { |
| 82 | + "type": "string", |
| 83 | + "description": "Preferred notification channel", |
| 84 | + "enum": [ |
| 85 | + "iterm2", |
| 86 | + "iterm2_with_bell", |
| 87 | + "terminal_bell", |
| 88 | + "notifications_disabled" |
| 89 | + ], |
| 90 | + "default": "iterm2" |
| 91 | + }, |
| 92 | + "theme": { |
| 93 | + "type": "string", |
| 94 | + "description": "UI theme configuration", |
| 95 | + "enum": ["dark", "light", "light-daltonized", "dark-daltonized"] |
| 96 | + }, |
| 97 | + "verbose": { |
| 98 | + "type": "boolean", |
| 99 | + "description": "Show full bash and command outputs", |
| 100 | + "default": false |
| 101 | + } |
| 102 | + } |
| 103 | +} |
0 commit comments