@latten/sdk is observe-only TypeScript instrumentation for AI apps. It tracks LLM calls, data touches, external APIs, cost, reach, actor attribution, and PII exposure while returning the wrapped function's result unchanged.
See it on a live graph — no signup →Use track around calls where your app reaches a model, database, external API, or another service.
Use withActor to build the authority chain: who is acting and on whose behalf.
The SDK reads model, input tokens, cached input tokens, output tokens, and reasoning tokens from common OpenAI, Anthropic, and Gemini response shapes.
No. It is observe-only and designed not to throw into the host app.
No. PII is counted locally and sent as types and counts, never values.
Yes. @latten/installer can place @latten/sdk calls in a reviewable PR.