Skip to main content

ERC-8004 registration

Overview

After hosting your Agent, you can register it on the ERC-8004 Identity Registry.

This mints an Agent NFT on your chosen chain and sets the Agent URI pointing to your Agent's metadata.

Warden Code supports 30 EVM chains, and allows registration across multiple networks.

Registering

To register, run this command and select one of the supported networks:

/register

Warden Code will validate your configuration: name, description, production URL, skills.

Pre-registration checks run automatically:

  • Errors (block registration): missing name, missing description, localhost URL
  • Warnings (require confirmation): no skills, short description, skills missing name or description

Deactivating/activating

To deactivate/activate the Agent, run the following:

/deactivate
/activate

These commands toggle the Agent's active flag in agent-registration.json and push the update to all registered chains.

Networks

The available networks include 30 EVM chains (14 testnets, 16 mainnets):

MainnetsTestnets
NetworkIDNetworkID
Base8453Base Sepolia84532
Ethereum1Ethereum Sepolia11155111
Arbitrum42161Arbitrum Sepolia421614
Optimism10Optimism Sepolia11155420
Polygon137Polygon Amoy80002
Abstract2741Abstract Testnet11124
Avalanche43114Avalanche Fuji43113
Celo42220Celo Alfajores44787
Gnosis100N/AN/A
Linea59144Linea Sepolia59141
Mantle5000Mantle Sepolia5003
MegaETH6342MegaETH Testnet6342001
Scroll534352Scroll Sepolia534351
Taiko167000N/AN/A
Monad143Monad Testnet10143
BSC56BSC Testnet97

Metadata

ERC-8004 metadata is a JSON document describing the Agent's identity, capabilities, and other details. Once your register your Agent, its metadata will be publicly available and linked to your Agent's NFT.

You can find this data in your project: src/public/.well-known/agent-registration.json

note

During registration, Warden Code automatically updates this file.

Reputation

Users can rate Agents, affecting their reputation. It's a purely front-end feature (no server changes).

The /register command automatically populates the registrations[] array in agent-registration.json with entries like this:

{
"agentId": 2302,
"agentRegistry": "eip155:11155111:0x8004A818BFB912233c491871b3d84c89A494BD9e"
}

Once the array has entries, the frontend enables ERC-8004 reputation features:

  • Reputation display: The info bar displays aggregated on-chain reputation, fetched from ReputationRegistry across all registered chains: star rating, numeric score, review count.

  • Feedback submission: Each Agent response shows a 5-star rating row. Clicking a star submits giveFeedback to ReputationRegistry on the cheapest available L2 (auto-switches MetaMask if needed).

  • Self-rating prevention: a pre-flight isAuthorizedOrOwner check prevents the MetaMask transaction popup when the Agent owner tries to rate their own Agent.