Local Quickstart
Use this guide to run TraceLLM locally and send a real LLM trace from the example user application.
Prerequisites
- Node.js 20+
- pnpm 9+
- Docker Desktop
- One real LLM provider key:
- OpenAI, or
- Anthropic Claude, or
- Gemini
Install Dependencies
Run from the project root:
Start TraceLLM Backend
Backend health:
Swagger:
Start Web UI
In another terminal:
Open the web URL printed by Vite. It is usually:
Create Account
In the TraceLLM UI:
- Register a new account.
- Open Project Config.
- Create or copy an API key.
- Save the API key for the example app.
Run Real LLM Example
Set common TraceLLM variables:
Choose a provider.
Confirm Success
Refresh the TraceLLM UI.
You should see:
The timeline should include:
fetch.customer.profilefetch.customer.activity- provider LLM span such as
openai.chat.generate - events and token usage when provider metadata is available