PromptGuard
ShippedA secret firewall for AI coding prompts.
Hooks directly into Cursor's and Claude Code's prompt-submission events and scans every prompt locally before it leaves your machine. If it spots something that looks like a secret — an API key, token, or .env value — it blocks the prompt before it's ever sent.
- Runs 100% locally — no network calls, nothing stored.
- Detects AWS, OpenAI, Anthropic, GitHub, Stripe, Slack, npm tokens, JWTs, private keys, and high-entropy strings.
- Fails open by default; --strict mode fails closed for security-critical setups.
npx @khushwant.r/promptguard install