Works with the AI Agents you already use

    Secret Guard: Keep API Keys and Passwords Out of Your Agent

    by Nicolas Fernando

    1

    Stops your coding agent from reading or repeating API keys, tokens and passwords. Secrets show up as [REDACTED] instead.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    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

    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

    SettingServiceValue shown?
    DATABASE_URLPostgreSQL on db.internal:5432, database shop, user appPassword hidden
    STRIPE_SECRET_KEYStripe (live key)Hidden
    OPENAI_API_KEYOpenAIHidden
    GITHUB_TOKENGitHub personal access tokenHidden
    API_BASE_URLYour own API at api.example.comShown (not a secret)

    NODE_ENV and PORT are plain settings and stay visible.

    Next steps

    1. The Stripe key is a live key, so make sure .env is listed in .gitignore.
    2. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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 / Shell
    Read Files
    Environment Variables

    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.

    Listed2 days ago

    What's inside

    Frequently Asked Questions

    The skill tells your agent to read credential files and risky command output only through a bundled redacting script. The script swaps each secret for a label like [REDACTED:GitHub token], so the agent can still help with your settings without seeing the values. It works through the agent following these rules, so treat it as a safety net.

    This skill recognizes over 30 specific types of credentials, including those for AWS, GitHub, Stripe, and OpenAI. It also catches passwords found in website addresses and secret values assigned to variables in your code.

    You only need Python 3.8 or newer on your system. The skill uses a built-in script that works offline and does not require you to sign up for any extra services or install additional software libraries.

    You can tell your agent to use the redacting tool before it opens any configuration file or runs a system command that might show sensitive settings. You can also ask it to scan your entire project folder for hidden secrets before you share or publish your code.

    It cannot hide text that you type yourself directly into the chat. It also might miss very short passwords or unusual internal tokens that do not follow standard patterns, so you should still treat it as a safety net rather than a perfect guarantee.

    The skill instructs the agent never to undo a redaction or look up a hidden value another way (reading the file raw, cat, grep, echo). If a task truly needs the value, the agent asks you to supply it through an environment variable at run time.

    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.