settings.local.json
A local configuration file generated by Claude Code for persisting permission and command settings, which may contain sensitive command content that has not been desensitized.
Timeline (last 90 days)
If a local configuration file containing sensitive commands is accidentally committed and pushed to a public GitHub repository, credentials will be exposed.
Developers should add settings.local.json and related local configuration files to .gitignore.
The settings.local.json file is usually generated automatically when a user clicks "Yes, and don't ask again" in Claude Code, to remember local permission decisions.
Security firm Apiiro found that more than a thousand public Claude Code settings.local.json files contained real secrets.
It is recommended to add known sensitive filenames (such as settings.local.json) to git-secrets or gitleaks scanning rules to establish default protection.
Anthropic responded that settings.local.json was designed for local use and should not be committed to version control systems.
Apiiro confirmed that 1,122 public settings.local.json files contained real secrets, a figure derived from actual scan results.
All Facts (7)
If a local configuration file containing sensitive commands is accidentally committed and pushed to a public GitHub repository, credentials will be exposed.
50%UnverifiedDevelopers should add settings.local.json and related local configuration files to .gitignore.
50%UnverifiedThe settings.local.json file is usually generated automatically when a user clicks "Yes, and don't ask again" in Claude Code, to remember local permission decisions.
50%UnverifiedSecurity firm Apiiro found that more than a thousand public Claude Code settings.local.json files contained real secrets.
50%UnverifiedIt is recommended to add known sensitive filenames (such as settings.local.json) to git-secrets or gitleaks scanning rules to establish default protection.
50%UnverifiedAnthropic responded that settings.local.json was designed for local use and should not be committed to version control systems.
50%UnverifiedApiiro confirmed that 1,122 public settings.local.json files contained real secrets, a figure derived from actual scan results.
50%