ERC-8004 identity, x402 payments, and arbitration protocol for autonomous agent commerce. The three rails for the machine economy.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install receipts-guard或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install receipts-guard⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/receipts-guard/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: receipts-guard description: ERC-8004 identity, x402 payments, and arbitration protocol for autonomous agent commerce. The three rails for the machine economy. metadata: {"openclaw":{"emoji":"⚖️","requires":{"anyBins":["node"]},"version":"0.7.1"}} ---
> "The rails for the machine economy."
ERC-8004 identity + x402 payments + arbitration protocol. The infrastructure for agent commerce.
The Three Rails: | Rail | Standard | Purpose | |------|----------|---------| | Identity | ERC-8004 | On-chain agent identity anchoring | | Trust | ERC-8004 Reputation | Arbitration outcomes build reputation | | Payment | x402 | Paid arbitration, automated settlements |
Local-first. Chain-anchored. Cloud-deployable. Security-hardened.
# === ARBITRATION FLOW ===
# 1. Create proposal
node capture.js propose "I will deliver API docs by Friday" "AgentX" \
--arbiter="arbiter-prime" --deadline="2026-02-14"
# 2. Accept proposal (as counterparty)
node capture.js accept --proposalId=prop_abc123
# 3. Fulfill agreement
node capture.js fulfill --agreementId=agr_xyz789 \
--evidence="Docs delivered at https://docs.example.com"
# --- OR if there's a dispute ---
# 4. Open arbitration
node capture.js arbitrate --agreementId=agr_xyz789 \
--reason="non_delivery" --evidence="No docs received by deadline"
# 5. Submit evidence (both parties)
node capture.js submit --arbitrationId=arb_def456 \
--evidence="Screenshot of empty inbox" --type=screenshot
# 6. Issue ruling (as arbiter)
node capture.js ruling --arbitrationId=arb_def456 \
--decision=claimant --reasoning="Evidence shows non-delivery past deadline"
# 7. View timeline
node capture.js timeline --agreementId=agr_xyz789
identity init - Create Identitynode capture.js identity init --namespace=remaster_io --name=receipts-guard \
--controller-twitter=@Remaster_io
Creates:
did:agent:: identity show - Display Identitynode capture.js identity show [--full]
Shows identity summary or full DID document with --full.
identity rotate - Rotate Keysnode capture.js identity rotate [--reason=scheduled|compromise|device_change]
identity verify - Verify Identity or Signature# Verify DID key chain
node capture.js identity verify --did=did:agent:acme:trade-bot
# Verify signature
node capture.js identity verify \
--signature="ed25519:xxx:timestamp" \
--termsHash="sha256:abc123..."
identity set-controller - Set Human Controllernode capture.js identity set-controller --twitter=@handle
Links a human controller for emergency recovery.
identity recover - Emergency Recoverynode capture.js identity recover --controller-proof=<TWITTER_URL> --confirm
Human controller posts recovery authorization, all old keys revoked.
identity publish - Publish DID Documentnode capture.js identity publish [--platform=moltbook|ipfs|local]
identity anchor - Anchor to ERC-8004 (v0.7.0)node capture.js identity anchor --chain=ethereum|base|sepolia
Registers identity on-chain to ERC-8004 Identity Registry:
RECEIPTS_WALLET_PRIVATE_KEY environment variableDeployed Registries: | Chain | Identity Registry | Status | |-------|-------------------|--------| | Ethereum | 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 | Live | | Sepolia | 0x8004A818BFB912233c491871b3d84c89A494BD9e | Testnet | | Base | Coming soon | TBD |
identity resolve - Resolve DID (v0.7.0)node capture.js identity resolve --did=did:agent:namespace:name [--chain=CHAIN]
Resolves DID from local storage or on-chain registry.
---
The ERC-8004 standard provides three registries for agent trust:
RECEIPTS integrates with existing registries while providing superior off-chain agreement lifecycle management.
Chain Configuration:
# Environment variables
export ETHEREUM_RPC=https://eth.llamarpc.com
export BASE_RPC=https://mainnet.base.org
export RECEIPTS_WALLET_PRIVATE_KEY=0x... # Never commit this!
---
x402 enables paid arbitration - arbiters get compensated for their work.
node capture.js propose "Service agreement" "counterparty" \
--arbiter="arbiter-prime" \
--arbitration-cost="10" \
--payment-token="USDC" \
--payment-chain="base" \
--payment-address="0x..." # Arbiter's address
# Without payment proof (fails if x402 required)
node capture.js arbitrate --agreementId=agr_xxx --reason="non_delivery"
# Error: Payment required: 10 USDC
# With payment proof
node capture.js arbitrate --agreementId=agr_xxx --reason="non_delivery" \
--evidence="..." --payment-proof="0x123..."
x402 Schema:
{
"x402": {
"arbitrationCost": "10",
"arbitrationToken": "USDC",
"arbitrationChain": 8453,
"paymentAddress": "0x...",
"paymentProtocol": "x402",
"version": "1.0"
}
}
---
Run RECEIPTS Guard as a persistent cloud agent.
node capture.js serve [--port=3000]
Public Endpoints (no auth):
GET / - Service infoGET /health - Health checkGET /identity - DID documentGET /identity/chains - Chain statusProtected Endpoints (auth required):
GET /list - List all recordsGET /proposals - List proposalsGET /agreements - List agreementsPOST /propose - Create proposalPOST /accept - Accept proposal (counterparty only)---
The HTTP server implements multiple security layers:
Option 1: API Key
# Generate a secure API key
export RECEIPTS_API_KEY=$(openssl rand -hex 32)
# Use in requests
curl -H "X-API-Key: $RECEIPTS_API_KEY" https://your-agent.fly.dev/list
Option 2: DID Request Signing
# Sign each request with your Ed25519 key
# Headers required:
# - X-DID: your DID (e.g., did:agent:namespace:name)
# - X-DID-Timestamp: Unix timestamp in milliseconds
# - X-DID-Signature: ed25519:BASE64URL_SIGNATURE:TIMESTAMP
...安装 Receipts Guard 后,可以对 AI 说这些话来触发它
Help me get started with Receipts Guard
Explains what Receipts Guard does, walks through the setup, and runs a quick demo based on your current project
Use Receipts Guard to eRC-8004 identity, x402 payments, and arbitration protocol for auto...
Invokes Receipts Guard with the right parameters and returns the result directly in the conversation
What can I do with Receipts Guard in my ai agent & automation workflow?
Lists the top use cases for Receipts Guard, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/receipts-guard/ 目录(个人级,所有项目可用),或 .claude/skills/receipts-guard/(项目级)。重启 AI 客户端后,用 /receipts-guard 主动调用,或让 AI 根据上下文自动发现并使用。
Receipts Guard 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Receipts Guard 可免费安装使用。请查阅仓库了解许可证信息。
ERC-8004 identity, x402 payments, and arbitration protocol for autonomous agent commerce. The three rails for the machine economy.
Receipts Guard 属于「AI Agent & Automation」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my ai agent & automation tasks using Receipts Guard
Identifies repetitive steps in your workflow and sets up Receipts Guard to handle them automatically