This guide gets you from zero to a traced LLM call visible in the dashboard in under 10 minutes.Documentation Index
Fetch the complete documentation index at: https://docs.trulayer.ai/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- A TruLayer account — sign up free (no credit card required on the Free tier)
- One of:
- Python 3.11+ for the Python SDK
- Node.js 18+ (or Bun, or an Edge runtime) for the TypeScript SDK
- An LLM provider API key — this quickstart uses OpenAI
1. Create a project
Projects are how TruLayer partitions traces — one per app or environment (for examplequickstart, checkout-api-prod, checkout-api-staging). Every trace you send must belong to a project, and every API key is scoped to the tenant, so creating a project first keeps your traces from piling into a single unsorted bucket.
In the dashboard, go to Projects → New project, give it a name (the quickstart uses quickstart), and save. The project name is what you pass to the SDK in step 3 — keep it handy.
2. Create an API key
Go to Settings → API keys in the dashboard and click New Key. Copy the key — it starts withtl_ and is shown only once.
3. Install the SDK
4. Send your first trace
The example below makes one OpenAI call and ships the trace (prompt, response, latency, token counts, model) to TruLayer. It uses auto-instrumentation so you don’t have to wrap calls manually.5. View the trace
Open the dashboard and navigate to Traces. Your trace should appear within a few seconds, showing:- The input prompt
- The full response
- Latency, token counts, and cost
- The model name
- Any errors (there shouldn’t be any yet)
6. Next steps
Add more auto-instrumentation
Patch Anthropic, LangChain, or the Vercel AI SDK with a single function call.
Wrap custom code
Create traces and spans manually for retrieval, tool calls, or your own business logic.
Collect feedback
Attach user thumbs-up/down to traces and feed it back into your evals.
Run an evaluation
Score traces for correctness, hallucination, or any custom metric.
If the trace doesn’t appear, double-check
TRULAYER_API_KEY, make sure the process didn’t exit before the background flush completed, and check the status page. Still stuck? Email support@trulayer.ai.