1. Install
- TypeScript
- Python
2. Set environment variables
Find your API key and project ID in Lemma project settings.The SDK sends to
https://api.uselemma.ai by default. Pass baseUrl to new Lemma({ baseUrl }) only when you need a custom endpoint.3. Create a client
- TypeScript
- Python
4. Send your first trace
- TypeScript
- Python
Next steps
Traces
Define one agent execution.
Generations
Capture LLM calls with model, prompt, completion, and timing.
Tool calls
Record tool arguments and results.
Trace contract
The exact shape Lemma reads.