beacon register command creates an on-chain identity for your repository’s agent using the ERC-7527 standard on Base blockchain. This enables verifiable, decentralized agent identity registration.
Usage
Arguments
The path to the local repository to register. Defaults to the current directory.Examples:
./(current directory)./my-project/home/user/repositories/my-app
Options
The blockchain to use for registration.Currently supported:
base- Base mainnet (default)
The ERC-7527 agency contract address to use for registration.Default:
0xd8b934580fcE35a11B58C6D73aDeE468a2833fa8 (Canonical Agency)Example:Prerequisites
1. AGENTS.md file required
You must generate an AGENTS.md file before registering:2. Git repository with remote URL
The repository must have a Git remote configured (the URL will be registered on-chain):3. Base network ETH for gas
You need ETH on Base network to pay for transaction gas fees.Environment Variables
Private key for the agent wallet. If not provided, Beacon will generate a new wallet.Format: Hexadecimal string (with or without
0x prefix)Example:RPC URL for Base network. Defaults to the public Base mainnet RPC.Example:
How It Works
-
Wallet Setup - Beacon uses the
AGENT_PRIVATE_KEYenvironment variable, or generates a new wallet if not provided -
Repository URL Extraction - Reads the Git remote URL from
.git/config -
Cost Calculation - Calls the agency’s
getWrapOracle()function to determine registration cost - Balance Check - Verifies the wallet has sufficient ETH for the transaction
-
Registration Transaction - Calls the agency’s
wrap()function to register the agent identity on-chain - AGENTS.md Update - Updates the AGENTS.md file with the agent’s wallet address
Examples
Register with existing wallet
Register with generated wallet
Register with custom agency
Register current directory
AGENTS.md Update
After successful registration, Beacon updates your AGENTS.md file with the agent identity: Before:Error Handling
Insufficient balance
Missing AGENTS.md
No Git remote URL
ERC-7527 Standard
Beacon uses the ERC-7527 standard for on-chain agent identity:- Agency Contract: Manages agent registrations and wrapping
- Wrap Function: Creates a new agent identity NFT
- Oracle Function: Calculates registration cost (premium + fee)
Security Best Practices
- Never commit private keys - Use environment variables, never hardcode keys
- Use a dedicated agent wallet - Don’t use your personal wallet for agent registration
- Verify contract addresses - Double-check agency addresses before registering
- Test on testnets first - Consider testing on Base Sepolia before mainnet registration
- Backup your private key - Store it securely in a password manager or hardware wallet
Source Code Reference
The register command implementation can be found in:- Command definition:
/home/daytona/workspace/source/src/main.rs:74-81 - Execution logic:
/home/daytona/workspace/source/src/main.rs:474-478 - Identity module:
/home/daytona/workspace/source/src/identity.rs:23-115