Side_Peace 🍒
Dead simple secret handoff from human to AI. No npm packages to trust — just Node.js built-ins.
Key security feature: Secret is written to a temp file, NEVER printed to stdout. This prevents secrets from appearing in chat logs or command output.
How It Works
- 1. Agent runs INLINECODE0
- Agent shares the URL with human
- Human opens URL in browser, pastes secret, submits
- Secret is saved to temp file (printed path only, not content)
- Agent reads file, uses secret, deletes file
Usage
CODEBLOCK0
Reading the Secret
After receiving, the secret is in the temp file:
CODEBLOCK1
Or one-liner:
CODEBLOCK2
Security
- - Zero dependencies — only Node.js built-ins
- Secret never in stdout — written to file with 0600 permissions
- Memory only until saved — temp file deleted after use
- One-time — server exits after receiving
- ~60 lines — fully auditable
Output
CODEBLOCK3
The secret is in the file. Read it, use it, delete it.
Side_Peace 🍒
极其简单的人类向AI秘密交接方案。无需信任任何npm包——仅使用Node.js内置模块。
关键安全特性: 秘密信息写入临时文件,绝不打印到标准输出。这可以防止秘密出现在聊天日志或命令输出中。
工作原理
- 1. 代理运行 node drop.js --label API Key
- 代理将URL分享给人类
- 人类在浏览器中打开URL,粘贴秘密信息并提交
- 秘密信息保存到临时文件(仅打印路径,不打印内容)
- 代理读取文件,使用秘密信息,删除文件
使用方法
bash
基础用法 - 秘密保存到随机临时文件
node skills/side-peace/drop.js --label CLAWHUB_TOKEN
自定义输出路径
node skills/side-peace/drop.js --label API_KEY --output /tmp/my-secret.txt
自定义端口
node skills/side-peace/drop.js --port 4000 --label TOKEN
读取秘密信息
接收后,秘密信息位于临时文件中:
bash
读取并使用(以clawhub为例)
SECRET=$(cat /tmp/side-peace-xxx.secret)
npx clawhub login --token $SECRET --no-browser
rm /tmp/side-peace-xxx.secret
或者一行命令:
bash
cat /tmp/side-peace-xxx.secret | xargs -I{} npx clawhub login --token {} --no-browser; rm /tmp/side-peace-xxx.secret
安全性
- - 零依赖 — 仅使用Node.js内置模块
- 秘密信息绝不输出到标准输出 — 以0600权限写入文件
- 仅内存暂存 — 使用后删除临时文件
- 一次性使用 — 接收后服务器退出
- 约60行代码 — 完全可审计
输出示例
🍒 Side_Peace 等待中...
标签: CLAWHUB_TOKEN
输出: /tmp/side-peace-a1b2c3d4.secret
本地: http://localhost:3000
网络: http://192.168.1.94:3000
等待秘密信息...
✓ 秘密信息已接收并保存。
文件: /tmp/side-peace-a1b2c3d4.secret
(出于安全考虑,秘密信息不会打印到标准输出)
秘密信息在文件中。读取它,使用它,删除它。