1

Install BAML VSCode Extension

https://marketplace.visualstudio.com/items?itemName=gloo.BAML

If you are using python, enable typechecking in VSCode’s settings.json:

"python.analysis.typecheckingMode": "basic"
2

Install BAML CLI

brew install boundaryml/baml/baml

You should be able to run baml --version and see the version number. The VSCode Extension will keep the compiler up to date for you.

If you don’t have brew, see: https://brew.sh/. If you don’t have scoop, see: https://scoop.sh/.

3

Add BAML to a project

In your python project, run baml init.

After running baml init, add or modify baml files in the ./baml_src directory.

4

Set up Boundary Studio (optional)

Create an account at https://app.boundaryml.com.

Set up a project and generate a secret.

In your .env file, set the following values generated from the web app:

BOUNDARY_PROJECT_ID=proj_...
BOUNDARY_SECRET=gloo:...
5

Learn BAML

Ensure BAML CLI can generate your Python / TS client

Save a .baml file using VSCode, and you should see a successful generation message pop up!