# Install behaviortree.cpp with Homebrew

Behavior Trees Library in C++. Version 4.9.1 via Homebrew; verified 2026-07-07.

## Install

```sh
sudo av install brew:behaviortree.cpp
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install behaviortree.cpp
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:behaviortree.cpp
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/behaviortree.cpp>
- **Version:** 4.9.1
- **Source summary:** Behavior Trees Library in C++
- **Homepage:** <https://www.behaviortree.dev/>
- **Repository:** <https://github.com/BehaviorTree/BehaviorTree.CPP>
- **Upstream docs:** <https://behaviortree.github.io/BehaviorTree.CPP>
- **License:** MIT
- **Source archive:** <https://github.com/BehaviorTree/BehaviorTree.CPP/archive/refs/tags/4.9.1.tar.gz>
- **Last updated:** 2026-07-07T13:00:36Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- bt4_nodes_model (cli)
- bt4_plugin_manifest (cli)
- bt4_nodes_model (alias)
- bt4_plugin_manifest (alias)

## Dependencies

- cppzmq
- zeromq

## Build dependencies

- cmake

## Uses from macOS

- sqlite

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.9.1
- Package-manager updated: 2026-07-07
- Local data: ok
- Upstream repository: https://github.com/BehaviorTree/BehaviorTree.CPP
- Upstream latest detected: 4.9.1 (current)
## Project history and usage

BehaviorTree.CPP is a C++17 behavior-tree framework used mainly in robotics, but also suitable for game AI and finite-state-machine replacement. The Homebrew package exposes its command-line utilities for node models and plugin manifests.

### Project history

The official repository was created on GitHub in October 2018, while the repository license credits earlier behavior-tree work from 2014-2018 before the current Davide Faconti-led project period. Public GitHub releases begin with a 2.0 beta in October 2018.

The README describes the library as flexible, easy to use, reactive, and fast, with XML-defined trees loaded at runtime, asynchronous actions as first-class citizens, plugins, dataflow between nodes, and logging/profiling infrastructure.

### Adoption history

BehaviorTree.CPP's adoption is strongly tied to robotics workflows: the README names robotics as its main use case, documents ROS 2/colcon support, and points to Groot2 for graphical editing. It also documents Conan, CMake, pixi/Conda, and vcpkg installation paths.

GitHub release history shows a steady line from 2.x releases in 2018 through 3.x, the 4.1 release preparing for Groot2 in 2023, and 4.9.0 in 2026. The repository metadata showed more than 4,000 stars and 800 forks when checked during enrichment, indicating broad use beyond a niche single-project dependency.

### How it is used

Developers embed the C++ library into applications that need reactive task execution. Behavior trees are commonly defined in XML, with custom tree nodes linked statically or loaded as plugins at runtime.

The packaged command-line tools support ecosystem workflows such as generating node model information and plugin manifests rather than serving as a standalone end-user application.

### Why package nerds care

BehaviorTree.CPP matters to package nerds because it packages robotics behavior-tree infrastructure as ordinary C++ tooling across Homebrew, vcpkg, Conan, ROS 2 builds, and source builds. That makes a research-and-robotics pattern consumable through mainstream developer dependency managers.

It is also a good example of a C++ library where the command-line package is useful mostly as build and metadata tooling around a larger embedded runtime.

### Timeline

- 2014-2018: Earlier behavior-tree code lineage credited in the repository license.
- 2018: GitHub repository created and 2.0 beta released.
- 2020: 3.3.0 release published.
- 2022: 3.7.0 release published.
- 2023: 4.1.0 release prepared the project for Groot2.
- 2026: 4.9.0 release published.

### Related projects

- Groot2 is the related graphical editor documented by the project.
- btcpp_sample is the official sample repository referenced for application use.
- ROS 2, vcpkg, Conan, and CMake are documented integration and packaging paths.

### Sources

- <https://behaviortree.github.io/BehaviorTree.CPP/>
- <https://github.com/BehaviorTree/BehaviorTree.CPP>
- <https://github.com/BehaviorTree/BehaviorTree.CPP/releases>
- <https://www.behaviortree.dev/>
- source_facts.repo


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** behaviortree.cpp
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [zeromq](https://www.automicvault.com/pkg/brew/zeromq/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [aarch64-elf-gcc](https://www.automicvault.com/pkg/brew/aarch64-elf-gcc/) - Shares av.db curated category or tags: c, cli, developer-tools.
- [abi-dumper](https://www.automicvault.com/pkg/brew/abi-dumper/) - Shares av.db curated category or tags: c, cli, developer-tools.
- [aklomp-base64](https://www.automicvault.com/pkg/brew/aklomp-base64/) - Shares av.db curated category or tags: c, cli, developer-tools.
- [astyle](https://www.automicvault.com/pkg/brew/astyle/) - Shares av.db curated category or tags: c, cli, developer-tools.
- [bbe](https://www.automicvault.com/pkg/brew/bbe/) - Shares av.db curated category or tags: c, cli, developer-tools.
- [bcpp](https://www.automicvault.com/pkg/brew/bcpp/) - Shares av.db curated category or tags: c, cli, developer-tools.
- [build2](https://www.automicvault.com/pkg/brew/build2/) - Shares av.db curated category or tags: c, cli, developer-tools.
- [byacc](https://www.automicvault.com/pkg/brew/byacc/) - Shares av.db curated category or tags: c, cli, developer-tools.
- [locust](https://www.automicvault.com/pkg/brew/locust/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, zeromq.
- [orbuculum](https://www.automicvault.com/pkg/brew/orbuculum/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, zeromq.

## Combined YAML source

View the package source record on GitHub. [combined/behaviortree.cpp.yml](https://github.com/automic-vault/db/blob/main/combined/behaviortree.cpp.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
