Getting started / User guide
Add your first machine with anchras up
Add any Linux machine or Mac to your pool with one command and one browser approval, signing up on the way if you need to.
On this page
Any Linux machine or Mac you own becomes capacity in your pool with one pasted command and one browser approval. You need no token and no login on the machine: you sign in, or create your account, in the browser.
Run the installer
On the machine, run:
curl -fsSL https://<your console>/install.sh | shThe Add a machine step of the setup assistant shows the command with your console's address filled in. The script downloads the agent for the machine's operating system and architecture and checks it against the checksum built into the script. Then it runs anchras-agent up with sudo, because the agent is a root service: a systemd unit on Linux, a LaunchDaemon on macOS.
If the anchras CLI is installed on the machine, anchras up does the same thing.
Approve the machine
The terminal shows an approval link, an eight-character code such as WDJB-MJHT, and a QR code for your phone. On a desktop, the browser opens by itself.
- Open the link. The page shows what the machine reported (hostname, system, CPU, memory and disk) and the address it connected from.
- Sign in, or create an account. A new workspace is ready at once with a default project. Signing up with a work email verifies your inbox first; the verification link brings you back to the machine.
- Check the code:
- If you are on the machine's network, the page shows the code. It must match the one in your terminal.
- If you are on another network, for example approving from your phone over mobile data, type the code from the terminal.
- Choose the project and site. A new workspace gets its first site,
home. Set its country: it decides where data may reside. - Select Add to pool.
The terminal then prints the workspace, project, site and account that claimed the machine. The agent starts as a service, and the page opens the new instance.
The link stays valid for ten minutes, and only while anchras up keeps waiting. If you stop it or the link expires, run it again for a new one. From another signed-in terminal you can approve with anchras instances approve <link> instead of the page.
Keep it safe
- Approve only machines you started. The agent runs workloads as root for your workspace. If someone sends you a link you did not create, do not approve it. A link for a machine on another network asks for its code for this reason.
- Your workspace's owners are told. They get an email naming the machine, its address and who approved it. The approval is recorded in the audit log.
- Removing a machine. To remove a machine, terminate its instance; that revokes its agent.
sudo anchras downon the machine removes the agent and its service.
On a Mac
The macOS agent reports the Mac's CPU, memory, disk and Apple silicon GPU (with its unified memory) as capacity. It runs containers on a local Docker-compatible engine: Docker Desktop, OrbStack, Colima or Podman. On an Apple silicon Mac with macOS 26 or later it can use Apple's container instead, with no Docker installed: install it and run container system start while signed in, and the agent runs each container in its own lightweight VM, in your session. A running Docker or Podman engine is preferred when both are there. Until one of them is running, the Mac reports capacity but cannot run containers, and anchras up says so. Node disks on a Mac are folders in /Library/Application Support/Anchras Volumes. Each volume on one is an APFS volume of its own, limited to the volume's size, which is fixed when the volume is made: to grow one, make a bigger volume and move the data. Volumes an older agent made stay folders, without a size limit. Proxmox, virtual machine and Kubernetes node commands need a Linux agent; the Mac refuses them by name, and placement does not send them to it.
If Tailscale is already logged in on the machine, anchras up asks before the agent joins your workspace's tailnet with a node of its own, so the machine does not appear twice. To keep both, rerun the agent with sudo anchras-agent up --overlay=embedded; anchras up itself does not take the flag.
Automation
Cloud-init, fleets and other hands-off installs keep using a single-use registration token: anchras instances register-token. See Connect a Proxmox hypervisor for the token flow.
Troubleshooting
| What you see | What to do |
|---|---|
anchras up ... will not print it where no one is watching | Run it in a terminal. For scripts, use a registration token. |
plan limit reached on the page | Your plan's machine limit is reached. Upgrade in Settings → Billing, then run anchras up again. |
this machine is already in your pool as ... | The machine was added before and its agent was removed. Terminate that instance first, then approve again. |
This machine stopped waiting | anchras up was interrupted. Run it again. |
CLI commands
Install and authenticate using the CLI guide. The table describes command families; required arguments are shown in their usage output.
| Command | Purpose |
|---|---|
up [--server <url>] | Add this machine to your pool (ADR-076): installs the agent when it is missing, prints an approval link and a code, and waits while you approve the machine in the browser. No login or token is needed on the machine; you sign in, or create an account, in the browser. The agent runs as a root service, so sudo asks for your password. On a Mac, the agent runs containers on a local Docker-compatible engine. curl -fsSL https://<your console>/install.sh \| sh does the same without the CLI. |
down [--yes] [--terminate] [--keep-binary] | Remove the agent from this machine (anchras-agent down). The instance stays in your pool as offline until you terminate it; on a Mac running the Anchras app, --terminate has the agent terminate it first, so anchras up adds the Mac again without anyone terminating the old one; any other machine is terminated by an owner (anchras instances terminate). |
instances metal3 options | Show whether an approved image is configured, its checksum and Node OS version, and organization-owned sites. |
instances metal3 provision | Install on one explicitly selected eligible Metal3 machine. Requires --connection-id, --namespace, --machine-name, --machine-uid, --name, --site and a retained --request-key; the instance lands in --project (see Configuration), which is part of the intent. Writes the selected machine's disk; repeat the identical key and intent after an uncertain response. No token is returned. |
instances metal3 status <instance-id> | Read durable allocation, attempt history, redacted recovery guidance, disk/agent-pending state and authenticated heartbeat count. Supports structured output. Use instances power and instances terminate for durable power/release controls; use the explicit prepared metal3 reimage lifecycle for same-allocation reinstall. |
instances hardware-identity <instance-id> | Read signed SMBIOS evidence, freshness/conflicts and current agent/allocation provenance; no reimage authorization or attestation claim |
instances metal3 reimage prepare <id> | Freeze review with --expected-agent-id, --expected-allocation-id, --expected-attempt-id and --request-key. Returns hardware, image, replacement public fingerprint, expiry, blockers and review digest; stores a bounded review without changing provider or agent state. |
instances metal3 reimage review <id> | Read the exact preparation with --preparation-id; review disk-loss warning, blockers, source binding and complete digest. |
instances metal3 reimage confirm <id> | Explicitly acknowledge --allow-disk-reimage and --allow-hard-power-off, preserving --preparation-id, --reviewed-digest and --request-key. Reuses the allocation; fences old credentials before normal cleaning and a short private replacement grant. Repeat the exact original request to resume manual_recovery after correcting its evidence/provider problem; current authorization, ownership and expired-lease fences apply. |
instances metal3 reimage status <id> | Read current replacement registration, heartbeat gate, retained control and exact approved retry image/digest. |
instances metal3 reimage retry <id> | Review status and submit --reimage-operation-id, --previous-operation-id, --reviewed-digest, --image-url, --image-sha256 and stable --request-key. Corrects a failed never-registered replacement, retaining the reviewed key/allocation; fresh grant follows renewed cleaning. |
instances metal3 retry <instance-id> | Explicitly retry a failed never-registered allocation. Requires --previous-operation-id, --image-url, --image-sha256 from current approved options, and a retained --request-key. Requests supported deprovisioning/metadata cleaning before disk installation; retains reservation and attempt history. Repeat the identical request after a lost response. |
instances list | List registered and provisioned instances in one project of the active org (--project, see Configuration). --status error,stopped keeps the instances in any of those statuses; naming terminated shows the terminated instances the list otherwise hides. Also --provider, --region <region-id> (a region id, not a placement label), --profile, --search; the REGION column is the instance's region id. provision, register-on-prem and adopt create in that project too. |
instances get <id> | Single instance detail, including agent-reported CPU, memory, disk, and OS inventory and, for a provider-placed instance, the location it runs in, the current error, and the last failure after termination or recovery cleared it (InstanceService.GetInstance; use -o json for full configuration, SSH keys, labels, and Node OS state). |
instances resolve | List profiles and regions, and with --profile + --region (or --location <id>, which narrows to that location's provider), show available cloud-account/provider options for provisioning. |
instances create-site | Deprecated alias of sites create without --region: creates the site under the global region through RegionService.CreateSite (the old CreateOnPremSite RPC is retired); --country BE attaches its jurisdiction. |
instances register-on-prem --site <id-or-slug> | Create a one-time registration token for an on-prem provider in a site (--region is a deprecated alias of --site). The install command renders the agent endpoint of the site's region, and the agent's registration binds it to that region. Use --provider on-prem-anchras-node, --provider on-prem-proxmox, --provider on-prem-hyperv, or --provider on-prem-xcp-ng (defaults to Proxmox for existing scripts). |
instances register-token --site <id-or-slug> | Issue a global agent registration token (InstanceService.IssueRegistrationToken, ADR-073 §3). No instance exists until an agent claims the token; any region's agent endpoint redeems it, and the region holding the site the agent's claim names creates the registered instance there and binds the agent to it. A claim at another region's endpoint is refused with the right region's agent endpoint. Prints the site, its region, that region's agent endpoint, the expiry and the install command. Issue it against the global region; --site-region <id> names the region of a site this control plane does not hold. --name, --provider, --execution-mode and --ttl (at most 24h) shape the claimed instance and token. Once one region has registered an agent with the token, global records the claim and every other region refuses it. |
instances register-token list [--project <id-or-slug>] | List the organization's global agent registration tokens (InstanceService.ListRegistrationTokens, ADA-1914) without their secrets: id, project, site, region, name, state (unclaimed, claimed in <region>, expired) and expiry. The CLI traverses all authorized API pages (100 tokens each) before printing a complete result. It refuses malformed or changing pagination rather than silently returning a partial list; retry if tokens are issued or revoked concurrently. Expired tokens are deleted at global by a cleanup job. |
instances register-token revoke <token-id> | Revoke a global agent registration token (InstanceService.RevokeRegistrationToken, ADA-1914). The token id is the middle part of ANCHRAS-AGENT-REG.<id>.<nonce>; the whole token is accepted too. Every region refuses the token once the revocation replicates; an instance a claim already created stays. An unclaimed, unexpired token refuses its project's delete, and revoking it is the way out. Issue it against the global region. |
instances approve <approval link or id> | Approve a machine that runs anchras up into your pool from a signed-in terminal (InstanceService.GetDeviceAuthorization then ApproveDeviceAuthorization, ADR-076), as the console's /up/<id> page does. Prints what the machine reported and where it connected from. On the machine's network it shows the code to compare and asks to confirm (--yes skips the prompt); from any other network it asks for the code the machine's terminal shows (--code <code>), and five wrong codes deny the request. --site defaults to the organization's only site and --project to the active project; --name overrides the instance name (default: the hostname). --deny refuses the machine instead. The approval issues a two-minute, single-use registration token bound to the machine's identity key, which its anchras up collects and registers with; the plan's machine limit is checked here and denies the request when reached. Issue it against the global region. |
instances dedicated-orders validate | Dry-run a Hetzner Robot dedicated order (PlaceDedicatedOrder with test=true). Validates SKU/location against Robot without creating a dedicated_orders row or placing a billable order. |
instances dedicated-orders order / list / cancel (unconfirmed placements) | When Hetzner does not confirm whether it accepted an order (a timeout, a dropped connection, an unreadable answer), order fails with a support reference (DO-…) and the order stays pending with PLACEMENT unknown: do not order again. Such an order cannot be cancelled, recorded again by hand or registered until Anchras support confirms it with Hetzner (ADA-1144). |
instances dedicated-orders bootstrap <order_id> --request-key <key> | Prepare a linked registration identity, created in --project (see Configuration), and request rescue/reset once for an unregistered delivered order. Preserve the key and every input, the project included, on retry. Reports the retained operation and manual recovery for unknown provider outcomes; never repeats an admitted reset. No SSH, installimage, disk-imaging or live-registration claim. |
instances dedicated-orders rdns get <order_id> | Read the reverse DNS (PTR) record of a delivered API-ordered dedicated server's primary IP (MarketplaceService.GetDedicatedServerRdns). Prints the IP and its PTR (- when none is set). Supports structured output. |
instances dedicated-orders rdns set <order_id> --ptr <hostname> | Set the reverse DNS (PTR) record of a delivered API-ordered dedicated server's primary IP (MarketplaceService.SetDedicatedServerRdns, admin/owner). The IP is always the order's own server's, never caller-supplied. Supports structured output. |
instances dedicated-orders info <order_id> | Read a delivered API-ordered dedicated server's hardware state from the provider (MarketplaceService.GetDedicatedServerInfo): addresses, product, datacenter, provider status, paid-until, and which reset types, rescue images and wake-on-LAN it supports. Supports structured output. |
instances dedicated-orders reset <order_id> [--reset-type sw\|hw\|power\|power_long] --yes | Reboot or power-cycle a delivered API-ordered dedicated server (MarketplaceService.ResetDedicatedServer, admin/owner). Destructive: interrupts any running workload, so it refuses without --yes. --reset-type defaults to sw; info lists the types the server offers. |
instances dedicated-orders rescue enable <order_id> [--os linux] [--authorized-key <fingerprint>] --yes | Activate the provider rescue system so the server boots into it on its next reset (MarketplaceService.EnableRescue, admin/owner); requires --yes. --authorized-key is repeatable and names SSH key fingerprints already registered in the Robot account. Prints the one-time rescue root password, which cannot be read back later. Supports structured output. |
instances dedicated-orders rescue disable <order_id> | Deactivate the rescue system so the next reset boots the installed system (MarketplaceService.DisableRescue, admin/owner). |
instances dedicated-orders wake <order_id> | Send a wake-on-LAN packet to a delivered API-ordered dedicated server (MarketplaceService.WakeDedicatedServer, admin/owner). |
instances reissue-install-command [--force] <id> | Reissue a one-time install command for an unbound pending/error instance. --force is retained for compatibility and cannot replace a registered agent; use authorize-agent-reenrollment. install-command remains an alias. |
instances provision | Provision a cloud instance. Requires --name and --connection (or --connection-id), plus either --profile and --region or --location <id>, or a marketplace offer as --provider-sku with --provider-region (for example europe-west1-b). The region defaults to the named location or offer. Without --location, profile provisioning uses the provider default for --region; an offer region without a registered location is refused. Optional --public-ipv4, --public-ipv6, --root-disk-gib, and repeatable --ssh-key (OpenSSH public-key literal or @path). Does not look up a saved keyring key by ID. Staging guest-receipt flags are documented below. |
instances power <id> | Start, stop, or reboot a provisioned instance (--action start, stop, or reboot). Metal3 requires a stable --request-key; stop/reboot also require explicit --allow-hard-power-off. --retry-operation-id resumes a manual-recovery operation with its original key/action/consent. Supports structured output. |
instances terminate <id> | Request termination. Metal3 requires --request-key and explicit --allow-hard-power-off; retain the key and consent after uncertain responses. Optional --retry-operation-id resumes retained cleanup. --force does not bypass consent or verified release. Supports structured output. |
instances metal3 control-history <id> | Read current control and latest 100 retained operations, requested/observed power, recovery guidance and cleanup/release receipts. Unknown power is distinct from off. Supports structured output. |
instances update-agent <id> / instances update-agent --all | Ask a registered, heartbeating agent to self-update now instead of on its 24h schedule (InstanceService.UpdateInstanceAgent; --all fans out to every heartbeating agent in the org via UpdateOrgAgents). Prints the queued agent_update command id and the current/published agent versions; the agent installs the release when one is newer and restarts. Rejected for inactive instances and agents without a current heartbeat. Supports structured output. |
instances tags <id or name> | Show a node's tags (TailnetService.GetNodeTags, ADR-079 §7): the tags on its tailnet device, split into operator and managed tags, which the network rules, --on tag:NAME placement and run and data grants match. Also lists the names in the instance's retired tags label and those the device lacks. Supports structured output. |
instances move-label-tags <id or name> [--yes] [--declare-tag-owners] [--convert-user-device] [--clear-label] | Move the names in the retired tags instance label onto the node's tailnet device, next to its operator tags, through SetDeviceTags (TailnetService.MoveLabelTags, tailnet.update). Without --yes it shows what it would set and the flags it needs. A tag the tailnet policy's tagOwners does not declare is refused unless --declare-tag-owners confirms declaring it, owned by autogroup:admin (writes the policy; tailnet.acl.update). Tagging a user-owned device needs --convert-user-device. The label is left as it is unless --clear-label asks to remove it once the device carries every one of its tags (instance.update, audited as instance.labels_updated); with nothing left to move, --yes --clear-label only removes the label. A label edited while the tags move is left alone, with a warning. Supports structured output. |
instances labels <id or name> | List an instance's labels (InstanceService.GetInstance): each key, its value and whether a user or Anchras set it. Placement selectors match a label as KEY=VALUE (container create --on). Supports structured output. |
instances labels set <id or name> <key=value>... / instances labels unset <id or name> <key>... | Set, replace or remove labels (InstanceService.UpdateInstanceLabels, instance.update, audited as instance.labels_updated); other labels are left as they are. A key is 1-63 letters, digits, ., _, - or /, beginning and ending with a letter or digit; a value is at most 253 characters, without a comma. The labels Anchras and the agent write (os_info, hardware_info, agent_version, provider_kind, tailnet_id, the execution_mode_* and anchras.io/ keys and the like) are refused. The retired tags label can only be removed: node tags are the tags on the node's tailnet device. Supports structured output. |
instances contribute <id or name> on\|off [--availability always_on\|intermittent] | Lend a machine to the organization's auto placement, or take it back (InstanceService.SetInstanceContribution, ADR-082 §4). A machine that does not contribute is a personal device: auto placement skips it, and only its person (who approved it) and the organization's admins can name it as a target (container create --placement host --placement-target-id, move), see its capacity and metrics or open a terminal on it; other members see it listed with ROLE personal. A Mac whose agent reports no power or thermal state (an agent from before contributed nodes, or pmset failing) stays undecided: it does not contribute, ROLE reads undecided, and instances get says why until the agent is updated or its person chooses. A machine joined with anchras up from the CLI contributes, battery or not, as do machines registered before contributed nodes existed; a Mac running the desktop app does not until its person turns it on. A contributing machine is gated: on battery, in Low Power Mode, at a serious or critical thermal state or paused, it takes no new workloads and its running ones are suspended (frozen, never killed); instances get prints the gate that fails and whether the agent keeps the Mac awake while it runs workloads on AC power. --availability intermittent (the default with a battery) marks a machine that sleeps: its workloads are suspended while it does and resume there, and are placed elsewhere only after their grace period (run --suspend-grace, 30 minutes by default). Only the machine's person and admins (instance.contribute, which members hold for their own machines). |
instances pause <id or name> [--for 1h \| --until tomorrow\|<RFC 3339>] / instances resume <id or name> | Pause a contributing machine for a while (InstanceService.PauseInstanceContribution, ADR-082 §4): no new placements, and the workloads it runs are suspended until the pause ends or resume; past their grace period they are placed elsewhere. The default is an hour, at most 7 days; --until tomorrow is 08:00 local time. Only the machine's person and admins. |
instances ssh <id> | Open an audited login shell on a registered instance as a local account; the instance's agent opens it, so no tailnet address is needed. Optional --user (default root; root and admin need instance update permission), --connect, --print-url. Refused when the agent sets disable_host_shell. |
instances shell <id> | Open the instance's own shell, the root shell its agent runs and the dashboard's Shell button opens (InstanceService.OpenShellSession). Needs instance update permission and iaas.ssh.open on the instance; a personal device opens only for its person and the organization's admins. Without a flag it prints the single-use WebSocket path, target and expiry; --connect attaches a PTY (needs a TTY) and --print-url prints a URL for automation. Audited as host.ssh_session_issued, then host.ssh_opened/host.ssh_closed. Refused when the agent sets disable_host_shell. |
API reference
Browse procedures, request and response types, and download the complete OpenAPI contract.
