Audit and governance docs for AI agents.
The fastest path is the free SDK: record events, export a bundle, verify it. Start with the verified 1.15.2 how-to. Memory, a reputation score, and payment rails are optional modules. This is evidence tooling, not legal compliance.
How it works in 60 seconds
Install
npm i @mnemopay/sdk@1.15.2. No API key. The audit chain makes no network calls.
Record
Emit the actions you choose. Export a bundle with rollAndExport. The how-to has the exact script.
Verify
verifyBundle catches edits and deletions. It does not, on 1.15.2, catch a duplicated last event. The how-to shows the two extra checks.
Live knowledge graph: brain.mnemopay.com
Concepts on this site are also nodes in the brain. Query it from the MCP server bundled in @mnemopay/sdk, or check the live health endpoint at
brain.mnemopay.com/health. Page and edge counts change; read them there rather than from this page.
Core primitives
Identity
Ed25519 keypairs. Every agent action is signed; every receipt verifiable offline. The identity itself is portable across platforms.
SDK reference →Recall (memory)
Persistent agent memory with cosine-similarity retrieval. Local first, hosted optional. Deterministic embeddings so re-runs are reproducible.
SDK reference →Anchor (ledger)
Merkle-chained event ledger. An anchor-sink interface exists. No production deployment is anchored on chain yet; the one real anchor was a test bundle.
SDK reference →FiscalGate
Pre-call budget enforcement. Funds reserved at charter creation, drawn down per allowed transaction. Refusals are signed and audited.
SDK reference →Charter
The agent employment contract. What it can spend, on what, for whom, for how long. Replaces ad-hoc policy plumbing across agent teams.
SDK reference →Article 12 Audit
Article 12-shaped evidence bundles for the events you emit. Replayable and verifiable. Not a compliance certificate. Stand-alone high-risk logging duties apply from 2 December 2027.
Explainer →Agent Reputation Score
Agent reputation, 300-850. Payment history (35%) + credit utilization (20%) + history length (15%) + behavior diversity (15%) + fraud record (15%). Scores agents, not humans — not FCRA-regulated, not affiliated with FICO.
Why 300-850? →Payment Rails
Stripe · Paystack · Lightning · Stripe MPP · x402 (USDC on Base) · Google AP2. Same interface across rails — switch one config field.
SDK reference →LLM middleware
Drop-in wrappers so you do not have to plumb memory + audit by hand. Pick the one that matches your stack:
OpenAI middleware
Wraps the OpenAI SDK. Memory pulled into prompts automatically, audit written per call.
SDK →Anthropic middleware
Same contract for the Anthropic SDK. Works with claude-opus-4-7, claude-sonnet-4-6, claude-haiku-4-5.
SDK →Cohere middleware
Same memory + audit contract for the Cohere SDK. @mnemopay/sdk/middleware/cohere.
Mistral middleware
Same memory + audit contract for the Mistral SDK. @mnemopay/sdk/middleware/mistral.
LangGraph integration
LangGraph-native node + state contract. Drop into existing graphs without rewriting nodes.
SDK →Going beyond self-hosted
Hosted Gateway
Managed option at api.mcp.mnemopay.com. Self-hosting the SDK is free. Hands-on help is a design-partner pilot. Pro is $49/mo.
MCP Server (Hosted)
95-tool MCP server at api.mcp.mnemopay.com (14 essentials exposed by default; opt into more with tool groups). Connect Claude Desktop, Cursor, Continue, or any MCP client without running the SDK locally.
Brain (knowledge graph)
A knowledge graph you can query from the SDK. Read the current size from the health endpoint. Do not treat a number printed on a marketing page as current.
Live graph size →