Skip to content
Sign in
  • Browse all toolsFilter by category and pricing
  • Browse categoriesWriting, code, image, audio and more
  • Compare toolsPut up to three side by side
  • Read the blogGuides and comparisons

BAML

An open-source programming language for AI agents with typed outputs, concurrency and built-in observability.

BAML is a programming language for building AI agents and observable applications. BAML supports typed AI functions, tool calls, concurrent execution and detailed tracing for developers working across development and production. BAML is free to use, open source under Apache 2.0, and requires no internet for the language itself.

Updated 15 Nov 20266 sections

At a glance

Pricing
FreeBAML is free to use and open source under the Apache 2.0 licence. Boundary Cloud is presented separately with an early-access option.
Added
15 Nov 2026
BAML website screenshot

What is BAML?

BAML is an open-source programming language for building AI agents and applications with built-in observability. BAML serves developers who need typed model outputs, tool-calling functions and visibility into execution. The website distinguishes BAML, the language, from Boundary Cloud, the accompanying software stack for development and production.

BAML uses TypeScript-like syntax and presents correctness, concurrency and reflection as language design priorities. The website calls the approach hyperobservability: observability that is always on by default. The examples contrast automatically recorded execution details with application code that manually adds tracing, counters and timing measurements.

What BAML can do

BAML combines AI-specific function definitions with general programming capabilities. The examples show agents returning typed answers or follow-up questions, tools implemented as ordinary functions, and ticket classifiers running concurrently. BAML also exposes execution details such as prompt rendering, request construction, model invocation and output parsing.

  • BAML defines AI agents as functions with tools.
  • BAML returns typed results, including union types.
  • BAML runs concurrent work with green threads and futures.
  • BAML checks declared error handling with baml check.
  • BAML includes reflection, type-safe evaluation and unit tests.
  • BAML records internal function and model-call traces.

How BAML works

BAML functions can declare a model client, a prompt, tools and a return type. In the support-agent example, the model calls customer-lookup and ticket-search functions until an answer is available. Documentation on those tool functions tells the model what each tool does, while the declared union type represents either an answer or a follow-up question.

BAML uses spawn to start work on a green thread and return a future. The ticket-triage example waits for all futures and returns labels in the input order. The wider stack also shows commands for checking, testing, packaging, querying, dashboards and alerts, with SQL queries over recorded spans.

Who BAML is for

BAML targets engineers developing AI-backed software, particularly applications where model calls interact with ordinary application functions. The website uses support workflows to illustrate agent tools, classification and incident investigation. The accompanying query examples address teams tracking function latency, classification distributions and changes in model output.

  • BAML supports support agents that look up customers and search tickets.
  • BAML supports ticket classification into billing, bug and other labels.
  • BAML supports concurrent classification of incoming tickets.
  • BAML traces help developers inspect execution inside agent tools.

BAML pricing and access

BAML is free to use and open source under the Apache 2.0 licence. The website states that BAML requires no internet, and the application metadata lists macOS, Windows and Linux. Boundary Cloud is presented separately as the hyperobservable stack, with an early-access option rather than a published paid-plan breakdown.

BAML strengths and limitations

BAML brings typed agent functions, concurrency and execution visibility into the same language. The examples make model outputs and error paths explicit while exposing internal execution steps without the manual tracing code shown in the comparison. BAML is also described as incrementally adoptable, rather than requiring immediate replacement of an entire existing toolchain.

  • BAML adoption involves writing functions in the BAML language.
  • BAML's accompanying observability stack lists redaction as coming soon.
  • Boundary Cloud is presented through an early-access option.

BAML FAQ

What is BAML?

BAML is an open-source programming language for AI agents and observable applications. BAML combines typed AI functions, tool calls, green-thread concurrency and built-in tracing. The website presents BAML as the language and Boundary Cloud as the accompanying development and production stack.

Is BAML free?

BAML is free to use and open source under the Apache 2.0 licence. The website also states that BAML requires no internet. Boundary Cloud is presented separately with an early-access option, without a published paid-plan breakdown in the supplied page.

What can developers build with BAML?

BAML supports AI agents with tools, typed classification functions and concurrent workflows. The website demonstrates a support agent that looks up customers and searches tickets, plus a triage function that classifies tickets concurrently and returns labels in the original input order.

How does BAML handle observability?

BAML provides built-in execution tracing that exposes function calls and model-call stages, including prompt rendering, request construction and output parsing. The accompanying stack provides a SQL-based query API for turning recorded spans into metrics, dashboards and alerts.

Does BAML support typed outputs and error checking?

BAML supports typed return values, including union types that represent alternative model responses. BAML also supports typed errors. The website demonstrates baml check rejecting a function declared with throws never when an error path remains unhandled.

Does BAML support concurrent execution?

BAML supports concurrent execution through green threads and futures. The website shows spawn starting classification work and immediately returning a future, followed by baml.future.all waiting for the results and preserving the order of the input tickets.

From the community

No reviews yet

Be the first to review this tool. What you write helps the next person choose.

More tools like BAML

LMQL

www.lmql.ai

A programming language for LLM prompting with types, templates, constraints and Python control flow.

Freemium

SigNoz

www.github.com

OpenTelemetry-native observability for logs, metrics, traces, infrastructure, and AI applications.

Freemium

AgentField

www.github.com

Open-source control plane for building, running, and scaling AI agents as REST APIs.

Free

AxonHub

www.github.com

Open-source AI gateway for model routing, SDK compatibility, request tracing and cost control.

Free