Install and run
The easiest way is the ready-made program: download the zip for your system from the releases page, unzip it and open askrgarden. No Python or Node needed; see Desktop programs. The rest of this page runs AskrGarden from its source folder, where everything is installed inside the repository folder: nothing goes into your system's Python or Node.
What you need
| Tool | Version | Used for |
|---|---|---|
| Python | 3.12 or newer (developed on 3.13) | the core, the command line, the local server |
| Node.js | 22 or newer | building the editor once (web/dist) |
| A browser | Edge, Chrome or Firefox | the editor; Edge or Chrome for the app window (--app) |
The core needs only one Python package, numpy.
Install on Windows
Open PowerShell in the repository folder:
py -3.13 -m venv .venv
$env:PIP_CACHE_DIR = "$PWD\.cache\pip"
.venv\Scripts\python -m pip install -r requirements.txt
cd web; npm install; npm run build; cd ..The first line makes a private Python environment in .venv. The last line builds the editor into web/dist; do it again after you update the source.
Install on macOS or Linux
python3 -m venv .venv
PIP_CACHE_DIR="$PWD/.cache/pip" .venv/bin/python -m pip install -r requirements.txt
(cd web && npm install && npm run build)Open the editor
.\askrgarden-cli.cmd serve --openThe editor opens at http://127.0.0.1:8770. On macOS and Linux use ./askrgarden-cli.sh the same way. .\askrgarden.cmd (./askrgarden.sh) starts it the way the released program does: in its own window, stopping when the window is closed.
| Option | What it does |
|---|---|
--open | opens your default browser on the editor |
--app | opens the editor in its own window, without the browser's bars (Edge or Chrome; otherwise the browser) |
--port 8780 | another port, if 8770 is taken |
--library D:\Trees | use this folder for your trees and exports for this run |
--exit-when-closed | stop the server once the editor window is closed |
The server listens only on your own computer (127.0.0.1). It has no accounts and is not meant to be put on a network.
Try the command line
.\askrgarden-cli.cmd new out\oak.treegen.json --preset broadleaf
.\askrgarden-cli.cmd export out\oak.treegen.json -f glb -o out\oakThe first command writes a project from a preset; the second builds it and writes out\oak\oak.glb with its textures and oak_export.json. Every command is listed in the command-line reference.
Run the tests (optional)
.venv\Scripts\python -m pytest -q testsIf something goes wrong
| Symptom | What to check |
|---|---|
| The browser shows a blank page or "not found" | the editor is not built: run npm run build in web/ |
py is not found | install Python 3.12+ from python.org, or use python instead of py -3.13 |
| Port 8770 is in use | serve --port 8780 |
--app opens a normal browser tab | Edge or Chrome was not found; the editor still works in the tab |