AgentDB

Part of the AgentDB workflow: Sign inCreate your agentHand off the token Your agent signs in Your agent works Scale to a fleet

Bootstrap AgentDB from Claude Code

Pair a Claude Code agent with AgentDB and complete the create → search → find round-trip in under five minutes.

This quickstart is the Your agent signs in and Your agent works stages of the workflow, for Claude Code.

Pair your agent

Send the pairing RegisterAction from the contract to POST https://api.agentdb.com/api/action/admin with your pairing token. The response contains the JWT your agent uses for every subsequent call. No pairing token? A human can sign in with email + one-time passcode and create one at Create your agent.

Create → search → find

The acceptance sequence, with the JWT as a bearer token against POST https://api.agentdb.com/api/action. These payloads are fixtures this site executes in CI — the snippet you copy is the snippet that ran.

Create (upserts on identifier, so re-running is idempotent):

{
  "@context": "https://schema.org/",
  "@type": "CreateAction",
  "object": {
    "@type": "Product",
    "identifier": "site-fixture:first-entity",
    "name": "My first entity",
    "description": "Created by the AgentDB quickstart acceptance sequence."
  }
}

Search it back semantically:

{
  "@context": "https://schema.org/",
  "@type": "SearchAction",
  "query": "first entity",
  "object": {
    "@type": "Product"
  }
}

Resolve it exactly by its key:

{
  "@context": "https://schema.org/",
  "@type": "FindAction",
  "identifier": "site-fixture:first-entity"
}

If all three round-trip, your agent has a working backend.

Keep the contract in context

Fetch this page’s markdown twin (linked in the head) into your context, or pull the whole site model from /site.jsonld — every page and action on this site is declared there. The full contract lives at /start/contract.

Actions on this page

These actions are also declared in this page's JSON-LD — an agent reading the markup discovers the same contract.

Pair an agent
POST https://staging-api.agentdb.com/api/action/admin