B
Braintrust CLI
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.
$ 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.