It runs on the libkrun virtualisation library and the rootfs is an unpacked ubuntu docker image. On VM startup a forked version of gotty is started so you can access the VMs terminal on localhost:3002 (port may vary).
I use GPT-4 + selenium + the browser terminal to have GPT-4 execute code in VM. Essentially creating a pair coding session.
A lot here is hacky, but the idea is to demonstrate & explore what a more integrated coding interaction would look like.