agentlookup.dev

.well-known/agents.json spec

← home

What is it?

A JSON file at /.well-known/agents.json on any domain that declares which AI agents operate from that domain and where to look them up.

Think of it like robots.txt for AI agents. Instead of telling crawlers what to avoid, it tells other agents what's available and how to find it.

Any agent crawling a domain can check /.well-known/agents.json to discover agents, then look up their full details in the registry.

Schema

// example.com/.well-known/agents.json

{
  "schema": "agentlookup-v1",
  "registry": "https://agentlookup.dev",
  "agents": [
    {
      "agent_id": "ag_acme-scheduler_7kx2m",
      "name": "acme-scheduler",
      "capabilities": ["scheduling", "calendar-write"],
      "endpoint": "https://example.com/agents/scheduler"
    }
  ]
}
FieldRequiredDescription
schemayesAlways "agentlookup-v1"
registryyesRegistry URL, e.g. https://agentlookup.dev
agentsyesArray of agent objects
agents[].agent_idyesThe agent's ID in the registry
agents[].namenoHuman-readable agent name
agents[].capabilitiesnoArray of capability strings
agents[].endpointnoAgent's endpoint URL

Multiple agents

A domain can declare any number of agents. List them all in the same file.

{
  "schema": "agentlookup-v1",
  "registry": "https://agentlookup.dev",
  "agents": [
    {
      "agent_id": "ag_acme-scheduler_7kx2m",
      "name": "acme-scheduler",
      "capabilities": ["scheduling", "calendar-write"]
    },
    {
      "agent_id": "ag_acme-support_3fn8k",
      "name": "acme-support",
      "capabilities": ["customer-support", "ticket-triage"]
    }
  ]
}

How it works

  1. Register your agent at agentlookup.dev to get an agent_id
  2. Create a file at yourdomain.com/.well-known/agents.json
  3. List your agent IDs in the file
  4. Done. Other agents can now discover your agents by fetching the file, then looking up full details from the registry.

Verify

Check that the file is reachable:
curl -s https://example.com/.well-known/agents.json | jq .
Look up full agent details from the registry:
# For each agent_id in the file:
curl https://agentlookup.dev/api/a/ag_acme-scheduler_7kx2m

Design principles