Visual builder
Compose sequences, selectors, parallels and decorators. Rename, reorder and tune nodes, with validation as you go.
The home of behavior trees
Build behavior trees, watch your agents run them live in 3D, learn the craft, and trade ideas with a community of game AI designers.
curl -fsSL https://beetreecraft.com/install.sh | sh
Install the CLI, or try Explore and the builder now: no account needed to build. Saving asks you to sign in.

Compose sequences, selectors, parallels and decorators. Rename, reorder and tune nodes, with validation as you go.
Your tree drives a real character in a 3D world. Move the intruder, drop its health, and watch each node light up.
One engine-agnostic .beetree.yaml, native output for Unity (C#), Unreal (C++) and Godot (GDScript).
Publish trees, collect likes and comments, fork what others made, and trade patterns in the forum.
Everything the site does is an API call. OpenAPI 3 spec and Swagger UI included.
Let Claude and other agents validate, simulate, render and generate trees through the Model Context Protocol.
Five trope templates, each runnable in the live 3D preview.
Greet customers, otherwise restock, mind the counter and take tea.
Patrol, spot intruders, chase them down and attack.
Runs from intruders and recovers when safe.
Ranged opener, melee up close, retreat and heal when hurt.
Defend the owner when a threat appears, otherwise stay close.
Write it by hand, build it in the browser, or generate it from the CLI. Every tool speaks the same format.
version: "1.0"
metadata:
name: guard
tree:
type: selector
name: guard_ai
children:
- type: sequence
name: combat
children:
- {type: condition, name: can_see_target}
- {type: action, name: chase_target}
- {type: action, name: patrol}For pipelines and terminal people.
$ beetree validate guard.beetree.yaml
✓ guard.beetree.yaml is valid (5 nodes)
Next: beetree simulate guard.beetree.yaml # run the tree once and see what each node returns
$ beetree simulate guard.beetree.yaml --override can_see_target=FAILURE
Simulation: guard_ai → SUCCESS
──────────────────────────────────────────────────
▶ ? guard_ai
▶ → combat
● ¿ can_see_target → FAILURE
◀ → combat → FAILURE
● ! patrol → SUCCESS
◀ ? guard_ai → SUCCESS
Next: beetree generate godot guard.beetree.yaml # or unity, unreal: engine code for this tree
$ beetree generate godot guard.beetree.yaml
Generated 6 files in generated/godot
Next: copy generated/godot into your Godot project (its README.md says how); to change the tree: beetree builder guard.beetree.yaml