
Secret Handoff
io.github.geland由 GitHub 账号 geland 发布v0.0.2更新于 Nov 4, 2026
Let agents use temporary secrets without receiving their values in chat. Local stdio; Node 22+.
概览
本地 stdio MCP 工具,让智能体使用临时密码、令牌和一次性验证码,而无需在对话中暴露其值。
- 可以做什么
- 通过本地私密浏览器页面请求临时密钥,并向用户说明智能体为何需要访问
- 在同一页面上按单一策略请求 2 至 8 个具名凭据组成的凭据组
- 批准范围很窄的 API 主机、方法和路径,让智能体以引用方式使用密钥并获得脱敏结果
- 在已批准的密钥下运行命令,并在任务完成后遗忘密钥或整个凭据组
- 通过配套 CLI 与插件检查并配置 Claude Code 和 Codex 的本地环境
- 适用场景
- 当智能体需要临时凭据、API 令牌或一次性验证码来完成任务,而你不想把值粘贴到对话中或存入密码库时适用。适合在桌面端使用 Claude Code 或 Codex、希望每次请求都在浏览器中批准密钥用途的用户。
- 运行要求
- 作为用户机器上的本地进程运行:需先安装 Secret Handoff 0.0.2 二进制文件,并确保客户端继承的 PATH 中包含它;需要 Node 22+。通过 Claude Code 或 Codex 插件及 CLI 设置命令连接客户端。未声明账户、密码库、环境变量或请求头。
安装
在 SourceWeft 中
- 打开 控制台中的 Secret Handoff,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Secret Handoff for Claude Code and Codex
Give your agent access with a sealed secret.
Let your agent use temporary passwords, tokens, and one-time codes without putting their values in the chat. The local tool opens a private browser page, shows why the agent needs access, and applies secrets to requests you approve. No vault to configure. No Secret Handoff account.
This repository publishes the Claude Code and Codex plugins for the signed Secret Handoff 0.0.2 release. It includes the skill, local stdio MCP configuration, Claude detection hooks, and a status-only Claude card. Secret entry stays in your browser. These are repository plugins, not claims of vendor-curated directory approval.
Install
Download and install the local tool first.
Choose binary 0.0.2. The website installer verifies its archive checksum and
installs the binary. Run secrethandoff setup below to connect Claude Code and
Codex when their CLIs are on PATH.
Expected version: 0.0.2. In the project where your agent works, run
secrethandoff init to add credential guidance. Start a new agent session.
Claude Code
If you prefer to install the plugin yourself after installing the binary:
Codex
Restart the client or start a fresh session after installation. The binary must
be on the PATH inherited by the client, including when launching a desktop app.
secrethandoff doctor checks the local setup.
For a pinned marketplace, Codex accepts
codex plugin marketplace add geland/secrethandoff-integrations --ref v0.0.2.
Claude Code accepts the Git source
https://github.com/geland/secrethandoff-integrations.git#v0.0.2 with
claude plugin marketplace add. The release ZIP is also available for review.
Use
Ask your agent: “Use Secret Handoff for the temporary credential this task needs.” Enter the value only on the Secret Handoff browser page. Approve a narrow API host, method, and path. The agent uses a reference and receives redacted results. Ask the agent to forget the secret when the task is done.
Secrets live in the tool process's memory until forgotten or the process exits.
Filled secrets do not have an automatic expiry timer. Approved APIs receive the
value. run_with_secret requires browser command approval by default; an approved
command receives the value and can leak it. Owners can opt into verified Claude
Code native permission prompts or Codex approval settings; Codex settings may
authorize automatically. These modes do not change how secrets are entered.
Claude detection hooks can block some accidental pastes before they reach the model. They cannot erase a value already saved in the client's local transcript. Never paste secrets into chat. Read the security boundaries.
Opt-in Codex command approval
With the supported binary and stable Codex 0.155.1 in the 0.155 series, or the
exact desktop build 0.162.0-alpha.17.2, the owner can
choose native host-policy authorization. It follows the owner's settings,
including allow rules, hooks, and automatic review; a human click is not required
in that mode. Browser approval remains the distribution default. Secret entry
always stays on the isolated Secret Handoff page.
From a checkout of this repository, reload the plugin, run the owner opt-in helper, then start a fresh chat. The helper is not included in the review ZIP:
The helper validates and edits only the installed mcp.json and .mcp.json
launch environment. It does not change host policies, reviewer, or hooks.
Reinstallation resets the opt-in; rerun it after reload. Use browser instead
of codex to restore browser command approval. Agents may apply it only when
explicitly instructed by the owner.
python3 scripts/check_codex_approval.py tests live allow/deny delivery with a
harmless server. python3 scripts/check_codex_approval.py --installed-plugin
checks that the real cached plugin starts with native mode and can list a new
empty store. Both use child-only isolation and no secrets. Pass --codex-bin /absolute/path/to/codex
to either check to validate the desktop bundled executable instead of the terminal CLI. Run
python3 -m unittest discover -s tests -p test_codex_approval_config.py for helper
preservation and refusal tests. Desktop prompt rendering needs a separate
owner-run dummy test. Command results report client_policy / host_policy,
never a claim that a human clicked.
Grouped credentials
request_secrets asks for 2–8 credentials on one local browser page. A group name
identifies the request; fields have separate names and optional labels. One policy
applies to every field, and all values become ready together. Wait using the group
name. Forgetting the group or any member erases all members. Phone/headless relay
fill is currently unsupported for groups. Existing request_secret calls still
collect one value. This feature does not change command approval settings.
Release scope
- Local handoffs for Claude Code and Codex, using
secrethandoff mcp. - Phone and remote relay handoffs are not enabled on the public service.
- One-time reveal links remain available separately at Share a secret.
- Other client configurations and listing drafts are retained for later testing; they are not published marketplace listings or verified host support claims.
release-lock.jsonpins all six platform archives and six MCPB bundle hashes. Plugins start the binary on PATH; metadata does not replace or enforce that binary. Checksecrethandoff versionbefore use. Source and release provenance are available in the binary repository.
Development and validation
Use Python 3.11+ and Node 24. Install requirements-review.txt in a virtual
environment, then run:
tests/card.test.tsx runs with the Claude mod test runner.
tests/card-state.test.mjs runs with Node and TypeScript available through
SECRETHANDOFF_TEST_TYPESCRIPT. See 0.0.2 release status,
agent evals, and contributor guidance.
来源:README.md,提交 ff815bd
工具
0版本历史
1- v0.0.2最新Oct 21, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分