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僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

本機 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 設定指令連接用戶端。未宣告帳號、密碼庫、環境變數或標頭。
安裝前請注意
密鑰保存在工具程序的記憶體中,直到被忘卻或程序結束,已填入的密鑰沒有自動到期時間。已核准的 API 與已核准的指令會收到真實值,因此被核准的指令可能洩漏密鑰。可選的 Codex 原生核准模式可能不需人工點擊即自動授權。偵測掛鉤無法清除已存在用戶端紀錄中的值,切勿將密鑰貼進對話。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Secret Handoff,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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.

sh
secrethandoff versionsecrethandoff setupsecrethandoff doctor

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:

sh
claude plugin marketplace add geland/secrethandoff-integrationsclaude plugin install secrethandoff@secrethandoff

Codex

sh
codex plugin marketplace add geland/secrethandoff-integrationscodex plugin add secrethandoff@secrethandoff

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:

bash
codex plugin add secrethandoff@secrethandoffpython3 scripts/configure_codex_approval.py codex \  --plugin-dir ~/.codex/plugins/cache/secrethandoff/secrethandoff/0.0.2

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.json pins all six platform archives and six MCPB bundle hashes. Plugins start the binary on PATH; metadata does not replace or enforce that binary. Check secrethandoff version before 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:

sh
python scripts/test_release.pypython scripts/validate.py --releasepython scripts/package.py --releasepython scripts/test_package.py

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
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:該軟體包類型無法在沙箱中執行。

版本歷史

1
  1. v0.0.2最新Oct 21, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分