Protect your secrets from AI agents
LocalGuard — a local proxy that redacts confidential data before sending it to LLM providers. Works with any AI agents: Claude Code, ChatGPT, Codex CLI, Aider, and others.
- Intercepts API keys, tokens, passwords, PII, crypto wallets, PEM keys
- Runs 100% locally — no data leaves your machine
- Adds <50ms latency per request
- Supports macOS, Linux, Windows
| Plan | Price | What's included |
|---|---|---|
| Free | $0 | API keys, Bearer/JWT tokens, AWS/GitHub keys, PEM, crypto wallets, IBAN |
| Pro | $39/year (~$3.25/mo) | Free + credit cards, email, phones, passwords, PII, real-time dashboard |
| Enterprise | Contact us | Pro + 2 server licenses, extended detection rules, AI tuning, priority support |
- macOS —
brew install --cask localguard - Or download from Releases:
.dmg(macOS) ·.AppImage/.deb(Linux) ·.exe(Windows)
One-line install (macOS arm64 · Linux x86_64 / arm64):
curl -fsSL https://raw.githubusercontent.com/Lexus2016/LocalGuard/main/install.sh | shOr via Homebrew:
brew tap lexus2016/tap https://github.com/Lexus2016/homebrew-tap
brew install localguardThis installs the localguard command (the legacy name llm-security-proxy also works).
Start the proxy, then launch a client pre-configured to route through it. Secrets in requests are redacted before they reach the provider and restored in the response:
Note:
launchis a command-line feature — install the CLI (above) to use it. Desktop-app users start and manage their agents from the app itself.
localguard start # start the local proxy daemon
localguard status # check it's running
localguard launch opencode # OpenCode
localguard launch claude-code # Claude Code (Anthropic)
localguard launch codex # Codex CLI
localguard launch aider # aider (OpenAI + Anthropic)
localguard launch gemini-cli # Gemini CLISupported clients: claude-code, aider, goose, qwen-code, gemini-cli, opencode, zed, sgpt, codex.
Narrow a multi-provider client to a single upstream, or forward extra arguments to the
client after --:
localguard launch aider --provider anthropic
localguard launch claude-code -- --model claude-sonnet-4-6launch starts the daemon if it isn't running, points the client's base URL at the
local proxy, and uses your existing provider API key as-is — it does not manage or store
keys, so the client must already be authenticated. Clients with hardcoded endpoints
(Cursor, Windsurf) are not supported.
- Install LocalGuard
- Activate your license
- Select detection mode: Full / Regex Only / Off
- Configure your AI agents (Claude Code, Codex CLI, etc.)
- Monitor Dashboard and Logs
Detailed guide: localguard.me/guide
- Email: support@localguard.me
- Website: localguard.me
- GitHub: Lexus2016/LocalGuard
© 2026 LocalGuard. All rights reserved.