B

Braintrust CLI

CLI discovered

Details
Command
bt
Docs
https://www.braintrust.dev/docs/reference/cli/quickstart
Authentication
Braintrust OAuth login for CLI/MCP clients oauth2 discovered $ bt auth login

Acquired by the CLI — running bt auth login opens the auth flow and stores the credential.

Braintrust API key bearer discovered Get token ↗
$ bt --api-key <KEY>

Create an API key in Settings > API keys. The API reference shows using it as Authorization: Bearer $BRAINTRUST_API_KEY. If you prefer the CLI flow, `bt setup` can create a new key interactively and prints an export BRAINTRUST_API_KEY=<key> command.