Disposable, multi-engine Linux sandboxes and autonomous agent workstations, orchestrated with Docker Compose. Reproducible environments with host UID/GID sync, non-root execution, accurate resource reporting via LXCFS, optional Cloudflare Tunnel access, and the HeLa MCP + agent stack pre-wired.
git clone https://github.com/1999AZZAR/ghost-machines.git
cd ghost-machines
make setup-host # Linux: LXCFS, once
./start.sh --prebuilt ubuntu -m single # pull the image, 1 machine
ssh -p 2223 developer@localhost # password: ghostThen, when you are done:
./start.sh stop # containers go away, mounts/ and images stayFull walkthrough, including the local-build alternative: docs/getting-started.md.
| Four engines | Ubuntu, Debian, Alpine, Arch — same toolchain, published multi-arch (amd64/arm64) images. |
| Two image sources | Prebuilt GHCR (pull, ~1 min) or local build (5–15 min). Same resolution rules, no surprises. |
| Real permissions | developer account synced to your host UID/GID; work lives in mounts/ on the host, never in the container. |
| Agent stack | OpenCode v2, Antigravity CLI (agy), RTK and Google Conductor, plus one HeLa MCP runtime endpoint (default dev-workspace, 234 tools). Harnesses refresh to latest on every start. |
| Multi-tenant | tenant.sh gives each user an isolated container, port, quota and workspace. |
| Disposable by design | Stop, rebuild, re-pull — your files survive. Snapshots with SHA-256 verification and atomic restore. |
| Optional remote access | Cloudflare Tunnel profile, no port-forwarding. |
Start at the docs index (or the web version, rebuilt automatically from docs/ on every push to master). A 3-minute tour is embedded on the home page.
| If you want to… | Read |
|---|---|
| Install and connect in five minutes | Getting Started |
| Choose prebuilt vs local build, pin a version, upgrade or roll back | Images |
| Know what is installed and which engine to pick | Engines & Toolchain |
| Start, stop, pause, restart, back up or delete safely | Lifecycle & Cleanup |
| SSH in, use keys, forward a dev server, open it in an IDE | Connecting |
| Look up an environment variable | Configuration |
| Understand the boot sequence and components | Architecture |
| Give several people their own sandbox | Multi-Tenant |
| Harden a sandbox before exposing it | Security & Hardening |
| Fix something | Troubleshooting |
| Just have the commands on one page | Cheatsheet |
| Modify images, add an engine, release | Contributing |
./start.sh --prebuilt debian -m single --pull # newest image
./start.sh -e arch -m power --build # local build, heavy profile
./start.sh status # containers, images, SSH ports
./start.sh stop # remove containers, keep work
make snapshot && make restore # backup / restore mounts/
./tenant.sh add alice --prebuilt --engine debian --cpu 2 --mem 4GDefault credentials: developer / ghost, and sudo uses the same password. These are dev defaults — read Security before exposing a sandbox.
Docker Engine 20.10+ with Compose v2, on Linux, macOS (Docker Desktop/OrbStack) or Windows (WSL2), x86_64 or arm64. LXCFS is optional and Linux-only.
start.sh / clean.sh / tenant.sh orchestration and lifecycle
snapshot.sh / restore.sh backup with verification
entrypoint.sh first boot inside the container
harness-update.sh keeps opencode, agy, rtk on latest
Dockerfile, Dockerfile.debian, four engine images
Dockerfile.alpine, Dockerfile.arch
docker-compose.yml main topology (+ templates/ for tenants)
tests/ bash suites, incl. doc/code parity checks
docs/ markdown source; docs/site is generated
make lint # shellcheck, bash -n, compose schema
make test # 9 suites: lint, security, engines, CLI, snapshot, MCP, toolchain, tenants, docs
make docs # regenerate the static site from docs/*.mdSee Contributing for the test matrix, documentation rules and release process.
MIT — see LICENSE. Bundled upstream tools keep their own licenses.
