← Back to Skills Marketplace
aetherstacey

Erc8004 Register

by aether · GitHub ↗ · v1.1.1
cross-platform ⚠ suspicious
1161
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install erc8004-register
Description
Register 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.
README (SKILL.md)

ERC-8004 Registration Skill

Register, update, validate, and fix agents on-chain via the ERC-8004 Identity Registry.

Use This When...

  • "Register my agent on-chain"
  • "I need to create a new ERC-8004 agent"
  • "Update my agent's metadata"
  • "Check if my agent registration is valid"
  • "Fix my agent's registration issues"
  • "Show my agent's on-chain info"
  • "What agents do I own?"
  • "Health check my agents"

Commands

register

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: base

update

Update an existing agent's metadata.

python scripts/register.py update \x3CagentId> [--name NAME] [--description DESC] [--image URL] [--add-service name=X,endpoint=Y] [--remove-service NAME] [--chain base]

info

Display agent information.

python scripts/register.py info \x3CagentId> [--chain base]

validate

Check registration for common issues.

python scripts/register.py validate \x3CagentId> [--chain base]

Checks:

  • Missing type field
  • Local-path images (/home/..., ./, file://)
  • Empty name/description
  • Missing registrations array
  • Unreachable image URLs

fix

Auto-fix common registration issues.

python scripts/register.py fix \x3CagentId> [--chain base] [--dry-run]

Auto-fixes:

  • Missing type field
  • Missing registrations array
  • Local-path images (removes them)

Use --dry-run to preview changes without applying.

self-check

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.

Cross-Skill Workflows

Post-Registration Flow

# 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

Periodic Health Check

# 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

Heartbeat Integration

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

Wallet Configuration

Set one of these environment variables:

export ERC8004_MNEMONIC="your twelve word mnemonic phrase here"
# OR
export ERC8004_PRIVATE_KEY="0x..."

Contract

Identity Registry: 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 (same on all chains)

Supported 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

Dependencies

pip install web3 eth-account

Related Skills

  • erc8004-discover: Find and monitor agents
  • erc8004-reputation: Rate agents and check trust scores
Usage Guidance
This skill appears to implement an ERC‑8004 registration CLI and will need and use a wallet mnemonic or private key (ERC8004_MNEMONIC or ERC8004_PRIVATE_KEY) to sign transactions. However the package metadata incorrectly lists no required env vars — treat that as a red flag. Before installing or running: - Do not expose your main/high‑value wallet mnemonic. Prefer a throwaway wallet with minimal funds for testing. - Inspect the full scripts locally (you already have scripts/register.py) to confirm there are no hidden network endpoints or exfiltration logic. The included code fetches RPC endpoints and token/image URLs (expected), but verify the hard‑coded RPC URLs and contract address match official sources. - Be aware the SKILL.md references other scripts (reputation.py, discover.py) that are not included; cross‑skill integration may be incomplete. - If you must run it, run in an isolated environment (VM or container) and provide only a test wallet; avoid pasting your main mnemonic into shared shells. Because of the metadata/instruction mismatch about secrets and missing referenced files, proceed only after confirming the exact code and providing a low‑privilege wallet for testing.
Capability Analysis
Type: OpenClaw Skill Name: erc8004-register Version: 1.1.1 The skill is classified as suspicious due to its direct handling of sensitive blockchain wallet credentials (mnemonic/private key) via environment variables, which is a high-risk practice, and the potential for Server-Side Request Forgery (SSRF) in `scripts/register.py`. The `validate_agent_data` function uses `urllib.request.urlopen` to check user-provided image URLs, which could be exploited to probe internal networks or trigger external requests if a malicious URL is supplied. While these capabilities are arguably necessary for a blockchain interaction skill and its validation features, they introduce significant vulnerabilities without clear malicious intent.
Capability Assessment
Purpose & Capability
The code and SKILL.md implement an ERC-8004 on‑chain registration CLI that requires a wallet (mnemonic or private key) and web3 libraries — this is appropriate for the stated purpose. However the skill registry metadata claims no required environment variables or primary credential, which is incorrect and inconsistent with the runtime instructions and code that explicitly read ERC8004_MNEMONIC or ERC8004_PRIVATE_KEY. Also SKILL.md/README reference companion scripts (reputation.py, discover.py) that are not included in the file manifest.
Instruction Scope
The runtime instructions direct the agent to read wallet credentials from environment variables and to perform network calls (RPC endpoints, fetching tokenURI/image URLs). Those behaviors are necessary for on‑chain registration but they access sensitive secrets (mnemonic/private key). The SKILL.md also mentions querying 'Agentscan' and other cross-skill workflows that reference files not present, which is an inconsistency. The instructions do not attempt to access unrelated system files, but they do assume and require wallet secrets that were not declared in the metadata.
Install Mechanism
No install spec (instruction-only plus included Python script). Dependencies are standard Python packages (web3, eth-account) installed via pip per README. There are no downloads from arbitrary servers or archive extraction steps in the manifest.
Credentials
The skill legitimately requires a wallet credential (mnemonic or private key) to sign transactions, which is proportional to on‑chain registration. The problem: the package metadata lists no required env vars or primary credential, but SKILL.md and the script clearly require ERC8004_MNEMONIC or ERC8004_PRIVATE_KEY. This mismatch increases risk because users may not realize the skill will read sensitive secrets. No other unrelated credentials are requested.
Persistence & Privilege
The skill is not marked always:true and does not request persistent system privileges in the manifest. It is a normal user‑invocable CLI skill and does not modify other skills' configuration in the provided files.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install erc8004-register
  3. After installation, invoke the skill by name or use /erc8004-register
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.1
Fix: Added YAML frontmatter with proper name and description for ClawHub display
v1.1.0
Agent-friendly improvements: new commands, better SKILL.md, heartbeat integration
v1.0.0
Initial release of ERC-8004 Registration Skill. - Register new agents on-chain, minting an agent NFT and storing compliant metadata. - Update agent metadata, including name, description, image, and service endpoints. - Inspect agent registration with detailed metadata and service listing. - Validate registrations for common issues (missing fields, unreachable images, schema compliance). - Supports five EVM chains: Base, Ethereum, Polygon, Monad, BNB. - Easy wallet configuration using mnemonic or private key environment variables.
Metadata
Slug erc8004-register
Version 1.1.1
License
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is Erc8004 Register?

Register 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 1161 downloads so far.

How do I install Erc8004 Register?

Run "/install erc8004-register" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Erc8004 Register free?

Yes, Erc8004 Register is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Erc8004 Register support?

Erc8004 Register is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Erc8004 Register?

It is built and maintained by aether (@aetherstacey); the current version is v1.1.1.

💬 Comments