🛡️ APIKey GuardPrevent API keys, tokens, secrets, and APIKey Guard is a security-focused VS Code extension that scans your code in real time, detects exposed credentials, and blocks unsafe commits before they become security incidents.
Detect Early. Fix Fast. Commit Safely. Why APIKey Guard?Leaked API keys and secrets are one of the most common causes of security incidents in modern development. Whether you're building with AI tools, working on side projects, or shipping production software, accidentally committing credentials can lead to:
APIKey Guard helps prevent these mistakes before they reach Git. FeaturesReal-Time Secret DetectionInstantly detects exposed credentials while you code, including:
Commit ProtectionAutomatically installs a Git pre-commit hook and blocks commits containing sensitive credentials. No accidental pushes. No exposed secrets. No surprises. 📁 .env File ProtectionDetects Get warned before sensitive configuration files are committed. Smart File ScanningScans source code and text-based files while safely ignoring binary files such as:
This reduces false positives while maintaining strong security coverage. 🛠 Quick Fix ActionsMove detected secrets into environment variables with one-click fixes. Reduce manual work and follow security best practices faster. 😈 Roast ModesSecurity doesn't have to be boring. Choose your preferred warning style:
From friendly reminders to brutal reality checks. Example Warning
Commit Block Example
Supported Secret Types
📦 Getting Started
🛡️ Security PhilosophyAPIKey Guard follows a simple rule:
Catch mistakes early. Fix them quickly. Ship code safely. AuthorCreated and maintained by SAHIL KUMAR. If APIKey Guard helps you avoid a secret leak, consider leaving a review and sharing feedback. LicenseMIT License |