# BAML

CreateWithAI Hub page: https://createwithaihub.com/frameworks/baml
Latest version of this file: https://createwithaihub.com/frameworks/baml.md

- Type: Framework · Category: Harnesses & Frameworks
- Publisher: Boundary
- Pricing: Free · License: Apache-2.0
- Works with: Cursor, VS Code, JetBrains IDEs

Boundary's open-source language for type-safe LLM functions and structured outputs, callable from Python, TypeScript, Go and more.

BAML is an open-source language from Boundary for working with LLMs. The established version (v0) is a domain-specific language for writing typed LLM functions and prompts that generate a baml_client you call from Python, TypeScript, Go, Ruby, Rust, Elixir or over REST, with streaming, testing and model switching. BAML v1, now in public beta, is a separate full programming language for agents with a Rust-like type system, typed errors and built-in tests. Boundary Cloud is an optional hosted service with a free tier.

Useful for: Defining a typed extraction function once in BAML, testing it in the editor, and calling it from both a Python service and a TypeScript app.

## Key features

- Typed LLM functions and prompts in .baml files that generate a client library
- Host-language support for Python, TypeScript, Go, Ruby, Rust and Elixir, plus a REST API
- Streaming, testing of functions and switching between LLMs
- Editor extensions for VS Code, Cursor, JetBrains and Zed
- BAML v1 (public beta): standalone language with built-in tests and agent stdlib
- Docs MCP server for coding agents

## Connection

- Language: Python, TypeScript / JS, Go
- Focus: Agents & tool use
- Model support: Multi-provider

## Install steps from the official documentation

Python (v0):

```
pip install baml-py
baml-cli init
```

TypeScript (v0):

```
npm install @boundaryml/baml
npx baml-cli init
```

BAML v1 (README):

```
brew install baml
baml init
```

## Limitations

- docs.boundaryml.com documents v0 (the legacy DSL); v1 is a separate language in public beta with different docs
- Requires a code-generation step (baml-cli generate) when using v0 from a host language

## Official links

- Website: https://www.boundaryml.com
- Source repository: https://github.com/BoundaryML/baml
- Documentation: https://docs.boundaryml.com
- Source: https://github.com/BoundaryML/baml (README (canary branch): v1 description and install commands; LICENSE: Apache-2.0)
- Source: https://docs.boundaryml.com/home (v0 DSL for structured outputs; version notice about v1 public beta; docs MCP server URL)
- Source: https://docs.boundaryml.com/guide/installation-language/python.md (pip install baml-py, baml-cli init / generate; language guides listed in llms.txt (Python, TypeScript, Go, Ruby, Rust, Elixir, REST))
- Source: https://docs.boundaryml.com/guide/installation-language/typescript.md (npm install @boundaryml/baml, npx baml-cli init)
- Source: https://www.boundaryml.com/pricing (Boundary Cloud: Starter $0 (1 GB ingestion/month), Volume $250/month billed annually; language and local toolchain free and open source)
