How it works
Anastro has two halves: what you use every day (threads, machines, and workspaces) and the cluster underneath. You can use the first without worrying much about the second.
Threads
Section titled “Threads”A thread is a conversation with an agent. Start one from the web UI or with
anastroctl thread create, and the agent works through tools: running shell commands, editing
files, opening a browser, asking questions, and tracking a task list.
A thread starts without compute. When it needs somewhere to run code, it creates a machine or attaches an existing one in the project. You can message it mid-run to steer it, and in supervised mode it pauses for your approval before running commands or taking external actions.
Threads live on the control plane, not on any single machine. If the node running a thread goes down, another control-plane node picks it up.
Machines
Section titled “Machines”A machine is an isolated sandbox—a Linux microVM under Cloud Hypervisor—with its own disk and workspace (the project files you and the agent edit). Machines belong to a project and attach to at most one thread at a time, so two agents never fight over the same files.
Machines only burn CPU and memory while in use. After 15 minutes of inactivity, a machine snapshots itself and stops, then wakes back up on the next command or terminal—possibly on another compatible host. Machines can boot from a Nix flake environment, and projects can set defaults for both environments and worker capabilities.
Snapshots, rollback, and fork
Section titled “Snapshots, rollback, and fork”After every command that modifies files, Anastro snapshots the machine’s workspace and links it to that step in the thread log. Because the log knows what every machine looked like at every turn:
- Roll back a thread to an earlier turn and every machine it used rewinds to its files from that point. The undone turns stay tucked into a side branch you can roll forward to later.
- Fork a thread at any turn to explore another direction. The fork gets copies of the machines as they were then; the original keeps going untouched.
- Restore any machine directly to an earlier snapshot in its history.
Rollback only rewinds the cluster—it can’t undo a git push or an external API call.
The cluster
Section titled “The cluster”A cluster has one control-plane node, or three or five for high availability. Every Linux node
boots the same immutable OS image built with Nix: a signed, read-only system bundling Postgres,
the API, the scheduler, and the agent runtime. Nodes can also carry the worker role to run
machines; on a small cluster, every node does both.
There is no SSH into nodes. You keep the cluster configuration in a git repo (anastro.toml plus
one short file per node), and anastroctl signs and applies it. Health checks, logs, upgrades,
backups, and node replacement all go through anastroctl too.
| Nodes | Database | Survives |
|---|---|---|
| 1 | Standalone Postgres | Nothing—rely on backups |
| 3 | Postgres with two replicas (each commit waits for one) and automatic failover | One node failing |
| 5 | Postgres with four replicas and automatic failover | Two nodes failing |
anastroctl connects to nodes over iroh—key-authenticated peer-to-peer
QUIC—so your cluster needs no public IP or open inbound TCP port. anastroctl ui opens the web UI
in your browser over that same connection.
Credentials
Section titled “Credentials”The control plane keeps sensitive credentials out of machines:
- Models. Link a ChatGPT, Claude, or Antigravity plan—or an OpenAI or Anthropic API key—once per org. Threads talk to models through the cluster’s gateway; provider keys never reach a machine.
- GitHub. A cluster GitHub App mints repo-scoped git tokens that expire within an hour.
- Secrets. Project secrets come from 1Password and are injected into commands, terminals, or excluded files, with values scrubbed from output. Changing bindings or permissions invalidates running machines’ secret caches, and agents can save new secrets through a helper without printing them.
- Requirements: hardware and workstation prerequisites.
- Quickstart: install a single-node cluster and start your first thread.