360 Secure SkillHub
360 安全技能中心

safeTok ↔ OpenClaw Bridge

通过 Gateway WebSocket API 把 safeTok 的 NIP-44 加密私信接入 OpenClaw:收到的私信路由到专用会话,助理回复加密后发布回 Nostr 中继。需要 Node.js ≥ 22、运行中的 OpenClaw 网关和手机上的 safeTok。

分类:协作
ductapecode
ductapecode
热度 12.95
最近更新 2026-06-26 08:55:43

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add ductapecode/safetok-bridge
兼容性
OpenClaw 专属
联网要求
需要联网
数据出网
必须出网
Metadata
name
safetok-bridge
description
Connect safeTok Nostr DMs to your OpenClaw agent. Use OpenClaw with Claude OAuth — no Anthropic API key needed. Communicate via safeTok NIP-44 encrypted DMs from your phone.
metadata
{"openclaw":{"emoji":"🔐"}}

safeTok ↔ OpenClaw Bridge

Want to use OpenClaw with Claude OAuth (no API key) and talk to your agent from your phone? This bridge enables two things:

  1. Use OpenClaw with Claude OAuth — no Anthropic API key needed.
  2. Communicate with your OpenClaw agent via Nostr — specifically safeTok NIP-44 DMs.

safeTok DMs appearing in OpenClaw Control UI

A bidirectional DM bridge connecting safeTok to OpenClaw via the Gateway WebSocket API. Incoming safeTok DMs are routed to a dedicated OpenClaw session; the assistant's reply is encrypted and published back to the Nostr relays — end-to-end encrypted, decentralized, no middleman.

Setup

See README.md for full setup instructions.

Quick start

export OPENCLAW_TOKEN="your-gateway-token"
export SAFETOK_PRIVATE_KEY="your-hex-priv-key"
npm install @noble/curves
node bridge.mjs

Files

File Purpose
bridge.mjs Main bridge process
nip44.mjs safeTok NIP-44 crypto primitives (encrypt/decrypt)

Requirements

  • Node.js ≥ 22
  • Running OpenClaw gateway
  • safeTok installed on your phone