360 Secure SkillHub
360 安全技能中心

passhold-agents

该 Skill 指导代理使用 Passhold MCP 处理凭据:先列出已授权项,再按需调用外部 API、运行命令、填充网站登录、获取临时 TOTP 验证码或保存新密钥;强调不将明文凭据写入聊天、日志或配置文件,并在需要时请求人工审批。

分类:安全
keyrook
keyrook
热度 5.06
最近更新 2026-11-29 21:17:48

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add keyrook/passhold-agents
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
passhold-agents
description
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.

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

  1. Never ask the user to paste raw API keys, passwords, or 2FA secrets into chat.
  2. Always inspect what is already granted first by calling list_items (returns metadata only, never values).
  3. Never write secrets into .env, config files, logs, or transcripts.
  4. Treat redacted placeholders ([passhold:Item/field]) as opaque — never ask to reveal a secret when http_request, run_command, fill_login, or get_totp can complete the job directly.
  5. Respect human approval gates: When a tool pauses for owner approval (on Chrome, Edge, Firefox, Android, vault.keyrook.com, or passhold approve), always pass a clear, truthful reason describing 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