cd /news/ai-agents/stop-handing-ai-agents-your-password… · home › topics › ai-agents › article
[ARTICLE · art-179105] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Stop Handing AI Agents Your Password Manager and .env Files: Zero-Knowledge Agent Vaults with MCP

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.

key 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.

by read2 min views6 publishedDec 1, 2026

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.

Right now, most setups fall into one of three dangerous habits:

.env filesotpauth:// seeds to an agent We built Passhold 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.

All 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.

Instead of unlocking your everyday password manager inside an agent's Chrome, Edge, or Firefox profile, enroll a dedicated profile in Agent Browser Mode:

get_totp without rendering raw passwords or TOTP base32 seeds in the popup DOM. Cloud 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:

passhold mcp --http --port 3847 --allowed-host tunnel.example.com --expires 8h

Key hardening details:

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:

Tool What it does
list_items Returns granted item metadata, allowed hosts, methods, and approval rules — never values.
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.
run_command Spawns with shell: false , strips Passhold auth env vars from the child process, and scrubs stdout/stderr.
fill_login Verifies target origin and fills credentials via the local browser bridge.
get_totp Verifies allowed host and returns only an ephemeral 6-digit RFC 6238 code + secondsRemaining .
save_api_key Seals newly minted tokens directly into an Agent Inbox for human review (preferring from_command so stdout never enters context).
request_access Requests owner approval for an ungranted action with an explicit human-readable reason.
status /reveal Machine state check; raw reveal is off by default and requires explicit grant + one-time approval.

Generate client configs and install the portable agent workflow skill in two commands:

passhold machine config --client openclaw   # or: hermes, cursor, claude, vscode, cloud
npx skills add keyrook/passhold

Per-agent guides: OpenClaw · Hermes

io.github.keyrook/passhold --http), and isolated Agent Browser Mode. How 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!

── more in #ai-agents 4 stories · sorted by recency
── more on @passhold agents 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/stop-handing-ai-agen…] indexed:0 read:2min 2026-12-01 · —