Where work runs

Homes

A home is the computer that runs Althar’s runtime for you: your projects, their tasks, the coordinator and the agents at work. This computer is your first. A Linux server that stays on can be another, so work carries on while your computer sleeps.

What a home is

A home is one runtime and its profile: a SQLite database of its projects, tasks and their history, the tasks’ worktrees, what its agents made, and its backups. The runtime holds the database locked, so one runtime writes a profile at a time. A window is a client of a home: it reads and asks, and the work stays where the home is.

Four ways to set it up

Where you look, where the home is, and where its agents work can be one computer or several. Start with the first; each of the others adds a machine for a reason.

This computerThe windowIts homeAgents

01Everything on this computer

Where everyone starts, with nothing to set up.

Work stops while it sleeps

This computerThe windowIts home
WorkersAgents

02This computer, with workers

Tasks run on Linux machines of yours, so your computer stays free.

Workers stop too while it sleeps

Your computerA window on it
A serverIts homeAgents

03A home on a server

A server that stays on runs the work; you look in from anywhere.

Work carries on while your computer sleeps

Your computerA window on it
A serverIts home
WorkersAgents

04A home on a server, with workers

The most room: a home that stays on, and tasks spread over workers.

Work carries on while your computer sleeps

Four setups, from one computer to a server home with workers, and which keep working while your computer sleeps.

How a window reaches a home

How it connectsWho it speaks as
This computer’s windowTo the runtime in a process of its own beside it.You: what you write there is your word.
Over SSHYour own OpenSSH, keys and known hosts, with no forwarding, runs althar-host connect-stdio on the server. The home’s ID and API version are checked before any call.A socket: it can’t speak for you.
With a pairing codeHTTPS and WebSocket to the home’s listener, port 6769 by default, its certificate pinned by the code. Each reconnect signs a fresh challenge with a device key kept in your OS keyring.A socket: it can’t speak for you.

Disconnecting never cancels anything. Work the home took on carries on, and a window comes back from where its history left off. Each command carries an ID: sent again, it returns the result it had, and one cut off before its result was known is marked unknown rather than run twice.

Who may do what

Who a call comes from is set by the connection, never by the call. Your own window on this computer speaks for you. A socket, which is what a window over SSH, a paired device and the command line are, can’t: nothing on a computer can tell your client apart from an agent running as your user.

A socket can
Read everything, start tasks, talk to leads, make projects, sign the home’s agents in, connect its code hosts, change most of its settings, settle, reshape and stop tasks.
Only your word can
Answer a permission or a question; push, merge, ship or post; turn an automation on or run it; loosen what agents may do; set a task’s goal; and anything that can’t be undone, such as removing a project or a task’s folder.

This computer as a home

On this computer, the runtime runs beside the window, in a process of its own. Work outlives the window, not the app: on a Mac, Althar keeps working when its last window closes; on Windows and Linux, when you’ve chosen to keep it working in the background. Quit asks first while leads, reviews, helpers or runs are at work. Quitting stops every agent, and each carries on with its turn at the next launch.

Open Althar at login starts it with no window on a Mac and on Windows, so automations run. Keep this computer awake while work runs, in Settings›Work on this computer, stops idle sleep, though not on battery unless you say so. Closing a laptop’s lid still sleeps it, and that stops every agent.

Setting up a home on a server

A server’s home is althar-host: the same runtime, run by Node as a systemd user service of a login on a 64-bit Linux machine, x64 or arm64. It needs that login’s user service manager, and lingering, so it keeps running after you log out and starts after a reboot.

  1. In Althar, open File›Computers… (⌘⇧H, or Ctrl+Shift+H) and choose Connect a home…, then Set one up and Over SSH.
  2. Type the server’s address as you would after ssh. Althar checks a signed release of the host against its pinned release key, installs it there and starts its service, a step at a time. Setting up carries on with the dialog closed, and after Althar restarts.
  3. The home opens in a window of its own, on its welcome: sign its agents in and connect its code hosts there.

By hand, from a release or a checkout built from source, initialise a profile, install the service and wait for it:

althar-host init --project /absolute/path/to/repository --json
althar-host install-service --start
althar-host status --wait --json   # "state":"ready", and the home's ID

The service

The service is althar-host.service, a systemd user unit. systemd delivers its master key, it announces itself ready only once its API answers, restart loops are rate-limited, and stopping it stops its whole process group, detached agents included.

journalctl --user -u althar-host.service -n 60
systemctl --user restart althar-host.service
sudo loginctl enable-linger <user>   # keep it running after you log out

As it starts, the home asks its login’s shell what a terminal there has ($SHELL -i -l, for up to ten seconds) and runs its agents and their MCP servers with that PATH and those variables. Put what they need in ~/.profile, ~/.bashrc or ~/.zshrc, and restart the home. Each agent’s errors go to the journal:

journalctl --user -u althar-host.service -g 'agent stderr' -n 100

Its MCP servers and skills are that login’s own. A window on the home offers the ones your computer has that it hasn’t, at the top of Settings›MCP servers and Settings›Skills.

Where a server’s home keeps its files

WhatWhere
Its profile: database, artifacts, encrypted secrets, backups~/.local/share/althar-host
Its tasks’ worktrees<profile>/worktrees
The master key for its secrets~/.config/althar-host/master-key
Its service~/.config/systemd/user/althar-host.service
The release it runs, and updates~/.local/share/althar-host-program

Each follows XDG_DATA_HOME and XDG_CONFIG_HOME, and --profile, --worktrees and --key-file move them. The home records its worktrees’ path and expects it at the next start: to move them, stop it, repair git’s worktree links and update the recorded path first.

Pairing over HTTPS

Over a network your computer can reach, such as Tailscale, a home can listen for paired windows and phones. Give it its address and a certificate for it, which can be self-signed:

althar-host configure-network --profile /path/to/profile \
  --origin https://home.example:6769 --listen-address 0.0.0.0 \
  --tls-certificate /private/tls/certificate.pem --tls-key /private/tls/key.pem
systemctl --user restart althar-host.service
althar-host pair --profile /path/to/profile

pair prints a code. In Althar, Connect a home… with the code: it pins the home’s certificate and enrolls one device. A code expires after five minutes, or when the home restarts. althar-host devices lists paired devices and revoke-device ends one’s connections at once. Changing the TLS key means pairing again; a renewal with the same key doesn’t.

When a computer sleeps or goes offline

This computer as homeA home on a server
You close the windowWork carries on, on a Mac; elsewhere, when Althar keeps working in the backgroundWork carries on, and the window reconnects where it was
You quit AltharEvery agent stops, and carries on at the next launchNothing stops: only your window closes
Your computer sleepsEvery agent stopsWork carries on
Your computer goes offlineWork under way waits for the connection, then carries on in the same session; new work waits tooYour window reconnects when you’re back
The home restartsInterrupted turns carry on; nothing outside is done twiceThe same, and windows reconnect by themselves

A worker doesn’t keep work going without its home: see Workers.

Updates

Each home updates on its own. A server’s home checks hourly, downloads a release, verifies its Ed25519 signature against the release key it was set up with, and stages it. It applies a release when you say: from its window, under the Updates glyph, which asks first where a restart would stop tasks, or by hand:

launcher="$HOME/.local/share/althar-host-program/launcher"
sh "$launcher" update-status
sh "$launcher" update --apply --wait

A release that changes the API or the database’s format is never applied on its own (--allow-incompatible); a window over SSH applies one that only moves the data, after asking once. Before applying, the updater snapshots the database and checks storage. If preparing fails, it restores the snapshot and restarts the release before; if a compatible release fails to start, it switches back and keeps newer writes.

A window and a home of the same major version work together, whichever is newer. A newer window greys out what an older home can’t do yet, and says so; across major versions, it says which one to update.

Secrets and backups

A server’s home keeps the secrets of its code hosts and trackers in a vault of AES-256-GCM envelopes, encrypted with a 32-byte master key kept outside its profile, backups and worktrees. The home checks the key’s permissions and fingerprint as it starts, and refuses a wrong or missing one rather than start without its secrets. Where systemd-creds is available, the key can be sealed to the machine. Agents’ sign-ins aren’t in the vault: each agent keeps its own.

To back a home up, stop it, and copy its profile, its projects’ repositories and its worktrees with their owners and permissions. Keep the master key apart: a copy of both together is a copy anyone can open. On a restored machine, sign the agents in again.

What a home trusts

The home and its agents run as the login it’s installed for, and share that login’s files: file modes and a stripped environment don’t isolate one process of a user from another. Give a home a login of its own, with only what its projects need.

Troubleshooting

What you seeWhat to do
The service doesn’t startRead journalctl --user -u althar-host.service -n 60. A missing or wrongly owned master key stops it on purpose.
It stops when you log outTurn lingering on: sudo loginctl enable-linger <user>.
An MCP server won’t start in a taskLook for agent stderr in the journal, and check the login shell gives it its PATH and variables.
The window says the home is olderApply its update from the window, or with update --apply.
A paired window can’t connect after a certificate changeA new TLS key needs a new pairing: run althar-host pair again.

Every command and option is in the host’s README.

Contents