Get early access

Adopting Boundary and BAML

Get in touch

Not sure BAML fits your use case? Talk to us. Our docs are still catching up while we focus on the engineering, so we’d rather help you directly.

$ curl -fsSL https://pkg.boundaryml.com/install.sh | sh -s

On Windows, or with Homebrew? Other ways to install

Recommended

Adopt BAML incrementally

BAML generates a typed SDK for most languages, so your app calls it like its own code.

Open source
Apache 2.0
Hyperobservability locally
SQLite
Hyperobservability in production
Boundary Cloud, in early access
baml_src/triage.baml
enum Label {
  BILLING
  BUG
  OTHER
}

function classify_ticket(body: string) -> Label {
  client: "openai/gpt-5-mini"
  prompt: `
    ${role("user")}
    Label this support ticket.
    ${body}

    ${ctx.output_format()}
  `
}

function triage(
  body: string,
  // Your own code comes in as a function.
  escalate: (string) -> string,
) -> string {
  match (classify_ticket(body)) {
    Label.BUG => escalate(body),
    Label.BILLING => "sent to billing",
    Label.OTHER => "answered from the docs",
  }
}
src/tickets.rs
use baml_sdk::triage;
use linear::{Client, Error, IssueCreateInput};

// A regular Rust function.
async fn escalate(
    body: String,
) -> Result<String, Error> {
    // Reads LINEAR_API_KEY.
    let client = Client::from_env()?;
    let issue = client
        .create_issue(IssueCreateInput {
            team_id: TEAM_ID.into(),
            title: body,
            ..Default::default()
        })
        .await?;
    Ok(issue.url)
}

let result =
    triage(ticket.body.clone(), escalate).await?;
$ baml generate add rust && baml generatethen the runtime downloads on first use
Pass a lambda in. BAML calls your code back, in your language.

Send your OTel traces to Boundary Cloud

Works with whatever your backend is written in.

Good to know. Since it’s OTel, we can’t do much for performance or storage.

  1. 1

    Boundary Cloud is in early access. Get early access to start.

  2. 2

    Point the OpenTelemetry exporter your services already use at Boundary Cloud.

    OTEL_EXPORTER_OTLP_ENDPOINT=<your Boundary Cloud endpoint>
  3. 3

    Redeploy. No code changes, in any language.

Write new services in BAML

For new services, where there is nothing to migrate.

Don’t rewrite your codebase in BAML yet. Its standard library and package ecosystem are still young. Keep the code that works, and move over only the functions that gain the most.

Open source
Apache 2.0
Hyperobservability locally
SQLite
Hyperobservability in production
Boundary Cloud, in early access
  1. 1

    Start a project.

    baml new my-service
  2. 2

    Run any function or script.

    baml run -f handle_ticket
  3. 3

    Ship it as one self-contained binary, no host language.

    baml pack -f handle_ticket