Open source · Apache 2.0 · Built in Gothenburg
ZeroTrace is a local privacy firewall for AI coding agents like Claude Code, Codex, OpenCode and Cursor. It scrubs keys and personal data before they leave your machine — and restores them when responses stream back.
curl -fsSL https://raw.githubusercontent.com/chuanjin/zerotrace/main/install.sh | shHigh-entropy pseudonyms replace API keys, emails, Swedish Personnummer and IBANs. The same entity always maps to the same pseudonym, so the model can still reason — it just never sees the secret. Streams are unmasked in real time, even across SSE chunk boundaries.
A drop-in upstream replacement. Point ANTHROPIC_BASE_URL or OPENAI_BASE_URL at 127.0.0.1:9000 and your agent works exactly as before.
Every outbound interaction lands in an append-only SHA-256 hash chain, with prompts encrypted locally using AES-256-GCM. `zerotrace verify` detects tampering, reordering, insertion or deletion — offline.
A doom-loop breaker stops repeated identical failures with HTTP 429 Retry-After. Two-phase budget reconciliation tracks token reservations against real usage and releases budget on failed requests.
One binary, written in Go. No account, no cloud, no telemetry. Your keys and audit log live under ~/.zerotrace.
zerotrace initzerotrace serveexport ANTHROPIC_BASE_URL="http://127.0.0.1:9000/anthropic"
claudezerotrace status
zerotrace verify
zerotrace export-complianceSecret keys (sk-ant-…, sk-…, AKIA…, ghp_…), email addresses, Swedish Personnummer in 10 and 12-digit formats, and European IBANs, compact or spaced.
Pattern matching is defence-in-depth with verifiable logging. It can't guarantee detection of every piece of unstructured confidential text, and it doesn't make an organisation GDPR-compliant on its own.