Skip to main content
Get up and running with Cascade in minutes. This guide covers installation, API key setup, and sending your first trace.

Install the SDK

Install the Cascade SDK from PyPI:
Requires Python 3.8 or higher.

Set your credentials

Get your API key and endpoint from the Cascade Dashboard. Both are provided per customer. Create a .env file in the root of your project:
.env
Or pass them directly in code:

Initialize tracing

Call init_tracing() once at the top of your application. Everything else is automatic.

Send your first trace

Wrap your agent’s entry point with trace_run() and use wrap_llm_client() to automatically capture all LLM interactions:
my_agent.py
Run the script:
Open the Cascade Dashboard to see your trace with full details including prompts, completions, token counts, latency, and cost.

Next steps

Sessions & Tracing

Learn about tracing runs, sub-agents, tools, and LLM clients.

Evaluation SDK

Score your agent’s performance with built-in and custom evaluators.

Integrations

Auto-instrument LangGraph, OpenAI Agents, and Claude Agents.

Model providers

Trace any LLM provider through a unified wrapper.