# Browser-based BehaviorTree.CPP editor with Nav2 import/export (free, open source)

**URL:** <https://discourse.openrobotics.org/t/browser-based-behaviortree-cpp-editor-with-nav2-import-export-free-open-source/59508>\
**Category:** Projects\
**Tags:** ros2\
**Created:** [November 4, 2026, 12:05am UTC](https://discourse.openrobotics.org/t/browser-based-behaviortree-cpp-editor-with-nav2-import-export-free-open-source/59508 "2026-11-04T00:05:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alanhoskins](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/alanhoskins/32/36358_2.png) [@alanhoskins](https://discourse.openrobotics.org/u/alanhoskins)\
**Post date:** [November 4, 2026, 12:05am UTC](https://discourse.openrobotics.org/t/browser-based-behaviortree-cpp-editor-with-nav2-import-export-free-open-source/59508/1 "2026-11-04T00:05:25Z")

</div>

I maintain [behaviortrees.com](https://www.behaviortrees.com), a free, open-source visual behavior tree editor that runs in the browser. It imports and exports BehaviorTree.CPP XML (v4 for Jazzy and Groot2, v3.8 for Humble), including Nav2’s navigate-to-pose trees. Changes to the BT.CPP support are checked in CI by loading the editor’s exports into the real BT.CPP v4 and v3.8 libraries via Docker.

It also comes with:

- **A CLI for CI pipelines:** `npx behaviortrees validate tree.xml` catches dangling children, nodes with two parents, cycles and malformed decorators. `npx behaviortrees convert` converts between BT.CPP v3 and v4 XML and behavior3 JSON.
- **An MCP server** (`https://www.behaviortrees.com/mcp`), so AI assistants like Claude can draft a tree, validate it, and hand you a link that opens it in the editor.

It’s meant to complement Groot2, not replace it: there’s nothing to install, and it’s quick for sketching, reviewing or sharing a tree. A link carries the whole tree, so you can drop one in an issue or PR comment.

I’d especially like feedback from Nav2 users: what’s missing, and which trees don’t round-trip cleanly?

Source: [GitHub - behaviortrees/behaviortrees: Visual editor for behavior trees — behaviortrees.com · GitHub](https://github.com/behaviortrees/behaviortrees)
