Skip to main content
The TypeScript SDK is not yet available for v1. If you’re using TypeScript/JavaScript, we recommend using the v0 docs: v0/quickstart.
Prerequisites: Before you begin, make sure to have an account on Basalt.

Quickstart (Python)

1

Install the SDK

2

Set your API key

3

Initialize the SDK

4

Start observing + get a prompt + call your LLM

This is the minimal “golden path”:
  1. start_observe (creates a trace), 2) get_sync (fetches the prompt), 3) your LLM call, 4) see the trace in Basalt.

What you get

After running the script, open the Basalt dashboard to see a trace with your root span (start_observe) and your LLM span (observe). Example trace in Basalt Next: PromptsObservabilityAPI Reference