Use cases

You only need a Baserun API key if you are using the SDK. You don’t need it if your primary activities are using the prompt playground, monitoring your application, or evaluating outputs.


Install Baserun

pip install baserun

Get an API key

Create an account at Navigate to the Settings tab. In this tab, you will find a section for creating a Baserun API key. Click the ‘New Token’ button, name your token, and then copy the key.

Generate API key

Set the Baserun API key as an environment variable

export BASERUN_API_KEY="your_api_key_here"

Alternatively set the Baserun API key when initializing the SDK

import baserun

baserun.api_key = "br-..."