Env Guard
/install env-guard
EnvGuard Secret & Credential Scanner
Scan repos and workspaces for leaked secrets. API keys in code, passwords in configs, tokens in logs. Catches them before they hit git.
Find leaked secrets before they reach production.
Quick Scan
node src/env-guard.js scan ./my-project
What It Finds
| Secret Type | Pattern |
|---|---|
| API Keys | sk-..., AKIA..., ghp_... |
| Passwords | password=, passwd: |
| Tokens | token=, bearer ... |
| Private Keys | -----BEGIN RSA PRIVATE KEY----- |
| Connection Strings | mongodb://, postgres:// |
| Webhook URLs | Discord webhooks, Slack webhooks |
Features
- Custom patterns — add your own secret patterns
- Allowlisting — mark false positives to skip
- CI integration — exit code 1 for pipeline gates
Output
🔴 SECRETS FOUND — 3 issues
src/config.js:12
API key detected: sk-proj-...Tm4x (OpenAI)
.env.backup:3
Database password in committed file
logs/debug.log:445
Bearer token logged in plaintext
⚠️ Disclaimer
This software is provided "AS IS", without warranty of any kind, express or implied.
USE AT YOUR OWN RISK.
- The author(s) are NOT liable for any damages, losses, or consequences arising from the use or misuse of this software — including but not limited to financial loss, data loss, security breaches, business interruption, or any indirect/consequential damages.
- This software does NOT constitute financial, legal, trading, or professional advice.
- Users are solely responsible for evaluating whether this software is suitable for their use case, environment, and risk tolerance.
- No guarantee is made regarding accuracy, reliability, completeness, or fitness for any particular purpose.
- The author(s) are not responsible for how third parties use, modify, or distribute this software after purchase.
By downloading, installing, or using this software, you acknowledge that you have read this disclaimer and agree to use the software entirely at your own risk.
DATA DISCLAIMER: This software processes and stores data locally on your system. The author(s) are not responsible for data loss, corruption, or unauthorized access resulting from software bugs, system failures, or user error. Always maintain independent backups of important data. This software does not transmit data externally unless explicitly configured by the user.
Support & Links
| 🐛 Bug Reports | [email protected] |
| ☕ Ko-fi | ko-fi.com/theshadowrose |
| 🛒 Gumroad | shadowyrose.gumroad.com |
| @TheShadowyRose | |
| 🐙 GitHub | github.com/TheShadowRose |
| 🧠 PromptBase | promptbase.com/profile/shadowrose |
Built with OpenClaw — thank you for making this possible.
🛠️ Need something custom? Custom OpenClaw agents & skills starting at $500. If you can describe it, I can build it. → Hire me on Fiverr
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install env-guard - After installation, invoke the skill by name or use
/env-guard - Provide required inputs per the skill's parameter spec and get structured output
What is Env Guard?
Scan repos and workspaces for leaked secrets. API keys in code, passwords in configs, tokens in logs. Catches them before they hit git. It is an AI Agent Skill for Claude Code / OpenClaw, with 540 downloads so far.
How do I install Env Guard?
Run "/install env-guard" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Env Guard free?
Yes, Env Guard is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Env Guard support?
Env Guard is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Env Guard?
It is built and maintained by Shadow Rose (@theshadowrose); the current version is v1.0.2.