A CLI tool to validate settings.json and settings.local.json files for Claude Code configuration.
- Create a virtual environment:
python -m venv .venv- Activate the virtual environment:
# On Linux/macOS
source .venv/bin/activate
# On Windows
.venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt# Validate a settings file
python claude-json-validator.py settings.json
# Validate with verbose output
python claude-json-validator.py .claude/settings.local.json --verbose
# Strict mode (warnings treated as errors)
python claude-json-validator.py ~/.claude/settings.json --strict- JSON syntax and structure
- Environment variable names
- Permission tool names
- Model names
- Configuration value ranges
0: Valid file (warnings allowed unless--strict)1: Invalid file or errors found