Scan for and remove API keys, tokens, passwords, and other secrets from code
Scans code for hardcoded secrets and optionally redacts them with placeholders.
/plugin marketplace add iamfiscus/claude-code-scrub/plugin install iamfiscus-scrub@iamfiscus/claude-code-scrub[--fix] [--verbose] [path]Detect and optionally remove hardcoded secrets from source code.
Execute the secrets scanning script:
bash "$CLAUDE_PLUGIN_ROOT/scripts/scrub-secrets.sh" [--fix] [--verbose] <path>
--fix: Replace found secrets with [REDACTED_TYPE] placeholders--verbose or -v: Show the actual line content containing secretspath: File or directory to scan (defaults to current directory)/scrub:secrets - Scan current directory/scrub:secrets ./src - Scan specific folder/scrub:secrets --verbose ./config.js - Show secret locations with content/scrub:secrets --fix ./ - Find and redact all secrets0: No secrets found1: Secrets found (or fixed)Automatically skips: .git/, node_modules/, __pycache__/, venv/, dist/, build/, .next/, lock files