Claude Code Backup — Development skill for Claude Code
Back up your Claude Code config (~/.claude/) with automatic secret sanitization.
How to install Claude Code Backup
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open placenameday/claude-code-backup and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Backup does
Back up your Claude Code config (~/.claude/) with automatic secret sanitization. A single slash command — no official backup exists.
Alternatives in Development
- Backup 14.5k ★
- Check 1: Cache Exists? — CLAUDE_DIR="${CLAUDE_CONFIG_DIR:-$HOME/.claude}" CACHE_EXISTS=$(ls -d "$CLAUDE_DIR/plugins/cache/claude-hud" 2 10.9k ★
- JWT Scan — JWT attack toolkit (offline) — alg:none forgery, RS256→HS256 algorithm confusion, weak-secret crack, static cl 4.5k ★
README
claude-code-backup
Back up your entire Claude Code configuration (`~/.claude/`) with **automatic secret sanitization** — all tokens, keys, and credentials are replaced with descriptive placeholders before export.
Why?
- No official backup/export/sync exists in Claude Code (#22648, 6+ duplicate issues, zero Anthropic response)
- Config corruption from concurrent instances is an active bug (#29004, #29395)
- claude-code-exporter only exports conversations, not config
- Manual backup is tedious and error-prone — easy to leak secrets
Install
# One-liner: copy the command file
mkdir -p ~/.claude/commands && curl -o ~/.claude/commands/backup.md \
https://raw.githubusercontent.com/placenameday/claude-code-backup/main/backup.md
Or manually copy `backup.md` to `~/.claude/commands/`.
Usage
In any Claude Code session:
/backup
Output: `~/Desktop/claude-code-backup-{YYYYMMDD}.tar.gz`
What Gets Backed Up
| Included | Description |
|---|---|
settings.json |
Plugins, MCP servers, hooks, env vars, permissions |
config.json |
API key config |
.credentials.json |
OAuth tokens (sanitized) |
CLAUDE.md |
Global instructions |
agents/ |
Custom agent definitions |
commands/ |
Custom slash commands |
skills/ |
Custom skills |
memory/ |
Persistent memory files |
plugins/*.json |
Installed plugins & marketplace config |
**Skipped** (session/transient data): `debug/`, `session-env/`, `file-history/`, `history.jsonl`, `cache/`, `telemetry/`, `todos/`, `tasks/`, `backups/`, `paste-cache/`, `projects/`, `logs/`, `stats-cache.json`
Secret Sanitization
Claude dynamically scans your config and replaces secrets with descriptive placeholders:
| Pattern | Examp
Related Skills
Claude Code Cheat Sheet
A single-page reference covering every keyboard shortcut, slash command, CLI flag, MCP server config, CLAUDE.m
Add Backup
Add automatic backup to PVC(s) in $ARGUMENTS.
Auditor
Thin wrapper that forwards $ARGUMENTS into the auditor skill. Exists so the self-paced ScheduleWakeup continua
Dev Manager
Thin wrapper that forwards $ARGUMENTS into the dev-manager skill (the human's seat — question hub and refineme
Memory Apply
Apply a previously approved triage table to a Claude Code auto-memory directory. Creates a full backup first.
Agent Backup
macOS app to back up coding-agent settings (MCP servers, sessions, memory, skills) to Google Drive with end-to
Related Agents
Security Privacy Guardian
Use when validating PII handling (LGPD/GDPR), secret leakage in code/prompts/traces, eval-case sanitization, o
Part 16: autoDream — Automatic Memory Consolidation
Note: OpenClaw 2026.4+ has a built-in dreaming system (Part 22) inside memory-core. If you're on 2026.4+, use
Backup Disaster Recovery Engineer
Guarantee the organisation can come back from data loss, ransomware, or site failure. Invoke for itops-team wo