passhold-agents
Use Passhold Agents MCP tools to call external APIs, run commands with secrets, fill website logins, obtain short-lived 2FA (TOTP) codes, and seal newly provisioned keys into the owner's inbox without ever asking for or storing plaintext credentials in chat, prompts, or .env files.
Latest: v0.6.0
Version 0.6.0
- Added guidance for using Passhold tools to call APIs, run commands, log in to websites, and obtain temporary 2FA codes without exposing credentials in chat or files.
- Added workflows for discovering granted items, requesting access, checking machine status, and securely saving newly generated API keys.
- Clarified human approval requirements, including stopping after a denial and providing a truthful reason for approval requests.
- Added setup instructions for local and remote MCP connections.
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):
sh passhold machine config --client openclaw # or: hermes, standard, cursor, vscode - Remote Streamable HTTP MCP (Cloud VMs, Grok Bot, Muse VM, remote connectors):
sh 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:
sh passhold machine config --client cloud
