jpskill.com
🛠️ 開発・MCP コミュニティ

erc-8004

ERC-8004を使って、イーサリアム上でAIエージェントの身元登録、プロフィール作成、NFT取得、評判設定などを行い、エージェントを検索可能にするための手続きを支援するSkill。

📜 元の英語説明(参考)

Register AI agents on Ethereum mainnet using ERC-8004 (Trustless Agents). Use when the user wants to register their agent identity on-chain, create an agent profile, claim an agent NFT, set up agent reputation, or make their agent discoverable. Handles bridging ETH to mainnet, IPFS upload, and on-chain registration.

🇯🇵 日本人クリエイター向け解説

一言でいうと

ERC-8004を使って、イーサリアム上でAIエージェントの身元登録、プロフィール作成、NFT取得、評判設定などを行い、エージェントを検索可能にするための手続きを支援するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o erc-8004.zip https://jpskill.com/download/8378.zip && unzip -o erc-8004.zip && rm erc-8004.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/8378.zip -OutFile "$d\erc-8004.zip"; Expand-Archive "$d\erc-8004.zip" -DestinationPath $d -Force; ri "$d\erc-8004.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して erc-8004.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → erc-8004 フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

ERC-8004: トラストレスエージェント

検証可能なオンチェーンIDであなたのAIエージェントをEthereumメインネットに登録し、発見可能にし、トラストシグナルを有効にします。

ERC-8004とは?

ERC-8004は、トラストレスなエージェントのIDと評判のためのEthereum標準です。

  • IDレジストリ - ERC-721ベースのエージェントID(あなたのエージェントはNFTを取得します!)
  • 評判レジストリ - 他のエージェント/ユーザーからのフィードバックとトラストシグナル
  • 検証レジストリ - エージェントの作業の第三者検証

ウェブサイト: https://www.8004.org 仕様: https://eips.ethereum.org/EIPS/eip-8004

コントラクトアドレス

チェーン IDレジストリ 評判レジストリ
Ethereum Mainnet 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 0x8004BAa17C55a88189AE136b182e5fdA19dE9b63
Sepolia Testnet 0x8004A818BFB912233c491871b3d84c89A494BD9e 0x8004B663056A597Dffe9eCcC1965A193B7388713

クイックスタート

1. エージェントを登録する

# 完全な登録(プロファイルを作成し、IPFSにアップロードし、オンチェーンで登録します)
./scripts/register.sh

# またはカスタム値を使用する場合
NAME="My Agent" \
DESCRIPTION="An AI agent that does cool stuff" \
IMAGE="https://example.com/avatar.png" \
./scripts/register.sh

2. ETHをメインネットにブリッジする(必要な場合)

# BaseからEthereumメインネットにETHをブリッジする
./scripts/bridge-to-mainnet.sh 0.01

3. エージェントプロファイルを更新する

# エージェントの登録ファイルを更新する
./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は不要) 登録JSONを任意のURLでホストします。

REGISTRATION_URL="https://myagent.xyz/agent.json" ./scripts/register-http.sh

オプション3:Pinata経由のIPFS

PINATA_JWT="your-jwt" ./scripts/register.sh

オプション4:Data 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"]
}

ワークフロー

  1. ETHをブリッジする(必要な場合)- Bankrを使用して、Base/L2からメインネットにETHをブリッジします
  2. プロファイルを作成する - エージェント情報を含む登録JSONファイルを生成します
  3. IPFSにアップロードする - Pinata(または他のプロバイダー)経由でファイルをピン留めします
  4. オンチェーンで登録する - Identity Registryでregister(agentURI)を呼び出します
  5. プロファイルを更新する - 必要に応じて、メタデータ、ウォレットを設定するか、URIを更新します

コスト

  • Gas: 登録には〜100-200k gas(gas価格に応じて〜$5-20)
  • IPFS: Pinataで無料の階層が利用可能(1GB)

SDKの使用

より高度な使用法については、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}`);

リンク

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

ERC-8004: Trustless Agents

Register your AI agent on Ethereum mainnet with a verifiable on-chain identity, making it discoverable and enabling trust signals.

What is ERC-8004?

ERC-8004 is an Ethereum standard for trustless agent identity and reputation:

  • Identity Registry - ERC-721 based agent IDs (your agent gets an NFT!)
  • Reputation Registry - Feedback and trust signals from other agents/users
  • Validation Registry - Third-party verification of agent work

Website: https://www.8004.org Spec: https://eips.ethereum.org/EIPS/eip-8004

Contract Addresses

Chain Identity Registry Reputation Registry
Ethereum Mainnet 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 0x8004BAa17C55a88189AE136b182e5fdA19dE9b63
Sepolia Testnet 0x8004A818BFB912233c491871b3d84c89A494BD9e 0x8004B663056A597Dffe9eCcC1965A193B7388713

Quick Start

1. Register Your Agent

# 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

2. Bridge ETH to Mainnet (if needed)

# Bridge ETH from Base to Ethereum mainnet
./scripts/bridge-to-mainnet.sh 0.01

3. Update Agent Profile

# Update your agent's registration file
./scripts/update-profile.sh <agent-id> <new-ipfs-uri>

Environment Variables

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

Registration Options

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

Registration File Format

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"]
}

Workflow

  1. Bridge ETH (if needed) - Use Bankr to bridge ETH from Base/L2 to mainnet
  2. Create Profile - Generate a registration JSON file with agent info
  3. Upload to IPFS - Pin the file via Pinata (or other provider)
  4. Register On-Chain - Call register(agentURI) on the Identity Registry
  5. Update Profile - Set metadata, wallet, or update URI as needed

Costs

  • Gas: ~100-200k gas for registration (~$5-20 depending on gas prices)
  • IPFS: Free tier available on Pinata (1GB)

Using the SDK

For 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}`);

Links