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.

1

Install Baserun

pip install baserun
2

Get an API key

Create an account at https://app.baserun.ai/sign-up. 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
3

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-..."

baserun.init()