Quickstart
This guide installs a single converged node—control plane, Postgres, and microVMs on one box. Plan on about an hour, most of it spent building the Nix image. Check Requirements before starting.
1. Build the tools and installer
Section titled “1. Build the tools and installer”-
Clone the repo and enter the dev shell:
Terminal window git clone https://github.com/leftshiftlabs/anastrocd anastronix develop -
Install
anastroctlonto yourPATH:Terminal window cargo install --path crates/anastroctl -
Build the installer image.
For production, follow Build images to build and sign an installer with your own Secure Boot keys.
For a quick unsigned local VM test only, build the development ISO:
Terminal window nix build .#nixosConfigurations.dev-node-x86_64.config.system.build.developmentIso# Use dev-node-aarch64 for an ARM node.The ISO lands in
./result. Development images requiresecure_boot = falsein the node config below and can never be promoted to production upgrades.
2. Initialize the config repo
Section titled “2. Initialize the config repo”-
Generate a single-node config repo, passing the LAN CIDR your node lives on:
Terminal window anastroctl cluster init ~/my-cluster --cidr 10.10.0.0/24cd ~/my-cluster && git initThis creates
anastro.toml,nodes/node1.toml, and an encryptedsecrets.agebundle (database passwords, encryption keys, and the admin recovery key). On first run it also creates your operator key and age identity in~/.config/anastro/, wires them into the config, and validates the repo. The#:schemaheader on each TOML file gives editors with Taplo or Even Better TOML instant autocomplete and validation. -
If you built the unsigned development ISO, add this to
nodes/node1.toml:[node.boot]secure_boot = falseProduction nodes keep the default (
true).
Back up ~/.config/anastro/ somewhere safe: your operator key controls the cluster, and your age
identity is the only key that can decrypt secrets.age.
3. Install the node
Section titled “3. Install the node”-
Boot the machine from the installer. It comes up in maintenance mode and prints a ticket (
<endpoint id>@<address>) plus a QR code on its console. -
Inspect its hardware to get disk IDs and MAC addresses:
Terminal window anastroctl node inspect <ticket> -
Edit
nodes/node1.tomlto setinstall_diskto your target/dev/disk/by-id/…path. To assign a static IP instead of DHCP, add an interface block:[[node.network.interfaces]]match = { mac = "bc:24:11:00:00:01" }dhcp = falseaddresses = ["10.10.0.11/24"]gateway = "10.10.0.1"dns = ["10.10.0.1"] -
Push the first config. The node installs itself to
install_disk, seals its/varencryption key to the TPM, and reboots into the installed OS (remove the installer media afterward):Terminal window anastroctl cluster apply -n node1 --maintenance <ticket>
Anyone who can reach a node in maintenance mode can claim it, so keep fresh machines on a trusted network until they’re installed.
4. Bring the cluster up
Section titled “4. Bring the cluster up”-
Add the node entry that
apply --maintenanceprinted to~/.config/anastro/config.toml:current = "test"[contexts.test]nodes = [{ name = "node1", node_id = "<endpoint id>", addrs = ["10.10.0.11:7444"] },] -
Unseal the node with its secrets and wait for all services to start:
Terminal window anastroctl cluster bootstrap -
Verify the node is healthy (
--as-operatorauthenticates with your operator key):Terminal window anastroctl --as-operator node status
5. Sign in and start a thread
Section titled “5. Sign in and start a thread”When a cluster has no users yet, anastroctl cluster bootstrap automatically enrolls the device
you ran it from as the first admin. Re-running bootstrap later won’t replace an existing admin.
-
Open the web UI, already signed in as your device:
Terminal window anastroctl ui -
Link a model account for your org. ChatGPT (
codex) uses a one-time device code; OpenAI and Anthropic API keys prompt for the key; Claude subscriptions take aclaude setup-tokentoken in Settings → Inference (or via CLI):Terminal window anastroctl inference account add codex -
Start a one-off thread, or create a project for ongoing work:
Terminal window anastroctl thread create --one-off "Help me explore this cluster"# Or group related work in a project:anastroctl project create demoanastroctl thread create --project demo "Write a hello world web server in Go and run it"The agent spins up a machine and gets to work, pausing for approval before commands in supervised mode. Follow along in the UI.
Next steps
Section titled “Next steps”- Threads: steering, approvals, rollback, and forks.
- Machines and Environments: give machines the tools your project needs.
- Backups: set these up before putting real work on the cluster.
- Cluster overview: scale up to three nodes for high availability.