BLACKBOX
flight recorder for AI agents
DEVELOPER INTEGRATION

Instrument any agent in minutes

Python SDK · TypeScript SDK · OpenTelemetry · plain REST. Pick whichever fits your stack — they all write the same tamper-evident chain.

Full docs →Step-by-step guide
Py
Python SDK
stdlib only · no deps · 3.11+
import blackbox_sdk as bb

bb.configure(api_url="https://blackbox-gold.vercel.app
")

with bb.run("my_run", model="claude-sonnet-4-6",
            system_prompt="You are a helpful assistant.") as r:
    r.reasoning("Deciding what to do…")
    r.tool_call("web_search", result={"hits": ["..."]})
    r.output("Here is the answer.", cost_usd=0.0031, latency_ms=820)
    r.seal()
pip install blackbox-sdk
✓ Context manager✓ Async support✓ Auto fault capture✓ Output verification✓ Provider adapters✓ Webhook verify
TS
TypeScript SDK
ESM + CJS · Node 18+ · Deno
import { BlackboxClient } from "@blackbox-ai/sdk";

const bb = new BlackboxClient({ apiUrl: "https://blackbox-gold.vercel.app
" });
const run = bb.run("my_run");

await run.genesis({ system_prompt: "You are helpful.", model_snapshot: "gpt-4o", tools: [] });
await run.reasoning("Deciding what to do…");
await run.toolCall("web_search", { query: "latest news" });
await run.seal();
npm install @blackbox-ai/sdk
✓ Full type safety✓ Fluent run API✓ SSE live stream✓ Public audit certs✓ ESM + CJS dual build✓ Zero dependencies
OT
OpenTelemetry
zero code · any provider
# Zero-config OTel — no SDK needed
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT="https://blackbox-gold.vercel.app
/v1/otel/traces"
export OTEL_SERVICE_NAME=my-agent
# Every LLM call is now recorded automatically.
pip install opentelemetry-instrumentation-anthropic
✓ Anthropic · OpenAI · Gemini✓ LangChain · LlamaIndex✓ Idempotent re-export✓ Auto genesis event✓ No code changes✓ OTLP/HTTP JSON
Full OTel guide →
HTTP
REST API
any language · curl ready
curl -X POST https://blackbox-gold.vercel.app
/v1/events \
  -H "Content-Type: application/json" \
  -d '{"run_id":"my_run","type":"reasoning","title":"Step 1"}'
POST https://blackbox-gold.vercel.app /v1/events
✓ Any language✓ Bash / curl✓ JSON body✓ OpenAPI spec at /docs✓ No SDK required✓ Same chain guarantees
Interactive API docs ↗
THE INVARIANT EVERY INTEGRATION GUARANTEES
hashn = sha256( hashn-1 + canonical_json( eventn ) )
Regardless of which SDK or transport you use, every event enters the same append-only chain. Alter any event after the fact and the chain breaks — provably, mathematically, permanently.
Not sure where to start? Follow the guided setup.
Get started in 5 minutes →