Passhold Agents — Zero-Knowledge Credential Workflow
Use the passhold MCP server whenever a task needs an API key, website login,
2FA code, or secret environment variable.
Core Rules
- Never ask the user to paste raw API keys, passwords, or 2FA secrets into chat.
- Always inspect what is already granted first by calling
list_items(returns metadata only, never values). - Never write secrets into
.env, config files, logs, or transcripts. - Treat redacted placeholders (
[passhold:Item/field]) as opaque — never ask to reveal a secret whenhttp_request,run_command,fill_login, orget_totpcan complete the job directly. - Respect human approval gates: When a tool pauses for owner approval (on Chrome, Edge, Firefox, Android,
vault.keyrook.com, orpasshold approve), always pass a clear, truthfulreasondescribing the exact action. If the owner denies a request, stop and report the denial — never retry in a loop.
Tool Selection Guide
| Goal | Tool to call | Notes |
|---|---|---|
| Discover granted items & allowed hosts | list_items |
Metadata only; check uses, hosts, approval, and bounds. |
| Call an external REST/GraphQL API | http_request |
Injects the granted key on allowed hosts only, refuses redirects, and scrubs responses. |
| Run a CLI / SDK / script needing env vars | run_command |
shell: false, strips Passhold auth env vars, scrubs stdout and stderr. |
| Log into a website in the browser | fill_login |
Verifies target host and fills via local browser bridge; password never enters context. |
| Enter a 2FA / TOTP code during login | get_totp |
Pass item and target url; returns only the temporary 6-digit code and secondsRemaining, never the TOTP seed or otpauth:// URI. |
| Save a newly generated API key | save_api_key |
Prefer from_command (argv array) so stdout is sealed straight into Passhold Inbox without entering context. |
| Ask for access to an ungranted item | request_access |
Provide what and a concise reason for the owner. |
| Check machine identity & expiry | status |
Verify enrollment state and grant count. |
| Reveal a raw value (last resort only) | reveal |
Off by default; requires explicit grant and one-time owner approval. |
Setup Reference
- Local stdio MCP (OpenClaw, Hermes, Cursor, VS Code, standard clients):
passhold machine config --client openclaw # or: hermes, standard, cursor, vscode - Remote Streamable HTTP MCP (Cloud VMs, Grok Bot, Muse VM, remote connectors):
passhold mcp --http --port 3847 --expires 24h # Put an HTTPS tunnel or reverse proxy in front of 127.0.0.1:3847/mcp # and pass the printed Bearer token in Authorization: Bearer <token>. - Inside a Linux Cloud VM / container:
passhold machine config --client cloud
