{"slug": "stop-handing-ai-agents-your-password-manager-and-env-files-zero-knowledge-agent", "title": "Stop Handing AI Agents Your Password Manager and .env Files: Zero-Knowledge Agent Vaults with MCP", "summary": "The Passhold Agents project, a GPL-3.0 zero-knowledge credential vault from Keyrook, released a hardened Streamable HTTP MCP transport and a nine-tool MCP server that let AI agents invoke credentials without exposing raw secrets to the model's context window. The design keeps agent credentials in separate AES-256-GCM vaults, injects secrets only on allowlisted hosts and methods, and scrubs raw, base64, hex and URL-encoded secrets from responses and command output. The CLI 0.6.0 binds to 127.0.0.1, validates the Host header, rejects browser Origin headers and authenticates with a constant-time Bearer token.", "body_md": "As teams move from chat copilots to autonomous coding tools, browser agents, cloud VMs, and 24/7 bots, credential handling has become the weakest link in the stack.\n\nRight now, most setups fall into one of three dangerous habits:\n\n`.env` files`otpauth://` seeds to an agent\nWe built **[Passhold Agents](https://keyrook.com/agents/)** (GPL-3.0, zero-knowledge) to enforce a strict boundary: **give an AI agent the capability to invoke a credential without ever letting the raw secret enter the model's context window.**\n\nAll agent credentials live in **dedicated agent vaults** encrypted with AES-256-GCM keys that are completely separate from personal and family vaults. An enrolled agent machine never receives a key capable of decrypting personal logins or passkeys.\n\nInstead of unlocking your everyday password manager inside an agent's Chrome, Edge, or Firefox profile, enroll a dedicated profile in **Agent Browser Mode**:\n\n`get_totp` without rendering raw passwords or TOTP base32 seeds in the popup DOM.\nCloud sandboxes can't run local stdio pipes into your laptop. Passhold CLI (`0.6.0`) ships a hardened **Streamable HTTP MCP (2025-03-26)** transport:\n\n```\npasshold mcp --http --port 3847 --allowed-host tunnel.example.com --expires 8h\n```\n\nKey hardening details:\n\n`127.0.0.1` — never exposed directly on `0.0.0.0`; put your own HTTPS tunnel or reverse proxy in front.` Host` header against `--allowed-host`, rejects browser `Origin` headers, and authenticates with a constant-time Bearer token.`--expires`) plus a one-tap Run `passhold mcp` locally over stdio with 9 focused MCP tools:\n\n| Tool | What it does | \n|---|---|\n| `list_items` | Returns granted item metadata, allowed hosts, methods, and approval rules — never values. | \n| `http_request` | Injects secrets only on allowlisted hosts, paths, and HTTP methods; refuses redirects; ignores proxy env vars; scrubs raw, base64, hex, and URL-encoded secrets from responses before returning to the model. | \n| `run_command` | Spawns with `shell: false` , strips Passhold auth env vars from the child process, and scrubs stdout/stderr. | \n| `fill_login` | Verifies target origin and fills credentials via the local browser bridge. | \n| `get_totp` | Verifies allowed host and returns only an ephemeral 6-digit RFC 6238 code + `secondsRemaining` . | \n| `save_api_key` | Seals newly minted tokens directly into an Agent Inbox for human review (preferring `from_command` so stdout never enters context). | \n| `request_access` | Requests owner approval for an ungranted action with an explicit human-readable reason. | \n| `status` /`reveal` | Machine state check; raw `reveal` is off by default and requires explicit grant + one-time approval. | \n\nGenerate client configs and install the portable agent workflow skill in two commands:\n\n```\npasshold machine config --client openclaw   # or: hermes, cursor, claude, vscode, cloud\nnpx skills add keyrook/passhold\n```\n\nPer-agent guides: [OpenClaw](https://keyrook.com/agents/openclaw/) · [Hermes](https://keyrook.com/agents/hermes/)\n\n`io.github.keyrook/passhold`\n`--http`), and isolated Agent Browser Mode.\nHow are you currently isolating API keys, browser logins, and 2FA codes for your autonomous agents? Would love feedback on the threat model and scrubbing edge cases in the comments!", "url": "https://wpnews.pro/news/stop-handing-ai-agents-your-password-manager-and-env-files-zero-knowledge-agent", "canonical_source": "https://dev.to/keyrook/stop-handing-ai-agents-your-password-manager-and-env-files-zero-knowledge-agent-vaults-with-mcp-52j3", "published_at": "2026-12-01 04:10:33+00:00", "updated_at": "2026-12-01 04:14:22.175360+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "agent-protocols", "ai-tools", "developer-tools"], "entities": ["Passhold Agents", "Keyrook", "Passhold CLI", "OpenClaw", "Hermes", "Cursor", "Claude", "VS Code"], "also_reported_by": [], "takeaway": "Passhold's MCP server exposes nine tools that inject secrets only on allowlisted hosts and methods and scrub raw, base64, hex and URL-encoded secrets from responses, so agents can call credentials without the raw value entering context.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/stop-handing-ai-agents-your-password-manager-and-env-files-zero-knowledge-agent", "markdown": "https://wpnews.pro/news/stop-handing-ai-agents-your-password-manager-and-env-files-zero-knowledge-agent.md", "text": "https://wpnews.pro/news/stop-handing-ai-agents-your-password-manager-and-env-files-zero-knowledge-agent.txt", "jsonld": "https://wpnews.pro/news/stop-handing-ai-agents-your-password-manager-and-env-files-zero-knowledge-agent.jsonld"}}