Trace your first LLM call in 5 lines
The Currai team, Engineering — May 12, 2026
The fastest way to understand Currai is to send one trace. There is no agent to deploy, no collector to run, and no schema to define — install the SDK, authenticate, and wrap a call.
1. Install and authenticate
One dependency, no native build step. Authenticate with a public / secret key pair scoped to your project.
2. Wrap a call
A trace is the unit of work; a generation is a single model call inside it.
Currai records the prompt you sent, the completion you got back, the model and
its parameters, and how long it took.
3. Flush before you exit
Traces are batched and flushed in the background so instrumentation never blocks
a request. In a short-lived process — a script or a serverless function — call
flush so traces are sent before the process exits.
From here, attach token usage to see cost computed for you, nest spans to capture a RAG pipeline, or pass a session id to stitch a multi-turn conversation together. Each is a single extra argument away.
currai