Skip to content

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. Clone the repo and enter the dev shell:

    Terminal window
    git clone https://github.com/leftshiftlabs/anastro
    cd anastro
    nix develop
  2. Install anastroctl onto your PATH:

    Terminal window
    cargo install --path crates/anastroctl
  3. 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 require secure_boot = false in the node config below and can never be promoted to production upgrades.

  1. 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/24
    cd ~/my-cluster && git init

    This creates anastro.toml, nodes/node1.toml, and an encrypted secrets.age bundle (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 #:schema header on each TOML file gives editors with Taplo or Even Better TOML instant autocomplete and validation.

  2. If you built the unsigned development ISO, add this to nodes/node1.toml:

    [node.boot]
    secure_boot = false

    Production 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.

  1. 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.

  2. Inspect its hardware to get disk IDs and MAC addresses:

    Terminal window
    anastroctl node inspect <ticket>
  3. Edit nodes/node1.toml to set install_disk to 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 = false
    addresses = ["10.10.0.11/24"]
    gateway = "10.10.0.1"
    dns = ["10.10.0.1"]
  4. Push the first config. The node installs itself to install_disk, seals its /var encryption 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.

  1. Add the node entry that apply --maintenance printed to ~/.config/anastro/config.toml:

    current = "test"
    [contexts.test]
    nodes = [
    { name = "node1", node_id = "<endpoint id>", addrs = ["10.10.0.11:7444"] },
    ]
  2. Unseal the node with its secrets and wait for all services to start:

    Terminal window
    anastroctl cluster bootstrap
  3. Verify the node is healthy (--as-operator authenticates with your operator key):

    Terminal window
    anastroctl --as-operator node status

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.

  1. Open the web UI, already signed in as your device:

    Terminal window
    anastroctl ui
  2. 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 a claude setup-token token in Settings → Inference (or via CLI):

    Terminal window
    anastroctl inference account add codex
  3. 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 demo
    anastroctl 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.

  • 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.