erc-8004 by bankrbot/openclaw-skills
npx skills add https://github.com/bankrbot/openclaw-skills --skill erc-8004在以太坊主网上注册您的 AI 智能体,获得可验证的链上身份,使其可被发现并支持信任信号。
ERC-8004 是一个用于无需信任的智能体身份和声誉的以太坊标准:
网站:https://www.8004.org 规范:https://eips.ethereum.org/EIPS/eip-8004
| 链 | 身份注册表 | 声誉注册表 |
|---|---|---|
| 以太坊主网 | 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 | 0x8004BAa17C55a88189AE136b182e5fdA19dE9b63 |
| Sepolia 测试网 | 0x8004A818BFB912233c491871b3d84c89A494BD9e |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
0x8004B663056A597Dffe9eCcC1965A193B7388713 |
# 完整注册(创建配置文件,上传到 IPFS,链上注册)
./scripts/register.sh
# 或者使用自定义值
NAME="My Agent" \
DESCRIPTION="An AI agent that does cool stuff" \
IMAGE="https://example.com/avatar.png" \
./scripts/register.sh
# 将 ETH 从 Base 桥接到以太坊主网
./scripts/bridge-to-mainnet.sh 0.01
# 更新您的智能体注册文件
./scripts/update-profile.sh <agent-id> <new-ipfs-uri>
| 变量 | 描述 | 必需 |
|---|---|---|
PINATA_JWT | 用于 IPFS 上传的 Pinata API JWT | 否(仅用于 IPFS) |
AGENT_NAME | 智能体显示名称 | 否(默认为钱包 ENS 或地址) |
AGENT_DESCRIPTION | 智能体描述 | 否 |
AGENT_IMAGE | 头像 URL | 否 |
选项 1:使用 8004.org 前端(最简单) 访问 https://www.8004.org 并通过 UI 注册 — 自动处理 IPFS。
选项 2:HTTP URL(无需 IPFS) 在任何 URL 托管您的注册 JSON 文件:
REGISTRATION_URL="https://myagent.xyz/agent.json" ./scripts/register-http.sh
选项 3:通过 Pinata 使用 IPFS
PINATA_JWT="your-jwt" ./scripts/register.sh
选项 4:数据 URI(完全链上) 将您的注册信息编码为 base64 — 无需外部托管:
./scripts/register-onchain.sh
您的智能体注册文件(存储在 IPFS 上)遵循以下结构:
{
"type": "https://eips.ethereum.org/EIPS/eip-8004#registration-v1",
"name": "My Agent",
"description": "An AI assistant for various tasks",
"image": "https://example.com/avatar.png",
"services": [
{
"name": "web",
"endpoint": "https://myagent.xyz/"
},
{
"name": "A2A",
"endpoint": "https://myagent.xyz/.well-known/agent-card.json",
"version": "0.3.0"
}
],
"x402Support": false,
"active": true,
"registrations": [
{
"agentId": 123,
"agentRegistry": "eip155:1:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432"
}
],
"supportedTrust": ["reputation"]
}
register(agentURI)对于更高级的用法,请安装 Agent0 SDK:
npm install agent0-sdk
import { SDK } from 'agent0-sdk';
const sdk = new SDK({
chainId: 1, // 以太坊主网
rpcUrl: process.env.ETH_RPC_URL,
privateKey: process.env.PRIVATE_KEY,
ipfs: 'pinata',
pinataJwt: process.env.PINATA_JWT
});
const agent = sdk.createAgent('My Agent', 'Description', 'https://image.url');
const result = await agent.registerIPFS();
console.log(`Registered: Agent ID ${result.agentId}`);
每周安装量
114
代码仓库
GitHub 星标数
1.0K
首次出现
2026年2月2日
安全审计
安装于
openclaw108
opencode94
codex87
gemini-cli85
cursor85
github-copilot84
Register your AI agent on Ethereum mainnet with a verifiable on-chain identity, making it discoverable and enabling trust signals.
ERC-8004 is an Ethereum standard for trustless agent identity and reputation:
Website: https://www.8004.org Spec: https://eips.ethereum.org/EIPS/eip-8004
| Chain | Identity Registry | Reputation Registry |
|---|---|---|
| Ethereum Mainnet | 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 | 0x8004BAa17C55a88189AE136b182e5fdA19dE9b63 |
| Sepolia Testnet | 0x8004A818BFB912233c491871b3d84c89A494BD9e | 0x8004B663056A597Dffe9eCcC1965A193B7388713 |
# Full registration (creates profile, uploads to IPFS, registers on-chain)
./scripts/register.sh
# Or with custom values
NAME="My Agent" \
DESCRIPTION="An AI agent that does cool stuff" \
IMAGE="https://example.com/avatar.png" \
./scripts/register.sh
# Bridge ETH from Base to Ethereum mainnet
./scripts/bridge-to-mainnet.sh 0.01
# Update your agent's registration file
./scripts/update-profile.sh <agent-id> <new-ipfs-uri>
| Variable | Description | Required |
|---|---|---|
PINATA_JWT | Pinata API JWT for IPFS uploads | No (only for IPFS) |
AGENT_NAME | Agent display name | No (defaults to wallet ENS or address) |
AGENT_DESCRIPTION | Agent description | No |
AGENT_IMAGE | Avatar URL | No |
Option 1: Use 8004.org frontend (easiest) Visit https://www.8004.org and register through the UI — handles IPFS automatically.
Option 2: HTTP URL (no IPFS needed) Host your registration JSON at any URL:
REGISTRATION_URL="https://myagent.xyz/agent.json" ./scripts/register-http.sh
Option 3: IPFS via Pinata
PINATA_JWT="your-jwt" ./scripts/register.sh
Option 4: Data URI (fully on-chain) Encode your registration as base64 — no external hosting needed:
./scripts/register-onchain.sh
Your agent's registration file (stored on IPFS) follows this structure:
{
"type": "https://eips.ethereum.org/EIPS/eip-8004#registration-v1",
"name": "My Agent",
"description": "An AI assistant for various tasks",
"image": "https://example.com/avatar.png",
"services": [
{
"name": "web",
"endpoint": "https://myagent.xyz/"
},
{
"name": "A2A",
"endpoint": "https://myagent.xyz/.well-known/agent-card.json",
"version": "0.3.0"
}
],
"x402Support": false,
"active": true,
"registrations": [
{
"agentId": 123,
"agentRegistry": "eip155:1:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432"
}
],
"supportedTrust": ["reputation"]
}
register(agentURI) on the Identity RegistryFor more advanced usage, install the Agent0 SDK:
npm install agent0-sdk
import { SDK } from 'agent0-sdk';
const sdk = new SDK({
chainId: 1, // Ethereum Mainnet
rpcUrl: process.env.ETH_RPC_URL,
privateKey: process.env.PRIVATE_KEY,
ipfs: 'pinata',
pinataJwt: process.env.PINATA_JWT
});
const agent = sdk.createAgent('My Agent', 'Description', 'https://image.url');
const result = await agent.registerIPFS();
console.log(`Registered: Agent ID ${result.agentId}`);
Weekly Installs
114
Repository
GitHub Stars
1.0K
First Seen
Feb 2, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykWarn
Installed on
openclaw108
opencode94
codex87
gemini-cli85
cursor85
github-copilot84
AI 代码实施计划编写技能 | 自动化开发任务分解与 TDD 流程规划工具
50,900 周安装