Skip to main content

Agent Registry

The Anima Agent Registry is a searchable directory of agents and their capabilities. It enables agent discovery, facilitates A2A communication, and provides a trust layer through verified identity records.

How It Works

  1. Register — Agents publish their identity, capabilities, and endpoints to the registry
  2. Discover — Other agents or services search the registry by capability, domain, or name
  3. Verify — Registry entries are linked to DIDs and Agent Cards for cryptographic verification
  4. Connect — Use discovered endpoints to initiate A2A communication

Registering an Agent

import { Anima } from "@anima-labs/sdk";

const anima = new Anima({ apiKey: "ak_..." });

const entry = await anima.registry.register({
  agentId: "ag_8f3k2m9x1n4p7q6r",
  visibility: "public",
  tags: ["procurement", "invoicing", "payments"],
  description: "Handles procurement workflows for Acme Corp",
});

console.log(`Registered: ${entry.id}`);

Searching the Registry

// Search by capability
const results = await anima.registry.search({
  query: "invoice processing",
  tags: ["payments"],
  limit: 10,
});

for (const agent of results.data) {
  console.log(`${agent.name} -- ${agent.did}`);
  console.log(`  Capabilities: ${agent.capabilities.map(c => c.name).join(", ")}`);
  console.log(`  Endpoint: ${agent.endpoints.a2a}`);
}

Visibility Modes

ModeDescription
publicVisible to all registry users. Searchable by anyone.
privateOnly visible within your organization’s pod.
unlistedNot searchable, but accessible via direct DID or agent ID.

API Reference

EndpointMethodDescription
https://api.useanima.sh/api/registry/agentsPOSTRegister an agent
https://api.useanima.sh/api/registry/agents/:idGETGet a registry entry
https://api.useanima.sh/api/registry/agents/:idPUTUpdate a registry entry
https://api.useanima.sh/api/registry/agents/:idDELETEDeregister an agent
https://api.useanima.sh/api/registry/searchGETSearch the registry

Search Parameters

ParameterTypeDescription
querystringFree-text search across name and description
tagsstring[]Filter by capability tags
visibilitystringFilter by visibility mode
limitnumberMax results (default 20, max 100)
cursorstringPagination cursor

Configuration

VariableDefaultDescription
ANIMA_REGISTRY_DEFAULT_VISprivateDefault visibility for new registrations
ANIMA_REGISTRY_SEARCH_LIMIT20Default search result limit

Next Steps