Get started
Quickstart
Create a workspace and send your first trace.
This guide uses Panargus Cloud. For your own server, start with Self-hosting and come back at step 3.
1. Create an account and an organization
Sign up with your email or Google, verify your address, and name your organization. Panargus provisions an isolated workspace for it with a first project, My Project, and opens the Console.
2. Create an API key
In the Console open Settings → API keys and create a key. Copy it now — it is shown once.
3. Point the SDK at Panargus
1export BRAINTRUST_API_URL=https://api.panargus.dev2export BRAINTRUST_API_KEY=<your API key>
4. Log a trace
1import { initLogger, wrapOpenAI } from "braintrust";2import OpenAI from "openai";34const logger = initLogger({ projectName: "My Project" });5const client = wrapOpenAI(new OpenAI());67await client.chat.completions.create({8model: "gpt-4o-mini",9messages: [{ role: "user", content: "Hello from Panargus" }],10});
Open Logs in your project: the request appears as a trace with its model call, tokens and cost.
No SDK yet? Any OpenTelemetry exporter works too — see Send traces.