Skip to content

Reference ​

Every feature of agent-custody, how to use it, and the exact request and response of every function and endpoint. The narrative guides on agent-custody.dev explain why; these pages say what goes in and what comes out.

The pieces ​

piecepackagewhat it isreference
Gateway@agent-custody/receiptsa process between the agent and its tools: checks the grant and the policy, forwards or denies, issues a receiptgateway
SDK@agent-custody/receiptsthe same issuer inside the agent's process, for tools that are plain functions; adapters for the frameworksTypeScript SDK
Sidecar@agent-custody/receiptsthe SDK as a local HTTP API, for agents in any languagesidecar
Pythonagent-custody on PyPIthe sidecar client, framework adapters, and the memory clientPython
Claude Code@agent-custody/receiptsa hook that records every tool call of a sessionClaude Code
Log@agent-custody/receiptsthe transparency log: a file, or a server, or the hosted one; the client the gateway useslog API
Verifier@agent-custody/receiptschecks a receipt, audits a log, monitors a log, exports a tenantverify and audit
Hosted loglog.agent-custody.devtenants, plans, the portal, the API keyshosted
Memory@agent-custody/statethe fact ledger and the memory server behind the gateway; write-through storesmemory
Explain, review, pack@agent-custody/stateone action explained, a review page, a fact's custody pack, blast radius, evals, retentionexplain and packs
Command lineboth packagesevery command and flagCLI

Install ​

bash
npm install @agent-custody/receipts @agent-custody/state
pip install agent-custody

The packages run on Node 22 or later and Python 3.10 or later. Nothing phones home; the only network calls are the ones you configure.

Conventions on these pages ​

  • Request and Response blocks are JSON exactly as sent and received. Fields marked optional may be omitted; fields marked env name an environment variable and never carry the secret itself.
  • Every signed object is a DSSE envelope: { "payloadType", "payload" (base64), "signatures": [{ "keyid", "sig" }] }. The keyid is the SHA-256 of the signer's public key in SPKI DER, so a verifier matches keys without being told which is which.
  • provenance on a receipt field is one of attested (signed by a key other than the issuer's), observed (the issuer saw it itself), or claimed (the agent said so). The proof table says what each is worth.
  • Money is integer minor units everywhere. Timestamps are ISO 8601, UTC.