Skip to content

Fleet

The commands that pair your Astranize machines over Tailscale, and the --machine flag that sends a command to another machine.

7 min read8 pages in CLI reference

A Fleet lets you drive Astranize on one of your machines from another, for example run tasks on a desktop while you watch from a laptop. The machines talk over Tailscale, your private network. One machine turns on remote access and gives out a pairing code. The other adds it with that code, and from then on can send it commands with --machine.

There are two sides, and each has its own command. remote is the side being reached: whether other machines may reach this one. machines is the side doing the reaching: the machines this one sends commands to. Both act on the whole machine, so they take no --workspace, and both start the daemon on demand. For the whole flow step by step, see Connect a machine.

remote decides whether other machines may reach this one. It turns remote access on and off, gives out pairing codes and manages the machines that paired with this one.

Terminal window
astranize remote
{"type":"remote","enabled":true,"port":47600,"address":"100.64.0.7","listening":true,"machine":{"id":"889e583b-1ef3-4274-b522-e38da9c71f44","name":"studio-mac"},"pairing":{"expiresAt":"2026-11-20T02:39:00.113Z"},"error":null}

Remote access is on, and this machine, studio-mac, listens on its Tailscale address. A pairing code is open until expiresAt; the status never shows the code itself.

Turn remote access on, then ask for a code:

Terminal window
astranize remote enable
astranize remote code
{"type":"pairing_code","code":"K7QM-3XPA","expiresAt":"2026-11-20T02:39:00.113Z"}

The code works once and expires after 10 minutes. remote code is the only command that prints it. Type it on the other machine with machines add.

To see who paired, and to cut one off:

Terminal window
astranize remote clients
astranize remote revoke <client-id>
{"type":"remote_clients","clients":[{"id":"c-…","name":"laptop","createdAt":"…","lastSeenAt":"…"}]}
Terminal window
astranize remote
astranize remote enable
astranize remote disable
astranize remote code
astranize remote clients
astranize remote revoke <client-id>
astranize remote rename --name <name>
Action Effect Prints
(none) Show the status. remote
enable Turn remote access on and listen on the Tailscale address. remote
disable Turn it off, stop listening and cancel the pairing code. remote
code Give out a one-time pairing code, valid for 10 minutes. pairing_code
clients List the machines paired with this one. remote_clients
revoke <id> Revoke a paired machine and close its open streams. remote_clients
rename --name <name> Rename this machine as the others see it, 1 to 40 characters. remote

The remote line has these fields:

Field Meaning
enabled Whether remote access is on. Saved in remote.json.
port The port it listens on. Default 47600; set it in remote.json, from 1024 to 65535.
address This machine’s Tailscale address, or null when Tailscale is not up.
listening Whether the remote listener is open. It only opens on the Tailscale address and only serves machines on your tailnet.
machine This machine’s id and name, from machine.json. The name defaults to the computer’s name.
pairing When the open pairing code expires, as { expiresAt }, or null. The code itself only comes from remote code.
error Why the listener could not open, or null.
Error Cause
remote access is off: turn it on before pairing code while remote access is off.
remote takes one of: enable, disable, code, clients, revoke, rename Unknown action.
remote revoke takes the client id No id.
no paired client with id "c-1" Unknown id.
remote rename takes --name No name.
machine name must not be empty --name ''.

machines is the other side: the machines this one sends commands to. You add a machine with the code it gave you, then refer to it by its key.

Terminal window
astranize machines add --address studio-mac --code K7QM-3XPA
{"type":"machines","machines":[{"key":"studio-mac","id":"889e583b-1ef3-4274-b522-e38da9c71f44","name":"studio-mac","address":"100.64.0.7","port":47600,"status":"connected","since":"2026-11-20T02:40:12.000Z","error":null}]}

The machine is paired, connected and known by the key studio-mac. The address must resolve to a Tailscale address. The token the other machine hands back is kept in your Vault as a paired_client_token, which is why the Vault must be unlocked.

To see which workspaces it has:

Terminal window
astranize machines workspaces studio-mac
{"type":"workspaces","workspaces":["notes","site"]}
Terminal window
astranize machines
astranize machines add --address <host> --code <code> [--port 47600]
astranize machines remove <key>
astranize machines workspaces <key>
Action Flags Effect Prints
(none) List the paired machines and their connection status. machines
add --address (required), --code (required), --port (default 47600) Pair with a machine using its code. machines
remove <key> Stop watching the machine, forget it and its workspaces, and delete its token from the Vault. machines
workspaces <key> List the workspaces on that machine. workspaces

The key comes from the machine’s name: lowercased, without accents, other characters turned into dashes, at most 24 characters, and with a suffix when the key is already taken.

status is one of:

status Meaning
connecting The daemon is opening its connection.
connected The connection is open.
disconnected The connection dropped. The daemon keeps an event stream open to each machine and reconnects when it drops.
locked The Vault is locked, so the token cannot be read.
revoked The other machine no longer accepts the token.
Error Cause
machines add needs --code / --address A required flag is missing.
100.64.9.9 is not a machine on the Tailscale network The address does not resolve to a tailnet address.
vault is locked: unlock it before adding a machine The token has nowhere to go.
pairing code is wrong, used or expired The other machine refused the code.
machines takes: add --address --code [--port], remove <key> or workspaces <key> Unknown action, or no key.
no machine "studio" is paired Unknown key.

Once a machine is paired, add --machine <key> to a workspace command to run it there instead of here. --workspace is still required. When the workspace has another name on that machine, add --machine-workspace <name>.

Terminal window
astranize list --workspace notes --machine studio-mac

The tasks come back from studio-mac exactly as if they were local. Commands that go through the daemon work too, --follow included:

Terminal window
astranize approve t-0007 --workspace notes --machine studio-mac --machine-workspace notes-client --follow

Not every command can travel. This is what each one does with --machine:

What you run How it reaches the other machine
create, ideate, approve, adjust, run, validate, stop, decide, retry, archive, mission run, mission retry, probe enable, probe disable, probe poll Sent to its daemon like a local daemon command. --follow works.
list, status, step-defaults, decisions, changes, metrics, summaries, flow, limits, usage, settings, instruct, video-caught, mission list, mission show, probe list, probe show Run there, and the lines come back as if local.
events Streams that machine’s events.
queue, queue pause, queue resume Its queue. Other queue actions are refused.
files Reads its task files, with the same rules about staying inside the folder.
vault Its Vault. unlock, lock, use-password and use-keystore are refused, with a vault_error of code forbidden.
anything else Refused: "init" is not a command a paired client can read.

Flags that name a file on this machine cannot travel either. --fake, --fake-playwright, --from and --attach fail with --fake names a file of this machine and cannot go to another one. validate --file is the exception: the CLI reads your file and sends its text, and the other machine writes it to a short-lived file under its tmp/.

Every request goes through your local daemon, which holds the token, to the other machine’s remote listener on port 47600. Only the commands in the table are passed on.

  • Connect a machine: pair two machines step by step.
  • Fleet: what a Fleet is and how it stays safe.
  • Vault: where the pairing tokens are kept.