Skip to content
AnchrasDocumentation
Browse documentation

Getting started / User guide

Get started with Anchras

Join a machine, run a workload and store data in two minutes, then choose what to install next.

On this page

Your machines. One cloud. Install Anchras on any machine you own, wherever it sits and behind any NAT, and run workloads and store data across all of them on a private network, under one policy. It runs on machines you already own, there are no ports to open, and your workloads run on your hardware.

Anchras does three things:

  1. Join a machine. anchras up on any Linux machine or Mac; it shows up with its CPU, memory, GPUs and disks.
  2. Run a workload. anchras run <image> places it on a node that fits and gives it a private name; one flag makes it public.
  3. Store data. A machine's disk becomes a volume or a bucket that every other node reaches by name.

Two-minute quickstart

1. Join a machine

On a Linux machine or Mac you own, run:

bash
curl -fsSL https://<your console>/install.sh | sh

Open the link it prints, sign in or create an account, and approve the machine. You need no token and no login on the machine. If the Anchras CLI is already installed there, anchras up does the same. Add your first machine explains the approval, the code and what to check.

2. Run a workload

Install the CLI on your laptop, sign in, and run a container. It lands on a node that fits and prints its private URL.

bash
anchras login
anchras run nginx --port 80

--public exposes the first port, --gpu asks for a GPU, and --on tag:gpu picks the nodes by tag. Containers covers placement, logs and volumes.

3. Store data

Hand a folder on the machine to Anchras, then create a volume or a bucket on it. Containers on that node mount the volume; the bucket's S3 endpoint is a private name on your tailnet.

bash
anchras disk adopt --node <machine> --path /mnt/data
anchras volumes create --node <machine> --name photos --size 50GiB
anchras buckets create --node <machine> --name photos

The CLI commands at the end of this guide list every disk, volumes and buckets option; Backups covers backing storage up.

One policy file says who can reach which machines, run on them and read their data. anchras acls explain run --node <machine> reads it for a person and a node; Tailscale and private networking covers the rest.

Choose your installation

What you want to doWhat to installStart here
Add a Linux machine or Mac you own to your poolNothing first: one command, then approve in the browserAdd your first machine
Manage your pool from your laptopThe Anchras CLI on Linux or macOSInstall the CLI
Connect a Proxmox hypervisor you ownThe Anchras agent on the hypervisorConnect Proxmox
Run the control plane yourselfAPI server, dashboard, PostgreSQL, and NATSSelf-host Anchras
Add machines from a cloud providerProvider credentials in your organizationCloud accounts

You can use the hosted dashboard without installing anything on your laptop. The CLI is optional for dashboard users. The Anchras agent runs on the machines you add, not on your management laptop.

Where to go next

  1. Set up your organization and networking when you add teammates or more networks.
  2. Add more capacity: more machines the same way, a Proxmox instance with a token, or a cloud account.
  3. Create a cluster when a workload needs one.
  4. Deploy a catalog application.

Understand the main resources

An instance is a machine you added or provisioned. A site identifies the location of on-premises infrastructure. A container is a workload placed on an instance. A node volume or node bucket is storage on an instance's disk. A cluster runs cluster workloads. A deployment is an installed catalog application. An organization owns these resources and defines who can access them.

A connected machine does not automatically provide every service. Available operations depend on its provider, runtime, capacity, networking, and your organization permissions.

Find a service guide

Browse the service directory for compute, clusters, application delivery, storage, networking, AI, security, and operations. Each guide includes setup steps, operational guidance, limitations, CLI commands, and an API reference.

CLI commands

Install and authenticate using the CLI guide. The table describes command families; required arguments are shown in their usage output.

CommandPurpose
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.
disk listList node disks (NodeStorageService): folders on your nodes handed to Anchras, with no cluster needed. --node <name\|id> lists one node's disks and also its block devices and mounted filesystems, each with every reason it can't be used; --all includes released disks. A disk on an offline node says so: its data is on that node only. Supports structured output.
disk get <disk>One node disk: its folder, filesystem, size and free space, whether volume sizes can be enforced (project quotas), and what the node last saw. <disk> is an id, or a name with --node.
disk adopt --node <node> --path <folder>Hand an existing folder on a node to Anchras (directory mode). The node refuses system and agent directories, paths outside /mnt, /media, /srv, /data or /home that aren't on a separate data filesystem (the agent's node_storage_allowed_roots adds more), network and FUSE filesystems, and a folder that already holds another disk; Anchras writes only inside <folder>/anchras/. Waits for the node's answer unless --no-wait; --name defaults to the folder's name. The node must be online.
disk adopt --node <node> --device <by-id> --serial <serial> --confirm-formatFormat a whole, empty disk XFS and hand it to Anchras (device mode); this erases the disk. Name it by its /dev/disk/by-id name and its serial, both as disk inventory lists it; the disk must be in the node's inventory from the last hour and listed as usable. Without --confirm-format the command shows the disk and stops. The node checks the disk again and refuses, with no override, a disk that holds the operating system or the agent's state, is mounted, used as swap or held by LVM, RAID, ZFS or encryption, has a partition table or any filesystem, RAID or LVM signature at either end, or has data in its first or last GiB or in 256 sampled blocks; a refused disk is yours to clear on the node. The disk is mounted at /var/lib/anchras/disks/<id> by a systemd mount unit (it comes back after a reboot and a missing disk doesn't stop the boot), and volumes and bucket stores use it like a folder disk. Waits up to 15 minutes unless --no-wait.
disk adopt --node <node> --device <by-id> --serial <serial> (take back)Take back a released or forgotten formatted disk with its data. When disk inventory lists the device as holding a released node disk of the node (reclaimable, or orphaned when the node still mounts it), the same command adopts that disk again, keeping its id and data, instead of formatting: no --confirm-format is needed and nothing is formatted, sampled or wiped. The node mounts it only when it carries exactly the filesystem it made for that disk and is unused but for its own mount. --name renames it; it keeps its old name otherwise. Any other disk with a signature stays refused, and the refusal says how to wipe it yourself; Anchras never wipes a disk.
disk release <disk>Give a disk back. Refused while volumes live on it. The data stays on the disk; --delete-data also deletes <folder>/anchras/ (and nothing beside it) after you type the disk's name, or with --yes. A formatted disk (device mode) is unmounted and its mount unit removed; its data stays and --delete-data is refused. A disk on an offline node is refused unless --forget, which removes the record and leaves the node untouched (a formatted disk stays mounted there; once the node is back, disk inventory reports it as orphaned with the commands to unmount it, or to take it back).
disk inventory --node <node>A node's last storage inventory: block devices (stable /dev/disk/by-id name, model, serial, size, and why each is in use; a formatted disk names the node disk it backs, and one holding a disk gone from the record is marked orphaned, reclaimable or foreign with what to do about it) mounted filesystems (and whether a folder on each can be a node disk), and whether the node can share its node volumes with other nodes and mount theirs over NFS (and which package is missing). --refresh asks the node for a new one and waits. Read-only on the node.
run <image> [--port PORT[:EXPOSE]]... [--readiness tcp:PORT \| http:PORT[/PATH]] [--replicas N] [--spread prefer \| strict] [--suspend-grace DURATION] [--network NAME]... [--network-alias NAME] [--public] [--gpu \| --gpus N] [--on tag:NAME \| LABEL=VALUE]... [--cap-add CAP]... [--allow-privilege-escalation] [-- command...]Run a container on a node that fits it: the short form of container create --placement auto (ADA-2280). It names the container after the image plus a suffix (--name to choose), waits until it runs and its ports have their names (--wait 3m; 0 returns at once), then prints where it landed, why, its private URL (svc:anchras-ct-<id> on a host) and, with --public, the public URL of the first --port. On a host the private name is advertised only once the container is ready (ADR-081 slice 1): --readiness names the probe the host agent runs on every discovery pass, tcp:PORT (connect) or http:PORT[/PATH] (GET, 2xx or 3xx), on one of the --ports; without it the first tailnet port is probed with tcp. --replicas N runs N copies of the workload on N nodes under the one private name (ADR-081 slice 2): each replica is placed on its own, a node already running one is used only when no other fits (--spread strict refuses it instead), and the name is advertised from every node whose replica is ready; the summary lists the replicas and container get shows each one's node, status and readiness. A container whose node stops heartbeating shows lost while it is placed again or waits for its node; --wait keeps waiting on it. A container on a node that sleeps or fails a gate (ADR-082 §4: a laptop with its lid closed, a contributed Mac on battery or paused) shows suspended: it resumes on that node when the node is back, and is placed on another one after --suspend-grace (default 30m, 0s to 168h; container update --suspend-grace 10m, or default), unless a node volume or an explicit host target pins it there. --network NAME joins an app network of the project (ADR-081 slice 6b): the containers that name it reach each other by --network-alias (default: the container's name), on a node through a Docker or Podman network the agent makes there. When every node of the network runs a Linux agent of this release and no two members declare the same cluster port, members place independently, and a member's agent carries the other members' cluster ports to their nodes over the tailnet (ADA-2441); otherwise the network runs on one node, the one its first member was placed on, and placement says why. A cluster port of a member is reachable by the network's members only, and anchras move moves a member on its own when the network spans nodes. A network cannot be combined with --spread strict. A repeated --network joins more app networks besides the first, under the same alias (ADA-2563): --network web --network data reaches the members of both by name. Such a container runs on one node with the members of all its networks, on a node whose agent joins a container to several networks (this release); a network it joins then runs on one node, and it is refused when its networks already run on different nodes. At most 8 extra networks. container create takes the same repeated --network; the summary prints networks:, container get an also on: line, container list a NETWORKS column when a listed container is on a network, and -o json carries extra_networks and internal_networks. Public exposure needs a cluster until host containers get Funnel. On Docker and Podman the host agent starts the container with reduced privileges (ADA-2681): every Linux capability but CHOWN, DAC_OVERRIDE, FOWNER, FSETID, KILL, NET_BIND_SERVICE, SETGID and SETUID dropped, no-new-privileges on, at most 4096 processes, and --cpu-millis / --memory-mb as its CPU and memory limits. --cap-add CAP (repeatable, at most 16, without CAP_) keeps another capability and --allow-privilege-escalation turns no-new-privileges off (sudo and setuid binaries inside); container create takes both, and container get prints them. pct and Apple's container ignore them, and an agent from before this release runs the container with the runtime's defaults. --env, --cpu-millis, --memory-mb and --project as for container create; -o json prints the container. A placement refusal ("no host fits: rig does not match tag:tpu") exits non-zero.
volumes listList persistent volume claims. Requires --cluster; optional --namespace, --status, pagination. Cluster volumes and their snapshots live in the cluster's project (project_id in -o json), so these commands take no --project.
volumes get <claim_id>Show one claim; also accepts namespace/name when listing within a cluster.
volumes classesList storage classes and capabilities for a cluster.
volumes pvsList persistent volumes.
volumes snapshotsList volume snapshots (volumes snapshots list is the same command).
volumes snapshots delete <snapshot_id> --cluster <id>Delete a volume snapshot: the snapshot turns deleting, the volume reconciler deletes its Kubernetes VolumeSnapshot through the cluster's agent, then the row. Asking again while it is deleting succeeds. Refused with failed_precondition while a volume is still being cloned or restored from it, and for a managed database's snapshots.
volumes syncTrigger Kubernetes/CSI inventory reconciliation for a cluster via the agent reflector. Admin/owner.
volumes createCreate a PVC. Requires --cluster, --name, --size-gib; supports --class, --access-mode.
volumes expand / snapshot / clone / restore / detach / deleteRecord requested volume lifecycle state in VolumeService; the cluster reflector reconciles observed Kubernetes/CSI status back into Anchras.
volumes validateValidate storage requirements with repeatable --volume name:size_gib[:class].
volumes list --node <node>List node volumes (ADR-077, NodeStorageService): directories on a node's disks that containers on that node mount, with no cluster. --all includes deleted volumes. A volume on an offline node says so: its data is on that node only. With --node, every volumes verb below acts on node volumes; --cluster keeps the Kubernetes broker above. Supports structured output.
volumes create --node <node> --name <name> --size <10GiB>Create a node volume on one of the node's adopted disks (--disk, default: the only one or the one with the most room). The size is reserved on the disk (volumes take at most 90% of it) and enforced when the disk's filesystem has project quotas (XFS prjquota, ext4 prjquota); otherwise it is a reservation only, and the output says so. --uid/--gid set the directory's owner for images that run as a non-root user. Waits for the node's answer unless --no-wait. Mount it with container create --volume name=<m>,type=node_volume,source=<volume name or id>,path=<dir>; the container then runs on the volume's node. A container placed on another node (--placement host --placement-target-id <node>) mounts it over the tailnet with NFSv4.2 (ADR-077 §7): the volume's node exports it through its own tailnet Service, anchras-vol-<id>.<tailnet>, only while such a container exists, and the container's node forwards a loopback port to it. Both nodes need the NFS packages (nfs-kernel-server on the volume's node and nfs-common on the other on Debian and Ubuntu, nfs-utils on Fedora and RHEL; disk inventory says what is missing), or placement is refused naming them. Use it for shared config, media and datasets, not a database's data directory.
volumes get <volume> --node <node>One node volume: its disk, size, size limit, owner, directory on the node, the containers mounting it, and its sharing (the private name and the nodes mounting it over the tailnet). <volume> is an id, or a name on --node.
volumes delete <volume> --node <node>Delete a node volume and everything in it, after you type its name (or --yes). Refused while a container mounts it. A volume on an offline node is refused unless --forget, which removes the record and leaves the data on the disk.
buckets list / get / describe / create / update / delete / grant / revokeProvider-backed object bucket inventory and scoped credential policy operations via ObjectStorageService; honors -o json|yaml|table. A bucket lives in a project: list shows one (--project) and create takes --project. list filters by --cloud-account-id, --region and --search (bucket name or provider bucket id substring). create --region-id <region-id> names the region you expect the bucket in, checked against where the bucket is placed and refused when it disagrees. update --versioned=false disables versioning; omitting --versioned leaves it unchanged. ensure and credentials <list|create|delete> remain compatibility aliases. On a node bucket, once the tailnet policy names anchras.com/cap/data (ADR-079), grant (and a credential's rotation), browse and object also need a data grant for the caller, and refuse naming the policy; credentials list marks a credential (out of policy) when a later policy save no longer lets its creator mint it (it keeps working; its next rotation is refused).
buckets create --node <node> --name <bucket>Create the bucket in the node's bucket store (ADR-077 §6) instead of a cloud account: a single-drive RustFS the node's agent runs on one of its node disks (--disk; default: the disk that has a store, else the only one, else the one with the most room). The first node bucket on a disk creates its store, sized by --store-size (default: half the disk's free room); while it starts (the first start pulls the RustFS image) the command waits, up to --wait (default 10m). The bucket's endpoint is the store's private name on your tailnet, http://anchras-s3-<store id>.<tailnet>: plain HTTP with SigV4 inside the WireGuard-encrypted overlay, nothing on the node's LAN or public interfaces. --quota-gib is a hard quota (default: the store's size, and never more). Credentials are RustFS service accounts scoped to the bucket (buckets grant). A host container on any of the organization's nodes reaches the endpoint by name: the node's agent resolves store names to its container network gateway and forwards them over the tailnet (ADR-077 §7 amendment). Every container on such a node can reach the endpoint, so the scoped credential is the guard. anchras bucket is the same command group.
buckets stores list / get <store> / delete <store>Node bucket stores, or one node's (--node; --all includes deleted ones): node, disk, state, size, bucket count and private name (pending until the tailnet Service is published; get says why). delete stops the store and deletes its data after you type the node's name (or --yes); it is refused while the store holds buckets. A store on an offline node is refused unless --forget, which removes the record and leaves the data on the disk.