Running work
Self-hosting
Set up a self-hosted runner on a machine you own, list your machines and their runners, and remove one.
To make a machine run Catalyst’s work, sign in on it as a workspace owner or administrator and run:
catalyst setup --runnerSetup starts Catalyst’s service in Docker on that machine, enrolls the machine with your workspace under a name you choose and prints how many phases it can run at once. On a machine that should never run work, such as your laptop, run catalyst setup --no-runner instead. catalyst setup and catalyst onboard are the same command.
A self-hosted runner is optional. Catalyst Cloud already runs your tickets without one.
Before you start
Section titled “Before you start”-
A Mac or Linux machine. An Apple Silicon Mac can run ticket phases using Docker Desktop. On Linux, use x86-64 or ARM64 with systemd. Ubuntu 24.04 is tested.
-
An owner or administrator signs in on the machine. Setup refuses a member: “A workspace owner or administrator enrolls a runner.”
-
Docker with Compose. On a Mac, start your local Docker engine, such as Docker Desktop or OrbStack, before running setup. Setup checks that containers can write to the shared work folders and reach the Mac and Catalyst Cloud. On Linux, use Docker Engine at
/var/run/docker.sockwith a user in thedockergroup. Use a local Docker engine on either platform. -
Node.js 22.15 or newer, with npm, and one coding-agent command (Claude Code, Codex, OpenCode or Cursor). The installer checks for both before it changes anything. Phases bring their own agents, so the command only has to be installed. Ubuntu’s own
nodejspackage is too old; use Node.js 22 from nodejs.org or your usual version manager. npm must be able to install global packages as your user, so if global installs needsudo, give npm a prefix in your home first:Terminal window npm config set prefix ~/.npm-globalecho 'export PATH="$HOME/.npm-global/bin:$PATH"' >> ~/.profile && . ~/.profileOn a Mac using zsh, replace both occurrences of
~/.profilewith~/.zprofileso new Terminal sessions pick up the change. -
Python 3. On a Mac, Catalyst uses Python 3 from the Xcode Command Line Tools or Homebrew to check free disk space before taking work. On Linux, the one-time network setup uses
python3,sudoandnftablesto isolate each phase’s network. See Isolate phase networks on Linux. -
Room to work. At least 25 GiB of disk must stay free after the images, which take about 9 GiB. A machine below that enrolls but takes no work. 4 CPUs, 8 GiB of memory and a 50 GiB disk is a comfortable start.
-
A machine that stays on. Catalyst uses the machine’s CPU and memory whenever it is on. Sleep or shutdown pauses its work, so use a dedicated machine rather than a laptop. Catalyst’s service restarts with Docker after a reboot, but it cannot start Docker itself. Set Docker Desktop or OrbStack to start when you sign in, or on Linux enable the Docker service.
-
Linear and GitHub connected. Setup asks about running work on the machine only after the workspace’s Linear connection and the GitHub App are in place and you have chosen repositories. Keep a GitHub organization owner available in case the GitHub App needs new permissions accepted.
Your repositories’ toolchain versions and setup steps apply on this machine too; see Declaring your environment.
Set up the machine
Section titled “Set up the machine”On a new machine, run the installer with --runner. It installs the catalyst command, signs you in and continues straight into catalyst setup:
curl -fsSL https://staging.catalystcloud.dev/install.sh | sh -s -- --runnerOn a machine that already has the catalyst command, skip the installer and run catalyst setup --runner. Without the flag, setup asks “Run Catalyst’s work on this machine?” near the end, and the default answer is No.
Pick the project. A machine works for one project, the Linear team you choose in setup. If your workspace already has projects, setup lists them first and asks what to do with them. Choose the project this machine should work for. If you move on instead, setup asks you to name a project before it continues. You can name it up front:
catalyst setup --runner --team ENGMove on is the default answer. With --yes, or without a terminal, setup takes it without asking, and the projects you moved on from are left as they are; catalyst ready reviews them afterwards.
The installer exits with code 11 when setup ends with a question nobody answered: the run had no terminal to ask it on, or its input ended while the question waited. It names the step that was still open and prints a line that starts with resume:. Run that command in a terminal to answer the question and finish. A stop that asks you to fix something first, such as a missing tool or a downloaded file that did not match what the installer expected, also prints what to do, and exits with code 10.
Name the machine. Setup asks for a name and suggests the machine’s hostname. --machine-name <name> answers for you, and a headless run uses the hostname. A name is 1 to 63 letters, digits, dots, underscores or hyphens, starting with a letter or digit. Give each machine its own name.
With a yes, setup:
- writes the machine’s Catalyst folder,
~/.local/state/catalyst/runnerby default, holding its Compose file, its settings in.envand the folders phases work in; - pulls three public Catalyst images, pinned by digest, without asking you to sign in to download them;
- creates the Docker network
catalyst-session-v1, which keeps each phase’s container apart from the others; - gets a one-time join token and a machine key from your workspace, and stores them in a Docker volume without printing them;
- lets the project’s Linear team send work to your own machines;
- starts the Compose project
catalyst-host: a supervisor that takes work, and a watchdog that stops a phase when its time runs out.
When setup finishes, it prints the machine’s name and how many runners are free on it now.
On Linux, the first run stops before Catalyst’s service starts and asks for the one-time network install below. Do that, then run the same catalyst setup --runner command again.
From a script or an agent, with no terminal attached, pass every answer as a flag. Without --runner, a run with no terminal takes the default answer, which is not to run work here:
curl -fsSL https://staging.catalystcloud.dev/install.sh -o install.shsh install.sh --runner --yescatalyst setup --runner --team ENG --repo your-org/your-repo --yesThe sign-in still prints a link and a short code. A person approves it in a browser. With --yes, the installer’s own run skips the Linear and GitHub questions and ends with “Setup could not confirm a project for this machine”. That is expected: the catalyst setup line after it names the project and repository and carries on. On Linux it then stops once more for the network install below, and the same catalyst setup line run again starts the machine.
Run setup again on the same machine to restart or repair it. Setup finds Catalyst’s service already there and keeps its enrollment, its folder, its name and the images it runs. If you choose no project, it keeps the project the machine already works for.
Isolate phase networks on Linux
Section titled “Isolate phase networks on Linux”On Linux, each phase’s container gets a network that can reach the internet but not your local network or the machine itself. A small root service provides it, and setup won’t start Catalyst’s service until it is in place. Setup prints these commands, with the path to the files bundled in the catalyst command. Read the files first if you like; they are short.
V="$(npm root -g)/@catalyst-cloud/cli/vendor/self-host/linux-session-egress"sudo install -D -o root -g root -m 755 "$V/session-egress.py" /usr/lib/catalyst/session-egress.pysudo install -o root -g root -m 644 "$V/catalyst-session-egress.service" /etc/systemd/system/catalyst-session-egress.servicesudo install -o root -g root -m 644 "$V/catalyst-session-egress-attest.service" /etc/systemd/system/catalyst-session-egress-attest.servicesudo install -o root -g root -m 644 "$V/catalyst-session-egress-attest.timer" /etc/systemd/system/catalyst-session-egress-attest.timersudo systemctl daemon-reloadsudo systemctl enable --now catalyst-session-egress.service catalyst-session-egress-attest.timersudo /usr/bin/python3 /usr/lib/catalyst/session-egress.py attestThe last command prints attested. The service creates the Docker network catalyst-session-v1 and an nftables table, inet catalyst_session, that drops traffic from that network to private addresses. A timer checks it every five minutes and after each restart.
Updates
Section titled “Updates”When the installed catalyst supports catalyst update auto-update status, setup turns on one 15-minute release check for the command, the skills and the machine’s own images. It needs a scheduler: launchd on a Mac, or a systemd user session on Linux. Over SSH without a lingering user session, the installer skips it and says so; in that case, run the install command again from time to time. If catalyst update auto-update status is not a command yet, the installer keeps the daily update. That job runs catalyst update to follow your workspace’s approved release and refreshes the development skills. Once your CLI supports the release check, run the install command again to move over.
The check asks Catalyst for the approved release: every component’s approved version and, for the skills packs, the exact commit. Each component that is behind and not held moves; a held component is a report line, never a failure. When a newer one is approved, the machine waits until no phase is running on it, downloads the new images, switches to them and checks that it is ready again. If it is not ready within five minutes, it goes back to the images it had and tries again at a later check. After a successful switch it deletes the images it replaced, so the update does not cost disk space. Setup turns this on.
Settings → Runners shows each runner’s last release check, the release generation the cloud answered, the image it runs and its last update outcome. A runner that is still taking work but has not checked for the approved release in 45 minutes shows as Not following release, so a runner whose update check has stopped running is visible without access to the machine.
On a CLI with the release check:
catalyst update --checkshows what moved and what is held, with installed and approved versions, and changes nothing.catalyst updatechecks and moves what is behind now.catalyst update auto-update status,onoroffshows, turns on or turns off the one 15-minute release check.catalyst runner auto-update status,onoroffholds or releases the runner, supervisor and watchdog images inside that check.
On a CLI without the release check, catalyst runner update --check shows the approved release and what would change, and catalyst runner update updates now. catalyst runner auto-update status, on or off controls the runner’s existing 15-minute schedule. The installer’s daily job remains separate.
On a Mac the check is a launchd agent. On Linux it is a systemd user timer, which stops when you log out unless your user services keep running. On a machine with a runner, setup turns that on for you (lingering), so the check keeps running after you log out of an SSH session, and it tells you how to undo it: loginctl disable-linger $USER. If the machine does not let you turn it on yourself, setup says so and names the one command to run instead: sudo loginctl enable-linger $USER. catalyst runner auto-update status says whether the check keeps running after you log out. For a machine you set up before this, run the install command again to get the current catalyst. If it supports the release check, use catalyst update auto-update on; otherwise run catalyst runner auto-update on.
What this machine sends to Catalyst
Section titled “What this machine sends to Catalyst”A machine running Catalyst sends us the logs of the containers Catalyst runs on it, and a few numbers about the machine, so we can diagnose a failure there and support you. This is on by default.
- Only the containers Catalyst runs. That means Catalyst’s own service containers and the containers a ticket’s work runs in, which Catalyst started on this machine. A container it does not recognise ships nothing, and neither do the machine’s own logs or Docker’s own logs.
- A ticket’s work container includes what the agent prints. Its log can hold code from your repository and the output of commands the agent ran, such as a build or test run, as well as the agent’s progress and errors.
- Secrets are removed on the machine first. Before a line is stored or sent, Catalyst masks the secrets it knows on this machine, every credential it gave a ticket’s work container, and anything shaped like a token, password or key. The one exception is the brief copy of a finished work container’s last lines, described below. Matching by shape has a limit: a secret in a form Catalyst does not recognise can pass through, so keep secrets out of what your setup steps print.
- Your work can appear in these logs. A line can name a repository, a branch, a ticket or a file, because that is what a failure needs to say.
- The machine’s numbers, once a minute. How many CPUs it has and its load over the last minute, its total and available memory, and its free disk. Memory and disk are in whole GiB. No process, file or container name goes with them. On a Mac they describe Docker’s virtual machine, except free disk, which is the Mac’s own.
- The disk budget, when it stops a phase. If a phase cannot start because this machine’s disk budget is full, the refusal sends the budget, what running phases reserve, what kept workspaces hold, what could be removed, and what the phase asked for. They are whole numbers of bytes, and no file, container or repository name goes with them.
- A finished work container’s last lines are kept briefly. Just before Catalyst removes a work container, it copies the lines not yet sent to a private file on the machine, with the secrets it knows on this machine and every credential it gave that container already masked. On the next pass, about 30 seconds later, the shape matching for tokens, passwords and keys runs too, then the lines are sent and the file is deleted. With shipping turned off, nothing is copied.
- Logs stop if they cannot be sent. Sending never holds up a phase. If Catalyst can’t be reached, the machine keeps a small amount on disk, sends it later and drops the oldest lines when that is full.
Turning it off stops both the logs and the numbers. To turn it off on a machine, add this line to ~/.local/state/catalyst/runner/.env, then apply it from that directory:
CATALYST_NODE_LOG_SHIPPING=offdocker compose -p catalyst-host up -dSending runs only when the setting is exactly on, so any other value also keeps it off. An update never changes a value you set.
Docker restarts
Section titled “Docker restarts”On Linux, Catalyst’s service turns on Docker’s live-restore setting when it starts, so a Docker restart or a Docker patch upgrade leaves running phases running. It adds one line, "live-restore": true, to /etc/docker/daemon.json, or creates the file with that line when there is none. Every other setting stays as it is, and the previous file is kept beside it as daemon.json.catalyst-live-restore-<time>.bak. Docker then reloads its settings without restarting, so nothing running stops. The reload also applies any other change already saved in the file, as sudo systemctl reload docker would. This happens each time Catalyst’s service starts, at setup and again after every update, so a machine set up before this gets it from its next update.
Catalyst leaves the file alone when it cannot change it safely, for example when the file is not valid JSON, Docker reads its settings from another file, or swarm mode is on. It also leaves the file alone when it already says "live-restore": false. To keep live-restore off, set "live-restore": false yourself.
To check a machine, run the doctor from Catalyst’s folder:
$ cd ~/.local/state/catalyst/runner$ docker compose -p catalyst-host exec supervisor bun /opt/catalyst-supervisor/doctor.jsDocker engine 29.9.1 (native Linux)live-restore on A Docker restart or a Docker patch upgrade keeps running phases.When live-restore is off, the doctor says why and names the fix. It exits 0 when live-restore is on and 1 when it is off. Docker keeps containers only across patch upgrades, for example 29.9.0 to 29.9.1, not 29.9 to 29.10. Docker Desktop and OrbStack on a Mac restart their engine with their virtual machine, so they cannot use live-restore, and Catalyst leaves their settings alone.
See it in Settings → Runners
Section titled “See it in Settings → Runners”Once setup finishes, the runner appears under Self-hosted by the name you gave it, for example studio-mac, with its runners in use out of its total, such as 1 of 4 runners. A runner that has not checked in for 15 minutes shows as offline. Rename or remove it there, or with catalyst hosts rename and catalyst hosts remove.
List your machines
Section titled “List your machines”Any member can list the workspace’s machines from any signed-in computer:
catalyst hostsEach line shows a machine’s name, whether it is self-hosted or Catalyst’s, its project, how many phases it runs at once, how many are running and how many more it can take, whether it is live and its last check-in. The last line totals the live capacity across every machine; a stale machine counts for nothing. catalyst hosts --json prints the same list with each machine’s ID.
A newly set up machine shows as live once it has checked in. Check that it can also take at least one more phase (the free count): catalyst ready checks your workspace, not this machine, and says READY even when the machine can’t take work. To see the work on it, run catalyst running. The run card in the web app shows where each phase ran.
A live machine showing 0 free with nothing running is refusing work. Its log says why. host_disk_below_floor means less than 25 GiB of disk is free: free some space or grow the disk, and the machine takes work again without being set up again.
For Docker startup errors, read the supervisor’s log on the machine:
cd ~/.local/state/catalyst/runnerdocker compose -p catalyst-host logs supervisorPulling one of the images by itself does not enroll a machine. Use catalyst setup --runner.
Capacity
Section titled “Capacity”A self-hosted setup has 2 runners by default, so it runs 2 phases at once. catalyst hosts shows how many runners are configured, in use and free. Free runners can be fewer than configured runners minus runners in use when the computer lacks memory or disk. For example, a computer with 6 GiB of memory and 2 configured runners may offer only 1 free runner while both are idle.
To change the number, set CATALYST_SLOTS in the .env file in that folder, then restart Catalyst’s service from it:
cd ~/.local/state/catalyst/runnerdocker compose up -dThe machine reports its new number when it starts, and catalyst hosts shows it within a minute. The disk budget in the same file (CATALYST_DISK_BUDGET_GIB) changes the same way. Lowering the number never stops a phase that is already running: the machine takes no new phase until fewer than the new number are running.
A machine whose runner predates this keeps the number it was set up with. Run catalyst runner update on it first, then restart as above. If catalyst hosts still shows the old number a minute after the restart, the runner has not updated yet: catalyst runner update --check says which release it runs.
Setup keeps your CATALYST_SLOTS value when it runs again.
Each repository also has a limit of 20 concurrent runners by default, across Catalyst Cloud and self-hosted runners. An owner or administrator reads and lowers it in the web app at Settings → (your project) → (repository) → Runner. That page shows the repository limit; catalyst hosts shows self-hosted capacity.
Rename a machine
Section titled “Rename a machine”An owner or administrator renames a self-hosted machine by its current name or its ID:
catalyst hosts rename studio-mac build-macThe new name follows the same rules as a name chosen in setup, and catalyst hosts shows it from then on.
Stop, replace or remove a machine
Section titled “Stop, replace or remove a machine”Removing a machine ends any phase it is running, and stopping it can cut one off. Let running work finish first: catalyst running shows what is running.
Stop it and keep its enrollment. The machine stops taking work, and catalyst setup --runner starts it again under the same name:
cd ~/.local/state/catalyst/runnerdocker compose -p catalyst-host downRemove it from your workspace. An owner or administrator runs this from any signed-in computer:
catalyst hosts remove studio-macThe command asks before it removes anything. Without a terminal, add --yes; otherwise it keeps the machine and exits 2. If two machines share the name, use the ID from catalyst hosts --json. Removing revokes the machine’s enrollment, so it takes no more work. Only self-hosted machines can be removed or renamed; Catalyst’s own machines are refused.
Then clean up the machine. Removing it from the workspace changes nothing on the machine. First turn off its scheduled check. If catalyst update auto-update status is available, run catalyst update auto-update off; otherwise run catalyst runner auto-update off. Without this step, the check keeps running and fails every 15 minutes after the folder is gone. Then stop Catalyst’s service and delete its credential, its machine key and its folder:
cd ~/.local/state/catalyst/runnerdocker compose down --volumesOn Linux, remove the network isolation service next:
sudo systemctl disable --now catalyst-session-egress-attest.timer catalyst-session-egress.servicesudo systemctl stop catalyst-session-egress-attest.servicesudo rm /etc/systemd/system/catalyst-session-egress.service /etc/systemd/system/catalyst-session-egress-attest.service /etc/systemd/system/catalyst-session-egress-attest.timersudo systemctl daemon-reloadsudo nft delete table inet catalyst_sessionsudo rm -f /usr/lib/catalyst/session-egress.pysudo rm -rf /var/lib/catalyst/session-egressOn a Mac, remove the background job setup added for the work folders:
launchctl bootout gui/$(id -u)/dev.catalystcloud.runner.darwin-thoughts-custodyrm ~/Library/LaunchAgents/dev.catalystcloud.runner.darwin-thoughts-custody.plistrm -rf ~/.local/state/catalyst/darwin-thoughts-custody ~/.local/state/catalyst/darwin-thoughts-requests ~/.local/state/catalyst/darwin-thoughts-responsesThen remove the network and the folder:
docker network rm catalyst-session-v1cd ~ && sudo rm -rf ~/.local/state/catalyst/runnerOn Linux the work folders belong to the user Catalyst’s service runs as, which is why the last line needs sudo. Docker keeps the three images; docker image prune -a removes images nothing uses. If a phase was cut off, docker ps -a may still list a container whose name starts with catalyst-pa_, and docker volume ls a volume with the same start; remove them with docker rm -f and docker volume rm.
Replace it. Set up the new machine with catalyst setup --runner and a name of its own. The old and new machines can run side by side while you switch. Then remove the old one and clean it up.
Move it to another project. Remove it with catalyst hosts remove, clean up the machine, then run catalyst setup --runner --team <TEAM KEY> for the new project. Setup refuses to reuse an enrollment made for another team.
When setup stops before the machine takes work
Section titled “When setup stops before the machine takes work”Setup names what is wrong and what to do. The common cases:
| Setup says | What to do |
|---|---|
| install and open one supported coding agent (Claude Code, Codex, OpenCode, or Cursor), then re-run this script | Install one, for example npm install -g @anthropic-ai/claude-code, then run the installer again. |
| install Node.js from https://nodejs.org, then re-run | Install Node.js 22.15 or newer with npm, then run the installer again. |
| Native Linux needs a root-managed session egress producer before the runner can take work. | Run the commands in Isolate phase networks on Linux, then run catalyst setup --runner again. |
| Choose repositories when setup checks again. | Add --repo <owner/name> for each repository the machine should work on. |
| Runner setup needs local Docker Desktop or OrbStack on Mac, or native Linux Docker at /var/run/docker.sock. | Switch to a supported engine, then run catalyst setup --runner. |
| A workspace owner or administrator enrolls a runner. | Sign in as an owner or administrator with catalyst login, then run catalyst setup --runner. |
| Setup could not confirm a project for this machine. | Run catalyst setup --runner --team <TEAM KEY> for the project this machine should work for. |
| This runner is enrolled for another Linear team. | Keep that team, or remove the machine with catalyst hosts remove, clean it up and set it up again for the new team. On a new machine, this also means another team’s machine already has the name: choose a different one with --machine-name. |
| Catalyst confirms that this machine’s saved enrollment was revoked. | An owner or administrator checks that the removal was intended. To set the machine up again, clean it up as above, then run catalyst setup --runner. |
| Setup could not read this machine’s saved enrollment. | Run cd ~/.local/state/catalyst/runner && docker compose -p catalyst-host logs supervisor, then run catalyst setup --runner again. |
| The runner started but has not enrolled yet. | Run cd ~/.local/state/catalyst/runner && docker compose -p catalyst-host logs supervisor, or run catalyst setup --runner again in a minute. |
| The selected team does not admit runner work. | Run catalyst setup --runner. With the flag, setup lets the team send work to your own machines. |
See Where work runs for Catalyst Cloud and self-hosted runners, and The CLI for the commands.