
SaturnZap
io.github.lqwdtech由 GitHub 帳號 lqwdtech 發布v1.4.1更新於 Oct 24, 2026
Non-custodial Bitcoin Lightning (LDK) wallet for AI agents — pays L402 APIs from CLI or MCP.
概覽
讓助理執行自架的比特幣閃電網路錢包:查看餘額、開通道、收付款,並支付受 L402 保護的 API。
- 可以做什麼
- SaturnZap 是非託管的閃電網路錢包,會在使用者機器上執行自己的 LDK 節點,並透過 stdio 提供 25 個 MCP 工具。工具涵蓋節點生命週期、錢包餘額與位址、對等節點、通道、BOLT11 發票與付款、keysend、L402 fetch(自動偵測 HTTP 402、支付發票、重試請求)以及流動性管理。所有指令都輸出結構化 JSON,也可直接呼叫命令列工具。
- 適用情境
- 當助理需要在沒有託管方的情況下持有並花用比特幣(閃電網路),或需要自主支付受 L402 保護的 API 時使用。適合需要機器可讀輸出、不需互動提示的代理執行環境與自動化流程。
- 執行需求
- 桌面本機程序:Python 3.12 與 saturnzap 套件(uv 或 pip;ldk-node 的 wheel 來自 GitHub 發布而非 PyPI)。需要環境變數 SZ_PASSPHRASE 解密本機錢包種子,需要對外網路連線以進行 Esplora 鏈同步與連接對等節點,並需要鏈上或閃電資金來開啟通道。選用:SZ_MCP_MAX_SPEND_SATS、SZ_MCP_DAILY_SPEND_SATS、SZ_REGION、SZ_MAINNET_CONFIRM。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 SaturnZap,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
A lightweight, CLI-first, non-custodial Lightning Network wallet built for autonomous AI agents.
Self-sovereign. Runs its own Lightning node. No full Bitcoin node required.
[CI] [PyPI] [Python versions] [License: MIT]
Or install with uv tool directly
The --find-links flag is required because ldk-node==0.7.0.post1 is not yet on PyPI;
the SaturnZap GitHub Release ships the vendored wheel.
What is SaturnZap?
SaturnZap is an open-source Lightning wallet designed from the ground up for AI agents operating without human supervision. The agent installs SaturnZap, initializes its own Lightning node, opens channels to any peer on the network, sends and receives Bitcoin payments, and autonomously pays for L402-gated APIs.
SaturnZap is a CLI tool. It is not a hosted wallet, not a custodial service, and not a web application. Keys live on the agent's machine. The agent IS the Lightning node.
Two ways to integrate:
- CLI — call
szcommands from any language, parse JSON from stdout - MCP Server — connect AI agents directly via Model Context Protocol (stdio)
Documentation: See the docs/ folder for detailed guides on getting started, configuration, MCP server integration, architecture, and JSON API reference.
Business Model
SaturnZap has two layers:
CLI — Open Source (MIT)
The sz command-line tool is free and open source under the MIT license. Anyone can
install it, fork it, audit it, and build on it. There is no licensing fee, no API key
required to use the software itself, and no telemetry.
LQWD (LSP)
SaturnZap ships pre-configured to use LQWD Technologies as its default Lightning Service Provider (LSP). LQWD operates 18 Lightning nodes across 18 countries with deep global channel liquidity.
When an agent uses LQWD's infrastructure, LQWD earns through:
- Routing fees — sats earned as payments route through LQWD nodes
- Channel leasing — fees for opening and providing inbound liquidity to agents
- Managed connectivity — premium peering and reliability for agents that need it
LQWD is the default, not a requirement. Agents can open channels to any node on the Lightning Network. SaturnZap never enforces LQWD usage. LQWD competes on quality — 18-country coverage, deep liquidity, fast channel opens — not on lock-in.
This model mirrors how open-source software with cloud backends works: the tool is free, the infrastructure is the business.
Key Properties
- Non-custodial — BIP39 seed lives encrypted on the agent's machine. SaturnZap never holds, transmits, or has access to private keys.
- No full Bitcoin node — Esplora REST API provides chain data with automatic fallback (LQWD → blockstream.info → mempool.space). No bitcoind required.
- Peer-agnostic — Open channels to any Lightning node. LQWD is a smart default with global reach, but the agent controls its own peer relationships entirely.
- JSON-first — Every command writes structured JSON to stdout. Errors go to stderr. Designed for machine consumption from day one.
- MCP-native — Built-in MCP server exposes 25 tools over stdio. Connect Claude, Cursor, VS Code, or any MCP-compatible agent with a single config block.
- Autonomous — No interactive prompts in normal operation. Designed to run
inside agent runtimes, shell scripts, and orchestration pipelines. (Mainnet
spending commands prompt for confirmation unless
--yesis passed.)
Architecture
Full architecture details: docs/architecture.md
Component Map
Key Design Decisions
Unix Domain Socket IPC
The daemon (sz start) owns the LDK node and exposes 23 methods over a Unix
Domain Socket at ~/.local/share/saturnzap/<network>/sz.sock. CLI commands, the MCP
server, and OpenClaw automatically detect the daemon and route through IPC — no port
conflicts, no database locks. If no daemon is running, commands fall back to starting
an ephemeral node.
Esplora chain sync with fallback
LDK Node syncs chain data via Esplora (block explorer REST API). No external Bitcoin node is needed. SaturnZap ships with a fallback chain — if the primary Esplora server is unreachable, it automatically probes alternatives (LQWD, blockstream.info, mempool.space) and connects to the first healthy endpoint. First sync takes a few minutes on a fresh install; subsequent starts are near-instant.
LQWD as default LSP
On mainnet, fresh installs peer with LQWD-AI-Grid by default — LQWD's
agent-focused LSP node that supports LSPS1 and LSPS2 (JIT channels). The node
auto-opens a channel back on first peer contact, so a new wallet can start
receiving inbound liquidity without needing on-chain funds first. The 18-region
geographic fleet is still embedded and available: set SZ_REGION=NEAREST to
fall back to timezone-based selection (e.g. LQWD-England from UTC, LQWD-Japan
from JST), or SZ_REGION=CA / --region CA to pin a specific region.
Peer-agnostic after init
After the initial channel, agents use standard Lightning channel open flows to peer with anyone. SaturnZap has no routing logic that artificially prefers LQWD — Lightning pathfinding selects the best route. LQWD nodes appear as attractive routes naturally because of their connectivity and capacity across 18 countries.
JSON-first, non-interactive by default
All commands are designed for non-interactive execution. No spinners that break pipe
parsing. Pass --pretty for human-readable output in a TTY. Default is always clean
JSON.
One exception for safety: mainnet spending commands (send, pay, keysend,
channels open) show a [y/N] confirmation. Skip it with --yes or
SZ_MAINNET_CONFIRM=yes in automation. Signet and testnet never prompt.
Autonomous channel management
SaturnZap monitors channel health. When configured, it automatically opens new channels when outbound liquidity drops below a threshold, and requests inbound liquidity from the configured LSP when needed. Agents can run indefinitely without manual intervention.
Technology Stack
LQWD Node Directory
Embedded in SaturnZap as trusted default peers. On sz init or sz channels open --lsp lqwd,
the nearest node is auto-selected by comparing the system's UTC offset against each
node's timezone — smallest offset difference wins. Override with SZ_REGION env var or
--region flag. Full pubkeys and connection strings are in src/saturnzap/lqwd.py.
Full pubkeys and host:port connection strings are in src/saturnzap/lqwd.py.
Signet/testnet node details maintained separately for development.
CLI Reference
Full JSON API reference: docs/json-api-reference.md
Binary: sz
All commands output JSON to stdout. Errors exit with code 1, written to stderr.
Global options:
Node
Wallet
Peers
Config
Channels
Payments
L402 — Autonomous API Payments
Liquidity
Service Management
Once installed, the LDK node stays up across reboots and every sz command routes
through the daemon's IPC socket — no per-command startup overhead.
MCP Server
Or use the standalone entry point:
Agent configuration (Claude Desktop, Cursor, VS Code, etc.):
The MCP server exposes 25 tools covering node lifecycle, wallet, peers, channels,
payments, L402 fetch, and liquidity management. Set SZ_MCP_MAX_SPEND_SATS to
adjust its default 1,000-sat per-request ceiling; SZ_MCP_DAILY_SPEND_SATS
adjusts the persistent 10,000-sat rolling daily ceiling. Caps include routing fees
and follow requests through the daemon. New MCP wallets require a private
operator-configured mnemonic backup, and sweeps require explicit permission.
See spending policy and the
1.4.0 upgrade guide.
JSON Output Format
sz balance
sz pay
sz fetch (L402 flow)
Error (any command)
Exit Codes
Project Structure
Development Environment
Droplet Setup
Install from PyPI
Development Phases
Phase 1 — Node Foundation ✅
sz init, sz start, sz stop, sz status
BIP39 seed generation, encrypted storage, LDK Node startup, Esplora chain sync, auto-peer with nearest LQWD node, JSON output infrastructure.
Phase 2 — Channel Management ✅
sz channels, sz peers, sz address, sz balance
Open channels to any node. LQWD LSP-assisted channel opens. LQWD node directory embedded (18 regions, timezone-based auto-selection). Channels are announced to the public gossip graph by default when the node is reachable from the internet, turning agents into public routing nodes automatically. Channel list and close.
Phase 3 — Payments ✅
sz invoice, sz pay, sz keysend, sz transactions
Full BOLT11 send and receive. Variable-amount invoices. Keysend. Transaction history with sorting and pagination.
Phase 4 — L402 ✅
sz fetch
HTTP client with 402 detection, invoice extraction, auto-pay, request retry. Per-request spending caps. Token caching to avoid re-paying the same resource.
Phase 5 — Liquidity Intelligence ✅
sz liquidity
Channel health monitoring with 0-100 scoring. Actionable recommendations. Inbound liquidity requests via LQWD. Geography-aware peer selection across 18 regions.
Phase 6 — Packaging and Integration ✅
pip install saturnzap / uv add saturnzap / sz mcp
MCP server with 25 tools. Esplora fallback chain. GitHub Actions CI/CD. PyPI packaging. OpenClaw skill definition. Security scanner (Grade A+).
Phase 7 — Mainnet Support ✅
sz --network bitcoin
Network selection via CLI flag (--network signet|testnet|bitcoin), config.toml, or
default. Network-namespaced data directories isolate wallets per network. Real LQWD
mainnet node directory (18 nodes). Mainnet safety confirmation prompt on spending
commands, skippable with --yes flag or SZ_MAINNET_CONFIRM=yes. Network field
included in all JSON responses.
Upcoming
- PyPI publish (trusted publisher workflow ready)
- Docker image
- OpenClaw ClawHub listing
Responsible Use
SaturnZap is non-custodial software. You hold your own keys, and you are solely responsible for your funds. It is provided under the MIT license on an "as is" basis — the usual open-source terms apply. A few practical suggestions:
- Start with small amounts on mainnet while you get comfortable with the tooling.
- Back up your seed phrase somewhere safe and offline. Without it, there is no recovery path.
- Use
--network signetfor development and integration testing — signet coins are free and isolated from your mainnet wallet. - Set spending caps (
--max-sats,SZ_CLI_MAX_SPEND_SATS,SZ_MCP_MAX_SPEND_SATS) when running autonomous agents.
See SECURITY.md for the threat model and disclosure policy.
License
MIT License. See LICENSE.
The SaturnZap CLI is free and open source. LQWD infrastructure services are commercial. Using SaturnZap with non-LQWD peers requires no agreement with LQWD Technologies.
About LQWD
LQWD Technologies Corp (TSXV: LQWD | OTCQX: LQWDF) is a publicly traded Lightning Network infrastructure company. LQWD operates 18 Lightning nodes across 18 countries, providing routing infrastructure, liquidity services, and LSP connectivity for agents and developers building on Bitcoin's Lightning Network.
- Corporate: https://lqwdtech.com
- Agent endpoint: https://lqwd.ai
- Network: 18 nodes, 18 countries, 1,600+ channels
來源:README.md,提交 6df9882
工具
0版本歷史
2- v1.4.1最新Sep 26, 2026
- v1.3.2Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分