The OpenClaw entry point for ERC-8004 agent identity and reputation. Register agents on-chain, query identities, give and receive feedback ratings.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install erc-800claw或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install erc-800claw⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/erc-800claw/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: erc-800claw description: The OpenClaw entry point for ERC-8004 agent identity and reputation. Register agents on-chain, query identities, give and receive feedback ratings. metadata: {"openclaw":{"emoji":"🪪","requires":{"anyBins":["node","npx","python3","pip"]}}} ---
Your entry point into ERC-8004 - the on-chain identity, reputation, and validation standard for autonomous agents.
ERC-8004 is an open protocol enabling verifiable agent identity and reputation on Ethereum. Agents can register identities (ERC-721 NFTs), receive and give reputation feedback, and optionally verify their capabilities through validators. ERC-800Claw, built by Primer, provides simple APIs for interacting with the protocol.
Use ERC-800Claw when:
npm install erc-800claw
pip install erc-800claw
| User Says/Asks | What to Do | |----------------|------------| | "Look up agent #123" | Run erc-800claw agent 123 to get details | | "Does agent 42 exist?" | Run erc-800claw exists 42 | | "How many agents does 0x... own?" | Run erc-800claw owner 0x... | | "Register my agent" | Run erc-800claw register --name "Name" (requires PRIVATE_KEY env var) | | "What networks are supported?" | Run erc-800claw networks | | "Show contract addresses" | Run erc-800claw contracts |
| Command | Description | |---------|-------------| | erc-800claw agent | Get agent details by ID | | erc-800claw exists | Check if an agent exists | | erc-800claw owner | Get agent count for an address | | erc-800claw register | Register a new agent (requires PRIVATE_KEY) | | erc-800claw networks | List supported networks | | erc-800claw contracts [network] | Show contract addresses |
--network, -n - Network to use (mainnet, sepolia). Default: mainnet--json, -j - Output as JSON$ erc-800claw agent 1
Agent #1 (mainnet)
────────────────────────────────────────
Owner: 0x1234...abcd
URI: data:application/json;base64,...
Name: My Agent
About: An autonomous agent for...
Explorer: https://etherscan.io/nft/0x8004.../1
$ erc-800claw exists 100
Agent 100 exists on mainnet
$ erc-800claw owner 0x1234...
Address 0x1234... owns 3 agent(s) on mainnet
$ PRIVATE_KEY=0x... erc-800claw register --name "My Agent" --network sepolia
Agent Registered on sepolia!
────────────────────────────────────────
Agent ID: 42
Owner: 0x1234...abcd
Tx: 0xabc123...
Explorer: https://sepolia.etherscan.io/nft/0x8004.../42
ERC-8004 provides three on-chain registries:
The flow:
const { createClient } = require('erc-800claw');
const client = createClient({ network: 'mainnet' });
// Get agent by ID
const agent = await client.getAgent(1);
console.log(agent);
// {
// agentId: 1,
// tokenURI: 'data:application/json;base64,...',
// owner: '0x...',
// metadata: { name: 'My Agent', description: '...' },
// explorerUrl: 'https://etherscan.io/...'
// }
// Check if agent exists
const exists = await client.agentExists(42);
// Get agent count for address
const count = await client.getAgentCount('0x...');
// Register a new agent (no IPFS needed - uses data URI!)
const result = await client.registerAgent(process.env.PRIVATE_KEY, {
name: 'My Autonomous Agent',
description: 'Handles customer support',
services: [{ name: 'support', endpoint: 'https://myagent.com/api' }]
});
console.log(`Registered agent #${result.agentId}`);
// Give feedback to an agent
await client.giveFeedback(process.env.PRIVATE_KEY, agentId, {
value: 4.5, // Score out of 5
decimals: 1,
tag1: 'support',
tag2: 'fast'
});
from erc800claw import create_client
import os
client = create_client(network='mainnet')
# Get agent by ID
agent = client.get_agent(1)
print(agent)
# {
# 'agent_id': 1,
# 'token_uri': 'data:application/json;base64,...',
# 'owner': '0x...',
# 'metadata': {'name': 'My Agent', 'description': '...'},
# 'explorer_url': 'https://etherscan.io/...'
# }
# Check if agent exists
exists = client.agent_exists(42)
# Get agent count for address
count = client.get_agent_count('0x...')
# Register a new agent (no IPFS needed - uses data URI!)
result = client.register_agent(
private_key=os.environ['PRIVATE_KEY'],
name='My Autonomous Agent',
description='Handles customer support',
services=[{'name': 'support', 'endpoint': 'https://myagent.com/api'}]
)
print(f"Registered agent #{result['agent_id']}")
# Give feedback to an agent
client.give_feedback(
private_key=os.environ['PRIVATE_KEY'],
agent_id=agent_id,
value=4.5, # Score out of 5
decimals=1,
tag1='support',
tag2='fast'
)
Agent metadata follows a standard schema:
{
"name": "My Agent",
"description": "What my agent does",
"image": "https://example.com/avatar.png",
"services": [
{
"name": "api",
"endpoint": "https://myagent.com/api",
"description": "Main API endpoint"
}
],
"supported_trust": ["reputation", "validation"]
}
The SDK automatically encodes this as a data URI - no IPFS upload required.
ERC-800Claw works with xClaw02 (x402 payments) to enable paid agent services:
See the xClaw02 skill for payment setup.
| Network | Chain ID | Status | |---------|----------|--------| | Ethereum Mainnet | 1 | Live | | Sepolia Testnet | 11155111 | Live |
0x8004A169FB4a3325136EB29fA0ceB6D2e539a4320x8004BAa17C55a88189AE136b182e5fdA19dE9b630x8004A818BFB912233c491871b3d84c89A494BD9e0x8004B663056A597Dffe9eCcC1965A193B7388713| Variable | Format | Description | |----------|--------|-------------| | PRIVATE_KEY | 0x + 64 hex chars | Wallet private key (required for registration/feedback) | | ERC8004_NETWORK | mainnet, sepolia | Default network (default: mainnet) | | ERC8004_RPC_URL | URL | Custom RPC endpoint |
| Error | Meaning | What to Do | |-------|---------|------------| | Agent not found | No agent with that ID | Verify the agent ID is correct | | Agent already exists | Token already minted | Each agent ID is unique | | Not the owner | Can't modify other's agents | Only owner can update agent metadata | | Invalid address | Malformed Ethereum address | Check address format (0x + 40 hex chars) |
0x followed by 64 hexadecimal characters...
安装 ERC-800Claw 后,可以对 AI 说这些话来触发它
Help me get started with ERC-800Claw
Explains what ERC-800Claw does, walks through the setup, and runs a quick demo based on your current project
Use ERC-800Claw to the OpenClaw entry point for ERC-8004 agent identity and reputation
Invokes ERC-800Claw with the right parameters and returns the result directly in the conversation
What can I do with ERC-800Claw in my data & analytics workflow?
Lists the top use cases for ERC-800Claw, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/erc-800claw/ 目录(个人级,所有项目可用),或 .claude/skills/erc-800claw/(项目级)。重启 AI 客户端后,用 /erc-800claw 主动调用,或让 AI 根据上下文自动发现并使用。
ERC-800Claw 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
ERC-800Claw 可免费安装使用。请查阅仓库了解许可证信息。
The OpenClaw entry point for ERC-8004 agent identity and reputation. Register agents on-chain, query identities, give and receive feedback ratings.
ERC-800Claw 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using ERC-800Claw
Identifies repetitive steps in your workflow and sets up ERC-800Claw to handle them automatically