What problem does it solve?
It prevents losing critical Claude Code configuration by automatically backing up your local settings and providing a mandatory, auditable diff against the previous backup for the same API provider.
Core Features & Use Cases
- One-click settings backup: Copies
~/.claude/settings.json plus both global and project .claude.json files into a timestamped backup repository for reliable recovery.
- Provider-aware naming: Detects the active API provider from
ANTHROPIC_BASE_URL and prefixes filenames accordingly (e.g., kimi/minimax/anthropic), so backups remain correctly labeled across provider changes.
- Blocking diff audit: Forces a cross-date comparison with the latest previous backup for the same provider, always producing an audit log and refusing to silently assume “first backup” unless
--force-first is provided.
Quick Start
Run /backup-claude-settings to back up your Claude settings to the configured GitHub repository and output the diff result plus the audit log path.