bt login creates or updates a saved Braintrust login profile. A profile stores credentials and connection details, while organization and project context are selected separately. One profile can be used with every organization its credentials can access.
After logging in, use bt switch to select your active organization and project. Use bt profiles to list, rename, or delete saved profiles.
In an interactive terminal, bt login prompts you to choose OAuth or API key authentication. OAuth is selected by default.
If BRAINTRUST_API_KEY is set, bt login offers to save that key in a profile instead of prompting for an authentication method. The command asks for confirmation before storing the key. In a non-interactive environment, pass --save-env-api-key to provide that confirmation. Pass --oauth to log in with OAuth instead. To save a different API key, unset BRAINTRUST_API_KEY first so bt login prompts you to enter one.
Flags
bt login also accepts credential-related global flags, such as --profile, --api-url, and --app-url. It does not accept --org or --project; select those with bt switch.