Privacy Scan vs GitGuardian
Both tools look for secrets in developer workflows, but they scan different things. GitGuardian watches code as it moves through git repositories and automated build pipelines, finding keys before or after they land in a commit. Privacy Scan reads the session files Claude Code, Codex, and Pi write to your local disk, before you share or export them.
| Feature | Privacy Scan | GitGuardian |
|---|
| License | MIT | Proprietary |
| Data location | On your machine, never sent | Sent to GitGuardian servers |
| What it scans | AI coding agent session files | Git commits, pull requests, build pipelines |
| Personal data detection | Email, credit card, national IDs | Primarily secrets and credentials |
| Cost | Free | Free for public repos; paid plans for private repos and teams |
Privacy Scan is the right tool when you want to check your AI session files before sharing them. Use it before uploading a trace to a dataset hub, sending it to a colleague, or attaching a log to a bug report. It runs on your machine and finds the secrets in those files before they go anywhere.
GitGuardian is the better choice when you need continuous monitoring of your git history, pull requests, and build pipelines. It works best if you are comfortable with files being sent to their servers. For teams that push code to private repositories, GitGuardian's real-time alerts in pull requests are hard to match. For most developer teams, both tools are useful: GitGuardian watches the code you push, and Privacy Scan checks the AI sessions that code produced.