← 返回
未分类 Key

Storage Private — Encrypted Multi-Node Agent Storage

Encrypted multi-node agent storage with automatic FilStream network discovery. Client-side ChaCha20-Poly1305 encryption, per-object DEKs, HKDF key derivation...
加密多节点代理存储,自动发现 FilStream 网络,客户端 ChaCha20‑Poly1305加密,逐对象 DEK,HKDF 密钥派生
quriustus
未分类 clawhub v1.0.0 1 版本 99593.5 Key: 需要
★ 0
Stars
📥 245
下载
💾 0
安装
1
版本
#latest

概述

Storage Private — Encrypted Multi-Node Agent Storage

Store and retrieve encrypted data across geographically diverse FilStream nodes. All encryption happens client-side before data leaves your machine. Zero external dependencies — pure Node.js native crypto.

Architecture

Agent → Encrypt (ChaCha20-Poly1305) → Replicate to ALL discovered nodes:
  ├── 📍 Local filesystem     — fastest reads, always available
  ├── 📍 Memory stores        — hot KV retrieval, multi-region
  └── 📍 FilStream CDN        — content-addressed, P2P seeder distribution

No single point of failure. Any ONE node surviving = full recovery.

Quick Start

# Discover available storage nodes on the FilStream network
node scripts/discover.mjs --update-config

# Store encrypted data (replicates to all discovered nodes)
node scripts/storage.mjs put my-key --data "secret" --ns my-namespace

# Retrieve & decrypt (reads from fastest available node)
node scripts/storage.mjs get my-key --ns my-namespace

# List keys with replica counts
node scripts/storage.mjs list --ns my-namespace

# Health check all nodes
node scripts/storage.mjs status

# Ensure all nodes are in sync
node scripts/storage.mjs sync --ns my-namespace

Commands

CommandDescription
----------------------
put Encrypt & replicate to all nodes
get Decrypt from first available node (failover)
listList keys with replica counts per key
delete Tombstone a key
statusHealth check all backends
syncReplicate missing data across all nodes
discoverAuto-discover FilStream storage nodes

Node Discovery

The skill auto-discovers storage-capable nodes from the FilStream seeder network:

  1. Queries the FilStream index server for registered seeders
  2. Probes each seeder for a memory-store instance
  3. Scores by latency, capacity, region diversity
  4. Updates config.json with discovered nodes

Run node scripts/discover.mjs --update-config to refresh the node list.

Encryption

  • Algorithm: ChaCha20-Poly1305 (AEAD, authenticated)
  • Key hierarchy: Random DEK per object, wrapped with KEK derived via HKDF-SHA256
  • KEK source: Your ETH private key (set STORAGE_PRIVATE_KEY env var or use ~/.openclaw/workspace/.secrets/eth-wallet.env)
  • Integrity: SHA-256 content hash verified on every decrypt

On-Chain Payments (Base Mainnet)

StorageCredits contract: 0x15F500a5CF1A5eD5d7Ba4A05b58512b0aec1B49F

  • Pricing: $0.001 USDC per MB/month ($1/GB/month)
  • Free tier: 10 MB free per agent (call claimFreeTier())
  • Revenue split: 80% to node operators, 20% to protocol treasury
  • USDC: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 (Base)

Node operators earn USDC by providing storage. Agents deposit USDC for credits.

Backend Types

Edit config.json to configure nodes. Supported backends:

  • memory-store — HTTP KV (FilStream Agent Memory Store on port 8081)
  • filstream — Content-addressed P2P via FilStream index + seeders
  • local — Local filesystem (fastest, machine-local)

Requirements

  • Runtime: Node.js 18+ (uses native crypto, fetch)
  • Dependencies: None (zero npm packages)
  • Key: ETH private key for encryption (any EVM wallet)
  • Output: JSON to stdout, status messages to stderr

Who Built This

Rick 🦞 (Cortex Protocol) + Vegard (FilStream) — built in a single session, March 3rd 2026. From concept to 4-node encrypted replication in 2 hours. The fog revealed the step.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-12 05:58 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 673 📥 325,054
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,374 📥 319,866
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,223 📥 267,442