Install
openclaw skills install erc8004-registerRegister AI agents on-chain, update metadata, validate registrations, and auto-fix broken profiles via the ERC-8004 Identity Registry. Supports Base, Ethereum, Polygon, Monad, BNB.
openclaw skills install erc8004-registerRegister, update, validate, and fix agents on-chain via the ERC-8004 Identity Registry.
Register a new agent on-chain.
python scripts/register.py register --name "AgentName" --description "Description" [--image URL] [--chain base]
Options:
--name (required): Agent name--description (required): Agent description--image: Image URL (must be https://)--chain: Blockchain (base, ethereum, polygon, monad, bnb). Default: baseUpdate an existing agent's metadata.
python scripts/register.py update <agentId> [--name NAME] [--description DESC] [--image URL] [--add-service name=X,endpoint=Y] [--remove-service NAME] [--chain base]
Display agent information.
python scripts/register.py info <agentId> [--chain base]
Check registration for common issues.
python scripts/register.py validate <agentId> [--chain base]
Checks:
type fieldAuto-fix common registration issues.
python scripts/register.py fix <agentId> [--chain base] [--dry-run]
Auto-fixes:
type fieldregistrations arrayUse --dry-run to preview changes without applying.
Check all agents owned by your wallet.
python scripts/register.py self-check
Queries Agentscan for your agents, validates each, and prints a health report.
# 1. Register new agent
python scripts/register.py register --name "MyBot" --description "Trading assistant"
# 2. Validate the registration
python scripts/register.py validate 42 --chain base
# 3. Check initial reputation (from erc8004-reputation skill)
python scripts/reputation.py lookup 42 --chain base
# 4. Monitor for discovery (from erc8004-discover skill)
python scripts/discover.py info 42
# Run self-check to validate all your agents
python scripts/register.py self-check
# Fix any issues found
python scripts/register.py fix 42 --chain base
For automated monitoring, run self-check periodically:
# Cron: check health every hour
0 * * * * cd /path/to/skill && python scripts/register.py self-check >> /var/log/agent-health.log 2>&1
# Or in a script:
#!/bin/bash
python scripts/register.py self-check
if [ $? -ne 0 ]; then
echo "Agent health check failed!" | notify-send
fi
Set one of these environment variables:
export ERC8004_MNEMONIC="your twelve word mnemonic phrase here"
# OR
export ERC8004_PRIVATE_KEY="0x..."
Identity Registry: 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 (same on all chains)
| Chain | ID | Explorer |
|---|---|---|
| Base | 8453 | basescan.org |
| Ethereum | 1 | etherscan.io |
| Polygon | 137 | polygonscan.com |
| Monad | 143 | explorer.monad.xyz |
| BNB | 56 | bscscan.com |
pip install web3 eth-account