The home of behavior trees

Build and simulate game AI 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.

Watch agents think →

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.

Three blocky characters in a 3D meadow, each labelled with the behavior tree node it is running: Patroller, Coward and Guard.

Everything you need to go from idea to engine

Visual builder

Compose sequences, selectors, parallels and decorators. Rename, reorder and tune nodes, with validation as you go.

Live 3D preview

Your tree drives a real character in a 3D world. Move the intruder, drop its health, and watch each node light up.

Engine code

One engine-agnostic .beetree.yaml, native output for Unity (C#), Unreal (C++) and Godot (GDScript).

Share and discuss

Publish trees, collect likes and comments, fork what others made, and trade patterns in the forum.

REST API

Everything the site does is an API call. OpenAPI 3 spec and Swagger UI included.

MCP server

Let Claude and other agents validate, simulate, render and generate trees through the Model Context Protocol.

Start from a template

Five trope templates, each runnable in the live 3D preview.

Run them in 3D

A tree is just readable YAML

Write it by hand, build it in the browser, or generate it from the CLI. Every tool speaks the same format.

Read the format guide

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}

The CLI, too

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

CLI guide Command reference

Ready to build your first tree?

Sign up free

You must be 18 or older to create an account.