Skip to content

Integrations

One trace model, six ways in

Start with the runtime you already have. Native SDKs add request semantics; standards and importers let you evaluate Kibitz before changing production code.

Multiple agent data formats passing through one precise ingestion gateway
Different inputs converge on the same Run shape, so investigation does not change when the framework does.

Python SDK

Sync and async-safe trace context, request boundaries, explicit spans, @tool, and LangChain/LangGraph callbacks.

TypeScript SDK

AsyncLocalStorage isolation, instrument() wrappers, request groups, usage, cost, sessions, users, and tags.

OpenTelemetry

Receive standard OTLP/HTTP JSON at /api/otel/v1/traces and retain parent-span hierarchy and GenAI attributes.

Claude Code & Codex

Import local JSONL once or keep --watch running. For suggestions, delegate to the account already signed in through either installed CLI.

Langfuse migration

Read v4 observations_v2 JSON, JSONL, or Observations API responses and rebuild traces by traceId.

Direct HTTP

POST one completed Kibitz Run or an array with project-scoped ingest tokens.

Python
from kibitz_sdk import trace, tool

@tool
async def search(query: str):
    return await index.search(query)

async def main():
    with trace("research", agent="analyst") as run:
        with run.request("Compare the proposals"):
            rows = await search("latest proposals")
            run.answer(summarize(rows))
TypeScript
import { instrument, trace } from "@kibitz/sdk";

const search = instrument("search", index.search);

await trace("research", { agent: "analyst" }, async (run) => {
  await run.request("Compare the proposals", async () => {
    const rows = await search("latest proposals");
    run.answer(summarize(rows));
  });
});
OpenTelemetry
OTEL_EXPORTER_OTLP_PROTOCOL=http/json
OTEL_EXPORTER_OTLP_ENDPOINT=https://kibitz.example/api/otel
OTEL_EXPORTER_OTLP_HEADERS=authorization=Bearer%20$KIBITZ_INGEST_TOKEN
Langfuse export
uv run kibitz-langfuse-import observations_v2.jsonl \
  --out ../web/.kibitz/traces/langfuse.json
  • trace / session / user / project
  • model / usage / cost / latency
  • parent span / request boundary
  • tool input / output / status
  1. 01

    Evaluate

    Import recent Claude Code, Codex, or Langfuse history. Production instrumentation stays untouched.

  2. 02

    Instrument

    Add Python or TypeScript request boundaries, or point an OTLP/HTTP JSON exporter at Kibitz.

  3. 03

    Operate

    Use project-scoped read and ingest tokens, persistent resources, and a shared trace volume.

Connect without rewriting the agent

Use a post-run importer first, then move to native or OTLP instrumentation when you want continuous traces.

Open integration docs