The moment you paste an API key or password into your terminal, it gets permanently saved in your ~/.zsh_history.
SecretGuard catches credentials the exact millisecond you hit Enter — before they ever touch your disk.
Every command is ready out of the box with zero runtime configuration.
~/.zsh_history.
.claude/settings.local.json. This command scans local agent files and protects them from accidental Git pushes.
secretguard wrap to dynamically mask database passwords, authorization tokens, and API keys from ever showing on your screen during Zoom calls or live demos.
Test any command line or select a preset to evaluate detection latency and redaction.
How SecretGuard compares to traditional pre-commit scanners and secret managers.
| FEATURE | GITGUARDIAN / TRUFFLEHOG | 1PASSWORD CLI / DOPPLER | SECRETGUARD (NATIVE RUST) |
|---|---|---|---|
| Interception Timing | ✕ Too late (Git commit / CI only) | ⚠ Manual wrapper (Requires op run --) |
✓ Real-Time Line Hook (Millisecond you press Enter) |
| Stops .zsh_history Leaks | ✕ No (History gets poisoned) | ✕ No (If wrapper is omitted) | ✓ 100% Protected (Native Zsh/Bash/PWSH hook) |
| AI Agent Cache Shield | ✕ No (Ignores agent caches) | ✕ No | ✓ Built-In (Protects Claude Code & MCP configs) |
| In-Place History Cleanup | ✕ No (Read-only scanner) | ✕ No | ✓ Atomic Clean (secretguard clean-history w/ backups) |
| Live Screen Share Cloaking | ✕ No | ✕ No | ✓ Built-In (secretguard wrap masks live stdout) |
| Typing Latency | ✕ 450ms+ (CI / Python runtime) | ⚠ 80ms+ (IPC daemon) | ✓ 0.016ms (15µs) (Zero typing stutter) |
| App Footprint & Memory | ✕ Heavy (Python/Go/Docker runtimes) | ⚠ Heavy (Electron app + daemon) | ✓ Ultra-Light (1.56 MB single binary, 0 background CPU) |
| Privacy & Offline Guarantee | ⚠ Cloud-dependent (Sends tokens to API) | ⚠ Cloud account required | ✓ 100% Offline (Zero telemetry, zero network calls) |
Terminal hooks slower than 50ms cause noticeable typing lag. SecretGuard runs in 15 microseconds.
Simple answers to common questions about shell integration, privacy, and safety.
.zsh_history.backup.<time>), and renames atomically. Your original file is always backed up..claude/settings.local.json. Running secretguard protect-agent audits these files and automatically makes sure they are excluded in your .gitignore.Install via Homebrew or standard curl installer in 5 seconds. Dual-licensed under MIT and Apache-2.0.