Skip to main content

Install Bauplan

The bauplan Python package contains both the Python SDK and the CLI. It requires Python 3.11 or later. The commands below use uv, but any other Python package manager will do.

To follow this page as a screencast, watch Getting started with the Bauplan CLI and SDK. The written steps are below.

Install the CLI and SDK

Install Bauplan as a uv tool, so the bauplan command is readily available in every directory:

uv tool install bauplan

# Validate the installation
bauplan version

To use the Bauplan SDK from a Python project, also add it to that project:

uv add bauplan

# Validate the installation
uv run bauplan version
tip

uv add installs into the project's virtual environment only; you will need to prepend uv run to any Bauplan command going forward. If you are running on an older version of Bauplan, upgrade to the latest one with

# If you installed Bauplan as a uv tool
uv tool upgrade bauplan

# If you installed Bauplan in a Python project
uv lock --upgrade-package bauplan && uv sync

The release notes are on GitHub.

Get an API key

If you just want to try Bauplan out, sign up for free to our public sandbox at app.bauplanlabs.com. If your company is on a paid plan, look out for an invitation e-mail from either the Bauplan team or your organization admin. Follow the steps in there to register your user to Bauplan and get started!

Either way, once you are registered, from the Bauplan web app at app.bauplanlabs.com, click API Keys from the menu on the left, and generate a new key. The key is shown only once: copy it before closing the dialog.

danger

Never share your API key publicly. Store it securely using environment variables or secrets management tools in your deployment workflows.

You can configure and verify the API key for Bauplan using the instructions in this video.

If this is your first time using Bauplan, run

bauplan config set api_key <your_api_key>

This will save the key you just created in the default profile in the configuration file you can find at ~/.bauplan/config.yaml. If you work with several organization or API keys, you can add named profiles to the same file

profiles:
default:
api_key: <your_api_key>
other-org:
api_key: <another_api_key>

and switch among them with --profile <name> on any CLI command, or specify a profile when building the Bauplan client in the SDK

import bauplan

client = bauplan.Client(profile="<name>")

To check that your credentials are wired up correctly, try to list the branches you can see; the output should contain at least main.

bauplan branch ls

Next steps

Set up your coding agent to work with Bauplan.