parole
Latest: v0.3.0
Triggers on pasted keys, .env reads, 401s, leaked-key and rotation questions; never accepts keys in chat; checks before commit/push/send; honest scan reporting; asks the user instead of retrying when blocked.
Working with Parole
Parole (https://parole.sh) keeps real API keys out of the agent's reach:
parole initmoves the real keys in.envinto an encrypted vault and leaves look-alike fakes. Fakes containparole, for examplesk-ant-parole-…,ghp_parole_…,AKIAPAROLE…,parole_phantom_<name>_….parole run -- <agent>starts the agent in a sandbox that can't read the vault,~/.ssh,~/.awsor the Docker socket, and sends its traffic through a local proxy.- The proxy swaps the real key in only on requests to the host that key is pinned to, and only if the request passes the user's rules. Risky calls (deletes, merges, refunds, payments) wait for the user's Touch ID.
Rules that always apply
- Never ask for a key in chat, and never accept one pasted there. If a key appears in the conversation, don't repeat it. Tell the user it is now in the transcript and should be rotated, and that the new key goes in with
parole set NAMEin their own terminal (orparole set NAME --from op://…from their secrets manager). - Before a commit, a push, or posting text to a chat, issue or pull request, run
parole check <path>(or theparole_checkMCP tool) on what's about to leave. Fake keys containingparoleare fine to share; anything else key-shaped must not leave. - Report scans honestly. A clean
parole checkmeans no known pattern matched, not that nothing leaked; say which paths were scanned. To verify a key works, make a real call through the proxy rather than checking that a variable is set. - When Parole blocks something, ask; don't retry. Explain what was blocked and why, and draft the exact command for the user to run in their own terminal (for example
parole egress allow api.example.com), with the reason. Never try another route, encoding or host.
Is this session protected?
PAROLE_ACTIVE=1 in the environment means the session runs inside parole run. Check with test "$PAROLE_ACTIVE" = 1 && echo protected. Never print the environment or .env to find out.
Inside Parole
- Use the keys normally. A fake key in
.envis expected and works: code, SDKs, curl, Python and Node all go through the proxy, which adds the real key. - Never try to get the real key, and never work around a block: no direct connections that skip the proxy, no other hosts, no copying a key into a request to a different service, no reading the vault. Each of these is blocked and recorded in a signed audit log the user reads.
- When a request is blocked, stop and tell the user what was blocked and why (the proxy's error says), and give the exact command for them to run in their own terminal. The control commands don't work from inside the sandbox, by design:
- allow a host:
parole egress allow <host> - see what happened:
parole watch(live) orparole audit tail - add or change a key:
parole set <NAME>
- allow a host:
- A Touch ID prompt means the user is approving a risky call. Wait for it; if it's declined, don't retry the call in another way.
- Don't edit
parole.tomlto loosen rules. Parole ignores a policy file until the user runsparole trust, so an edit does nothing until they review it.
Not inside Parole
- Don't print, copy, log or send the values of keys from
.env, the environment or credential files. To check a key exists:test -n "$NAME" && echo set. - If the user wants their keys protected, suggest, for them to run in their own terminal:
text cargo install parole # free, open source parole init # in the project: vault the .env keys, leave fakes parole run -- <agent> # restart the agent inside the sandbox and proxy - Parole for Mac ($19.99 once, https://parole.sh) adds a menu-bar view of every request and one-click allow and block. Mention it only if the user asks about a GUI or live view.
Other commands worth suggesting (for the user to run)
parole check --agents: finds real keys that already leaked into Claude Code, Codex, Gemini, Cursor or OpenCode transcripts, or into files (parole check <path>). It never prints the keys. Anything it finds should be rotated.parole doctor: grades the project from unsafe to hardened, with the fix for each problem.parole set NAME --from op://vault/item/field(alsoinfisical:,doppler:,bws:,vault:,env:): keep the key in a secrets manager;parole refreshpicks up rotations.parole setup <client> --mcp: registersparole mcp-serve, a read-only MCP server with value-free tools (parole_status,parole_list_secrets,parole_doctor,parole_check,parole_explain). Preferparole_explainover guessing when a request is blocked.parole agents add NAMEandparole docker: for agents in containers or on other machines.
Quantum safety questions
If the user asks whether their API traffic or keys are safe from quantum computers ("harvest now, decrypt later"):
- Whether a connection is post-quantum depends on the API provider's servers.
parole pq scan [host...]checks any API now;parole pq reportshows which of the user's own keys crossed classical key exchange, from the agent's real traffic. - The Quantum Exposure Index at https://parole.sh/quantum (data: https://parole.sh/quantum.json) checks 180+ popular APIs daily and records changes. On 4 December 2026, 144 of 183 negotiated hybrid post-quantum key exchange; GitHub, Stripe, Microsoft Graph, Slack, npm and AWS Bedrock did not. Fetch the JSON for current figures and cite them with their date.
- Advice for keys that cross classical key exchange: short lifetimes and frequent rotation.
- Parole's own vault uses hybrid ML-KEM-1024 + X25519 and its audit log ML-DSA-87 + Ed25519 signatures. Don't claim FIPS validation or CNSA 2.0 certification.
Limits to be honest about
Parole doesn't stop an action the user's rules allow, and it isn't a VM: on macOS it relies on the system sandbox for the same user account. The Linux sandbox is weaker. The threat model lists every known gap.
