The whole stack, visible: a chat app with budgets, receipts, replay, and a tamper-evident audit trail.
View recipe on GitHub →or try it in your browser →Copy-paste recipes that run offline.
Every sample in the cookbook runs without an API key — live calls were recorded once with cassette and replay offline forever. Clone, run, adapt.
Showing 20 of 20 recipes
A governed agent in ~10 lines — a real tool loop with a pre-flight budget, PII redaction, and a tamper-evident audit chain. Built on cendor-sdk.
View recipe on GitHub →about the SDK →Instrument Chat Completions: budgets, recording, audit on the classic entrypoint.
View recipe on GitHub →The Responses API — the default for new OpenAI apps — through the same seam.
View recipe on GitHub →Budget + audit Claude calls, including prompt-cache read/write accounting.
View recipe on GitHub →Wrap the client under a LangChain/LangGraph agent; budgets and audit ride unchanged.
View recipe on GitHub →A Responses-based agent loop with pre-flight budgets and a tamper-evident trail.
View recipe on GitHub →contextkit packing alongside a RAG pipeline — with the assembly receipt.
View recipe on GitHub →Fully local, zero-key, end-to-end: a llama3 agent that's budgeted, recorded, audited.
View recipe on GitHub →A managed runtime owns the loop — ingest its gen_ai.* spans and keep budgets + audit.
View recipe on GitHub →A real agent test suite: record once, replay in CI, xdist-safe cassette layout.
View recipe on GitHub →Decisions, human oversight, policy flags → export an evidence pack and verify it offline.
View recipe on GitHub →The instrument() seam: one wrap, and every model call emits exact usage + decimal cost on the bus.
The same instrument() seam in TypeScript — exact token counts and decimal-exact money via @cendor/core.
Budgets, spend tracking, and reports — enforced pre-flight, before the call ever runs.
View recipe on GitHub →Assemble a token-budgeted context window with an auditable packing receipt.
View recipe on GitHub →Deterministic prompt compression with reversible, content-addressed handles.
View recipe on GitHub →Record a run once, replay it forever — deterministic, offline, free test fixtures.
View recipe on GitHub →A hash-chained audit log that verifies offline — one edited byte fails the chain.
View recipe on GitHub →The governed agent in TypeScript — zod tools, a pre-flight budget, and a tamper-evident audit chain on @cendor/sdk.
git clone → uv run — that's it.
every recipe: uv run recipes/<name>/main.py · no keys · docs →