Give your agent tools to seal a tamper-evident receipt for anything it does, check a receipt, and reverse an action, each with a public link anyone can verify. Or wrap your existing tools so every call is sealed automatically.
npm install sebbi ai
Works with AI SDK 5, 6 and 7 (ai is a peer dependency). No API key needed to start: 1,000 receipts a day free. Set SEBBI_API_KEY from sebbi.pro/connect for up to 100,000 a day.
import { generateText, isStepCount } from 'ai';
import { sebbiTools } from 'sebbi/ai-sdk';
const { text } = await generateText({
model: 'anthropic/claude-sonnet-5.5',
prompt: 'Refund order 7 for 42 GBP using the payments tool, then seal a receipt for it and give me the link.',
tools: { ...paymentTools, ...sebbiTools() },
stopWhen: isStepCount(5),
});
sealReceipt | The agent seals a receipt for an action it just took: action name, plus what it was based on and what it produced (only SHA-256 fingerprints leave your app). Returns receiptId and a public receiptUrl. |
checkReceipt | Checks any receipt: intact or not, when it was sealed, and whether the action was reversed. |
reverseReceipt | Reverses an action this app sealed earlier, with a reason. The original stays on record, shown as REVERSED and linked to the new reversal receipt. |
import { wrapTools } from 'sebbi/ai-sdk';
const result = await generateText({
model, prompt,
tools: wrapTools({ getWeather, sendEmail }), // every tool call sealed automatically
});
Each call's input and output are fingerprinted where your code runs. Only fingerprints, the tool name and a timestamp are sent. Sealing happens in the background in batches and never throws into your code.
Each request becomes an RFC 6962 Merkle batch whose root is sealed as one block in the sebbi.pro chain. That chain is witnessed by independent chains, timestamped into Bitcoin and signed post-quantum. A receipt page at https://sebbi.pro/r/<id> re-runs every check for whoever opens it. As JSON: GET https://sebbi.pro/v1/receipts/<id>.