Logo di agent-receipts

agent-receipts

Community
webaesbyamin

Cryptographic receipts for AI agent actions. MCP server, SDK, CLI, and dashboard. Local-first, zero infrastructure.

Autorewebaesbyamin
Repositoryagent-receipts
LinguaTypeScript
Fork
0
Stelle
1
Strumenti disponibili
14
Tipo di trasportostdio
Categorie
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    agent-receipts mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 14 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    1 stelle e 0 fork nel repository collegato.

Agent Receipts

Your AI agent remembers everything — and you can prove it.

Persistent memory for AI agents, backed by cryptographic receipts. Every fact your agent learns is signed, traceable, and independently verifiable. No cloud required.

Live Demo Interactive Walkthrough npm version License: MIT

Try the Interactive Demo · Install in 30 Seconds · How It's Different


The Problem

You're building with AI agents. Claude Code refactors your auth module and says "done, all tests pass." Your agent generates a customer quote and says it applied the right pricing. Your assistant remembers your preferences from last week — but you can't see why it thinks that, or whether it's right.

Three things are broken:

  1. Agents forget everything between sessions. Every conversation starts from zero. Context is lost. You re-explain the same things.

  2. When agents do remember, you can't see inside. Platform memory is a black box. You can't see what it stored, when, or why. You can't correct it, export it, or verify it.

  3. There's no proof of what agents actually did. Logs are mutable. Agents write their own logs. "I updated 3 files and all tests pass" — did it? You're trusting the agent's word about its own work.

What Agent Receipts Does

Memory that actually works

Your agent gets structured, persistent memory across sessions — people, projects, tools, preferences, facts. Not a flat key-value store. An entity-observation graph where every fact links to the conversation that created it.

bash
# Your agent learns something
memory_observe → "User prefers TypeScript, uses Neovim, building a SaaS called ModQuote"

# Next session, it already knows
memory_context → loads everything: entities, observations, relationships, preferences

# You can search it
memory_recall → "what tech stack does the user prefer?" → structured results

# You can forget (and the forget itself is tracked)
memory_forget → soft delete with audit trail

The agent handles this automatically when you add the system prompt. You don't manage memory manually.

Proof that's actually proof

Every memory observation and every agent action produces a receipt — a signed JSON document with:

  • Ed25519 signature — tamper-proof, independently verifiable
  • Input/output hashes — proves exactly what went in and came out (raw data never stored)
  • Timestamps — when it happened, when it completed
  • Agent ID — which agent did it
  • Provenance chain — trace any memory back to the conversation that created it

This isn't logging. Logs are mutable text files the agent writes about itself. Receipts are cryptographic proof that a third party can verify without trusting you, your server, or the agent.

Everything runs locally

bash
npx @agent-receipts/mcp-server

That's it. No API key. No account. No cloud. No monthly fee. No data leaving your machine. SQLite database in ~/.agent-receipts/. Works offline.

Why This Exists

I was building ModQuote — a multi-tenant SaaS where AI agents generate quotes for automotive protection shops. Real money, real customers, real liability.

When Claude generated a $2,400 PPF quote, I needed answers: What vehicle data did it receive? What pricing rules did it apply? If a customer disputes the price, can I prove what happened — not with a log entry the agent wrote about itself, but with cryptographic proof?

I looked at the existing tools:

  • Mem0 — great memory, but no proof. It remembers things, but can't prove when or why it learned them. Memories are mutable.
  • Langfuse — great observability, but it's tracing, not proof. Logs are internal to your system, not verifiable by third parties.
  • Zep — temporal knowledge graph, but hosted and opaque.

None of them could answer: "Prove to someone outside your system that this specific agent took this specific action with this specific input at this specific time."

So I built Agent Receipts. Now every quote generation is a signed receipt. Every memory has a provenance chain. And when someone asks "how did the agent come up with that number?" — I hand them a receipt they can verify themselves.

How It's Different

Agent ReceiptsMem0LangfuseZep
MemorySigned entity-observation graphSmart extraction + consolidationNo memoryTemporal knowledge graph
ProofEd25519 signed receiptsNoneMutable tracesNone
VerificationOffline, by anyone, no serverNoNoNo
Infrastructurenpx and done. Zero config.Requires LLM for extractionCloud or self-hostCloud API
CostFree forever (local)Free tier, then paidFree tier, then paidPaid
ExportPortable bundles with crypto verificationExport availableAPI exportNo
Audit trailImmutable receipt chainMutableMutable logsMutable

Agent Receipts isn't a better version of these tools. It's a different thing.

Mem0 answers: "What does my agent remember?" Langfuse answers: "What happened in my LLM pipeline?" Agent Receipts answers: "Can you prove it?"

Get Started

1. Add the MCP Server

Claude Code:

bash
claude mcp add agent-receipts -- npx @agent-receipts/mcp-server

Claude Desktop (claude_desktop_config.json) / Cursor (.cursor/mcp.json):

json
{
  "mcpServers": {
    "agent-receipts": {
      "command": "npx",
      "args": ["@agent-receipts/mcp-server"]
    }
  }
}

2. Add the System Prompt

This tells your agent when to observe memories, recall context, and track actions — so it works automatically:

bash
npx @agent-receipts/cli prompts claude-code

Copy the output into your project instructions or system prompt.

3. Start Using It

Your agent will now:

  • Call memory_context at the start of sessions to load what it knows about you
  • Call memory_observe when it learns something worth remembering
  • Call track_action when it performs significant actions
  • Sign everything with Ed25519

4. See What's Happening

bash
npx @agent-receipts/dashboard    # Web UI at localhost:3274
npx @agent-receipts/cli stats    # Terminal overview
npx @agent-receipts/cli memory entities  # See what your agent remembers

5. Try Before Installing

Run the interactive demo → — experience memory, verification, and bundle export in 60 seconds. No install required.

What's Inside

  • 24 MCP tools — memory, actions, verification, constraints, judgments, invoicing, bundles
  • 21 SDK methods — full TypeScript API
  • 14 CLI commands + 9 memory subcommands — terminal-first
  • 18 dashboard pages — receipts, memory graph, chains, agents, constraints, judgments, invoices
  • 492 tests — zero TypeScript any, zero ESLint warnings
  • Ed25519 + SHA-256 — via @noble/ed25519 (audited, pure JS)
  • SQLite + FTS5 — local-first with full-text memory search

Portable Memory Bundles

Export your agent's entire memory as a single verifiable file:

bash
npx @agent-receipts/cli memory export > my-project.bundle.json

The bundle includes every entity, observation, relationship, the receipts that created them, and the public key needed to verify everything. Hand it to another agent, another team, or another Agent Receipts instance — they can verify every fact without trusting you.

Links

Interactive DemoTry it in your browser — 60 seconds
Live DashboardSee the full dashboard with sample data
How It WorksReceipt anatomy, memory model, ModQuote story
npmAll 6 packages

Action Tracking

  • ar.track(params) — Track a completed action with automatic hashing
  • ar.start(params) — Create a pending receipt
  • ar.complete(receiptId, params) — Complete a pending receipt
  • ar.verify(receiptId) — Verify a receipt's Ed25519 signature
  • ar.get(receiptId) — Get a receipt by ID
  • ar.list(filter?) — List receipts with filtering and pagination
  • ar.getPublicKey() — Get the signing public key
  • ar.getJudgments(receiptId) — Get judgments for a receipt
  • ar.cleanup() — Delete expired receipts
  • ar.generateInvoice(options) — Generate invoice from receipts

Memory

  • ar.context(params?) — Get full memory context dump for session init
  • ar.observe(params) — Store a memory observation (always receipted)
  • ar.recall(params?) — Search memories (quiet by default, audited: true for receipt)
  • ar.forget(params) — Soft-delete observation or entity (always receipted)
  • ar.entities(filters?) — List entities
  • ar.relate(params) — Create entity relationship
  • ar.provenance(observationId) — Get provenance chain
  • ar.memoryAudit(params?) — Memory audit report

Bundles

  • ar.exportBundle(params?) — Export portable, verifiable memory bundle
  • ar.importBundle(bundle, params?) — Import and verify a memory bundle

Aliases

  • ar.emit(params) — Alias for track()
ToolDescriptionKey Parameters
track_actionTrack an agent action with automatic hashingaction, input, output, constraints
create_receiptCreate a receipt with pre-computed hashesaction, input_hash, output_hash
complete_receiptComplete a pending receipt with resultsreceipt_id, output, status
verify_receiptVerify the cryptographic signaturereceipt_id
get_receiptRetrieve a receipt by IDreceipt_id
list_receiptsList receipts with filteringagent_id, status, chain_id
get_chainGet all receipts in a chainchain_id
get_public_keyExport the Ed25519 public key—
judge_receiptStart AI Judge evaluationreceipt_id, rubric
complete_judgmentComplete a pending judgmentreceipt_id, verdict, score
get_judgmentsGet all judgments for a receiptreceipt_id
cleanupDelete expired receiptsdry_run, cleanup_memory
generate_invoiceGenerate invoice from receiptsfrom, to, format
get_startedGetting-started guide—
memory_contextFull context dump for session initscope, max_entities
memory_observeStore a memory observationentity_name, entity_type, content
memory_recallSearch stored memoriesquery, entity_type, scope
memory_forgetSoft-delete observation or entityentity_id or observation_id
memory_entitiesList known entitiesentity_type, scope, query
memory_relateCreate entity relationshipfrom_entity_id, to_entity_id, type
memory_provenanceProvenance chain for observationobservation_id
memory_auditMemory operations audit reportagent_id, from, to
memory_export_bundleExport portable memory bundleentity_ids, include_receipts
memory_import_bundleImport and verify memory bundlebundle, skip_existing
CommandDescription
initCreate data directory and generate signing keys
keys [--export] [--import]Display, export, or import signing keys
inspect <id|file>Pretty-print a receipt
verify <id|file> [--key]Verify a receipt signature
list [--agent] [--status] [--json]List receipts with filters
chain <chain_id> [--tree]Show receipt chain
judgments <id> [--json]List judgments for a receipt
cleanup [--dry-run]Delete expired receipts
statsAggregate receipt statistics
export <id|--all> [--pretty]Export receipts as JSON
invoice --from --to [--format]Generate invoice
seed [--demo] [--count] [--clean]Seed demo data
watch [--agent] [--action]Watch for new receipts
prompts <client>Setup guide (claude-code, cursor, system)
memory contextMemory context summary
memory observe <name> <type> <content>Store observation
memory recall [query]Search memories
memory entities [--type]List entities
memory forget <id>Forget observation or entity
memory auditMemory audit report
memory provenance <obs_id>Provenance chain
memory exportExport memories as JSON
memory import <file>Import memories
Environment VariableDescriptionDefault
AGENT_RECEIPTS_DATA_DIRData directory path~/.agent-receipts
AGENT_RECEIPTS_AGENT_IDDefault agent IDlocal-agent
AGENT_RECEIPTS_ORG_IDOrganization IDlocal-org
AGENT_RECEIPTS_ENVIRONMENTEnvironment labelproduction
RECEIPT_SIGNING_PRIVATE_KEYEd25519 private key (hex)Auto-generated

Storage:

~/.agent-receipts/
├── keys/
│   ├── private.key    # Ed25519 private key (mode 0600)
│   └── public.key     # Ed25519 public key
├── receipts.db        # SQLite database (receipts + memory)
└── config.json        # Agent and org configuration

Packages

PackageDescription
@agent-receipts/schemaZod schemas and TypeScript types
@agent-receipts/cryptoEd25519 signing, verification, key management
@agent-receipts/mcp-serverMCP server with 24 tools
@agent-receipts/sdkTypeScript SDK (21 methods)
@agent-receipts/cliCommand-line interface
@agent-receipts/dashboardMission Control web UI

Roadmap

  • Cloud tier — team dashboards, multi-agent memory sync, cross-org verification
  • Semantic recall — embedding-powered memory search
  • Framework adapters — LangChain, CrewAI, AutoGen integrations
  • Cross-org trust bridges — two organizations verifying each other's agent receipts

License

MIT


Built by Amin Suleiman — building ModQuote and Agent Receipts.

Installazione

TypingMind
Prerequisiti:

Node.js 18+

{
  "mcpServers": {
    "agent-receipts": {
      "command": "npx",
      "args": [
        "-y",
        "@agent-receipts/mcp-server"
      ]
    }
  }
}

Strumenti disponibili

  • create_receipt

    Create a new receipt with pre-computed hashes. Use track_action instead for automatic hashing.

  • complete_receipt

    Complete a pending receipt with execution results.

  • track_action

    Track an agent action with automatic input/output hashing. This is the primary tool for recording receipts.

  • verify_receipt

    Verify the cryptographic signature of a receipt.

  • get_receipt

    Retrieve a receipt by its ID.

  • list_receipts

    List receipts with optional filtering and pagination.

  • get_chain

    Retrieve all receipts in a chain, ordered by timestamp.

  • get_public_key

    Export the Ed25519 public key used for signing receipts.

  • judge_receipt

    Evaluate a receipt against a rubric. Creates a pending judgment receipt and returns evaluation instructions for the host model.

  • complete_judgment

    Complete a pending judgment receipt with the evaluation results from judge_receipt.

  • get_judgments

    Get all judgment receipts for a given receipt.

  • cleanup

    Delete expired receipts based on their expires_at metadata.

  • generate_invoice

    Generate an invoice from completed receipts within a date range. Each line item is a cryptographically signed receipt.

  • get_started

    Show a getting-started guide for Agent Receipts with usage examples for all tools.

Usa MCP agent-receipts con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso agent-receipts, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi agent-receipts come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di agent-receipts.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "agent-receipts": {
      "command": "npx",
      "args": [
        "-y",
        "@agent-receipts/mcp-server"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di agent-receipts, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di agent-receipts.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare agent-receipts per aiutarmi con questa attività?
agent-receipts
Certo. Ho letto.
Ecco cosa ho trovato con agent-receipts.

Domande frequenti

A cosa serve il server MCP agent-receipts?

agent-receipts è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare agent-receipts MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare agent-receipts con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP agent-receipts con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando agent-receipts, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego agent-receipts MCP a TypingMind?

agent-receipts funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre agent-receipts MCP in TypingMind?

agent-receipts mette a disposizione 14 strumenti MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare agent-receipts MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se agent-receipts richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇