A game player
Plays OpenTTD while you watch over VNC.
Python · Node.js · Rust

It runs a transport company
It finds towns and cargo, builds roads, stations and airports, and buys vehicles, through the skill's ttd.py.
- towns --limit 5largest towns first
- road FROM TObuilds the road
- depot PLACEwhere vehicles are bought
- buy --depot X,Y --engine IDvehicles, with their orders
- wait DAYSlets the game run, then reports
It looks before it decides
It screenshots the map and reads it, and checks reports for idle vehicles and cargo piling up.
- look PLACEa screenshot it reads
- reportidle vehicles, cargo piling up
- stationswhat waits, and the ratings
- vehiclesprofit this year and last
You watch it play
The game runs in its own VM. Open the VNC address to watch, with the password openttd.
- debian:trixie-slimwith OpenTTD; the display abin serves its screen
- vnc://localhost:5901watch it, password openttd
- OPENTTD_YEARS3 years by default
- /artifactsnotes, screenshots, saved games
Run it
git clone https://github.com/brekkylab/ailoy
git clone https://github.com/brekkylab/ailoy-examples
cd ailoy-examples/gameplay/python
uv run main.pygit clone https://github.com/brekkylab/ailoy
git clone https://github.com/brekkylab/ailoy-examples
(cd ailoy/bindings/node && npm install && npm run build)
cd ailoy-examples/gameplay/node
npm install
npm startgit clone https://github.com/brekkylab/ailoy
git clone https://github.com/brekkylab/ailoy-examples
cd ailoy-examples
cargo run --example gameplayneeds a logged-in Claude Code, Codex or Gemini CLI, or an API key
Run your first agent
in its own microVM
Install the package, name a model and run it