Skip to content
B

Bonsai

Rust implementation of behavior trees for deterministic AI

by SollimannFree

#1926in AI
0In stores

Description

Bonsai is an open source Rust implementation of behavior trees, with Python bindings, for building deterministic AI. A behavior tree is a da…

Highlights

  • Behavior trees in Rust with Python bindings
  • Sequence, Select, If, Invert, Timeout, While and more
  • Success, Failure and Running node signals
  • Available on crates.io and PyPI (bonsai-bt)
  • Examples and a development guide

Ratings & Reviews

No ratings yet

Be the first to rate Bonsai.

People also visit

A

ai-behavior-trees-utility-ai

Build a production behavior-tree runtime

AI Skills
Get
U

unreal-behavior-trees

Unreal AI behavior trees and blackboards

AI Skills
Get
M

msw-behaviourtree

Authors MSW `.behaviourtree` files end-to-end

AI Skills
Get
G

game-ai

FSMs, behavior trees, steering and pathfinding

AI Skills
Get
R

Rustcrab

An Open Source project with everything you need to learn about Rust

AI
Launch
R

Rosa

ROSA is an AI Agent designed to interact

AI
Launch

Bonsai FAQ

What is Bonsai?

A Rust library for behavior trees, used to build modular, reactive and deterministic AI, with Python bindings.

How do I add it to a Rust project?

Bonsai is on crates.io; add it as a dependency in your Cargo.toml.

Can I use it from Python?

Yes. Install bonsai-bt from PyPI; examples are in the bonsai-py folder.

Which node types are available?

The README covers Sequence, Select, If, Invert, AlwaysSucceed, Timeout and While, among others.

What are the best Bonsai alternatives?

Popular alternatives to Bonsai include Rustcrab, Rosa and Bespoke Automata. See all Bonsai alternatives

Developer Stuff

Badges