⛓ ENS AgentGate

Policy-based access control for wallet-native agents

🔧 Protected Tools

  • GET /tool/hello
  • GET /tool/private-signal

📋 Current Policy

ENS NameLabelStatusAllowed ToolsActions
vitalik.eth active hello, private-signal

Add / Update Agent

📊 Recent Events auto-refresh 5s

No events recorded yet. Authenticate an agent to see activity.

👛 Wallet Demo

Reverse ENS is attempted after wallet connection. You can edit the ENS name before signing.
Walletnot connected
Reverse ENSnot checked
Sessionnot signed in
Ready.

🤖 Agent Instructions

  1. Step 0: Optional reverse lookup with GET /auth/reverse-ens?address=0x...
  2. Step 1: POST /auth/challenge with { "ensName": "...", "address": "0x..." }
  3. Step 2: Sign the returned message with your wallet signer (EIP-191)
  4. Step 3: POST /auth/verify with { "ensName": "...", "address": "0x...", "signature": "0x..." }
  5. Step 4: Use the returned sessionToken as Authorization: Bearer <sessionToken>
  6. Step 5: Call GET /tool/hello and GET /tool/private-signal

👤 Admin / Demo Instructions

  1. Add your agent's ENS name using the policy form
  2. Select which tools the agent is allowed to access
  3. Connect a wallet whose address matches that ENS record
  4. Sign the SIWE challenge in the wallet popup
  5. Call protected tools and watch recent events update after page refresh