Skip to main content
bt init saves a default Braintrust organization and existing project for the current directory in .bt/config.json. Project-scoped bt commands run from that directory or its subdirectories use this local context unless you override it with command-line options or environment variables.
For example, after the second command, the following commands use the acme/my-app project by default:
bt init does not create a Braintrust project or instrument your application. In an interactive terminal, it prompts you to select a profile, organization, and project when needed. In a non-interactive environment, pass --org and --project; also pass --profile if bt cannot select one unambiguously. To change the saved context later, use bt switch --local.

Flags

bt init uses the shared global flags, including --org, --project, --profile, and --json.