Works with the AI Agents you already use
Secret Guard: Keep API Keys and Passwords Out of Your Agent
Stops your coding agent from reading or repeating API keys, tokens and passwords. Secrets show up as [REDACTED] instead.
$5
What it does
- Detects 30+ key formats: Anthropic, OpenAI, AWS, GitHub, Stripe, Slack, JWTs, private keys and more
- Catches passwords in URLs, secrets in query strings, and assignments like password = "..."
- Flags random-looking tokens with no known prefix, while leaving branch names, paths and hashes alone
- Scans a project before you commit and lists file and line for each finding, never the value
- Runs offline as one Python file, standard library only, with nothing sent anywhere
- Includes a self-test you can run in one command
Who it's for
Developers who use AI coding agents
Keep the keys in your .env files out of chat logs, transcripts and commits.
Try asking: “Show me which settings are in my .env file, but hide the values.”
Freelancers working on client projects
Work on client configs without your agent seeing or repeating their credentials.
Try asking: “Show me the settings in docker-compose.yml but hide any passwords.”
Open source maintainers
Catch a leaked key before it reaches a public repository.
Try asking: “Scan this project for secrets before I commit.”
Secret Guard: Keep API Keys and Passwords Out of Your Agent
Example session with this skill installed
Read my .env file and tell me which services this app connects to, but don't show me any keys or passwords.
- Read your context and instructions
- Compiled the secret guard
Summary
I read your .env through secret-guard's redacting filter, so no key or password reached this conversation. Your app connects to 4 services.
What I ran
python3 "$SKILL_DIR/scripts/secret_guard.py" redact .env
secret-guard: 4 secret(s) redacted (API key sk-, GitHub token, Password in URL, Stripe key)
NODE_ENV=production
PORT=3000
DATABASE_URL=postgres://app:[REDACTED]@db.internal:5432/shop
STRIPE_SECRET_KEY=[REDACTED:Stripe key]
OPENAI_API_KEY=[REDACTED:API key sk-]
GITHUB_TOKEN=[REDACTED:GitHub token]
API_BASE_URL=https://api.example.com
Services this app connects to
| Setting | Service | Value shown? |
|---|---|---|
| DATABASE_URL | PostgreSQL on db.internal:5432, database shop, user app | Password hidden |
| STRIPE_SECRET_KEY | Stripe (live key) | Hidden |
| OPENAI_API_KEY | OpenAI | Hidden |
| GITHUB_TOKEN | GitHub personal access token | Hidden |
| API_BASE_URL | Your own API at api.example.com | Shown (not a secret) |
NODE_ENV and PORT are plain settings and stay visible.
Next steps
- The Stripe key is a live key, so make sure .env is listed in .gitignore.
- Before your next commit, I can scan the whole project with secret-guard. It lists file and line for each finding, never the value.
Connects securely to your tools. The creator never sees your data.
About this skill
secret-guard makes your agent read credentials only through a redacting filter. It works with .env files, .npmrc, AWS credentials, config files and command output. The agent still sees variable names and structure, but never the values.
- Detects 30+ key formats: Anthropic, OpenAI, AWS, GitHub, GitLab, Stripe, Slack, Google, Hugging Face, JWTs, private keys and more
- Catches passwords in URLs, secrets in query strings, and assignments like password = "..."
- Flags random-looking tokens with no known prefix, while leaving branch names, paths and hashes alone
- Scans a project before you commit and lists file and line for each finding, never the value
- One Python file, standard library only, works offline, nothing sent anywhere
- Includes a self-test you can run in one command
Detection uses patterns and heuristics, so treat it as a safety net. It won't catch a short password typed with no variable name.
It may miss very short passwords or unique internal tokens that don't follow common patterns. It cannot hide what you have already typed into the chat box.
This skill uses a Python 3 script (secret_guard.py) to process text via regex patterns and entropy checks. It handles specific files like .env, .npmrc, and .aws/credentials by piping them through a redactor. It includes a scan mode for CI/CD or pre-commit checks and can be integrated into CLI workflows to filter stdout. It does not require external API calls and works entirely on the local file system.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 2 days ago
- Software
Python
Runs locally. Nothing to install beyond Python, and nothing is sent over the network.
Permissions
Terminal: runs the bundled Python script. Read files: reads the files you ask about, only through the redacting filter. Environment variables: filters printenv output so values stay hidden. No network access.
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.