Docs

Machines

Every machine runs the same engine: this Mac, and any server you add. Threads and projects from all of them sit in one sidebar, each marked with its machine when it isn't this Mac. A thread can move from one machine to another, with its conversation and its uncommitted work.

The bottom-right corner of the sidebar has a dot for this Mac and each server: green when connected, the accent while connecting or reconnecting or when there's an update, red when it needs an update to talk to this app, grey when offline. When something's wrong the corner says so in a word or two. Click the corner for a menu of your machines, and click one for its palette: how it's reached, its engine, its agents and its projects.

Add a server

Click the machines in the bottom-right corner of the sidebar, then Add a machine. On Server, paste the ssh command you were given, such as the one on AWS's Connect page, and click Connect:

ssh -i "my-key.pem" ubuntu@ec2-3-14-15-92.us-east-2.compute.amazonaws.com

The address, key, user and port fill in from it. You can also type an address and choose or drop the key file. More options has the user, the port and a name for the sidebar. Without one, a server gets a name rather than its address: the first part of a host name you typed (devbox.example.com is devbox), else the name the server gives itself, else what kind of server it is (an EC2 instance's own ip-172-31-… name makes it "AWS server"). Click the name at the top of a machine's sheet to rename it. A host from your ssh config can be picked from the list, and connects with your config as it is.

Caret then:

  1. Finds the key. A name on its own is looked for in Downloads, ~/.ssh, Desktop, Documents and your home folder.
  2. Makes the key private (chmod 600), because ssh refuses a key others can read and a downloaded one often is. Only that key is offered to the server.
  3. Finds the user, if none was given and there's a key or it's a cloud address. It tries ubuntu, ec2-user, admin, debian, centos, rocky, almalinux, fedora and root.
  4. Signs in with your own ssh, so your agent, ProxyJump and ControlMaster settings apply. A server new to ssh is accepted the first time, and a server whose key later changes is refused. If it asks for a password or a 2FA code, a sheet asks you for it.
  5. Installs its engine into ~/.caret/runtime/versions/<version>/ on the server and connects. No port is opened: the app talks to the engine through ssh host caret proxy.

If something goes wrong, the sheet says what and what to do. For example, a server that doesn't answer on an AWS address points you at the instance's state and its security group.

The engine for the server's system comes from the release: the server downloads it and checks it against the release's SHA256SUMS. A server without internet gets it from the app over the same ssh connection instead. If neither is possible (a development build, or a system there's no build for), the sheet says what's needed.

Then set up the server's agents: its sheet lists them as first run does, and Install and Sign in run in a terminal on the server. Over SSH, Codex signs in with a code you enter on any device (codex login --device-auth), and Claude Code prints a link and asks for the code back.

You can also add a server during first run, on its Servers step.

Pair a device directly

Pairing connects to a Mac's engine over your LAN or tailnet without SSH. On the machine you want to reach:

  1. Open Settings → Access and turn Direct connections on. Nothing listens until you do.
  2. Under Pair a device, choose what the device may do (threads, terminal, files, git, settings, agents, access, ports; all are on at first) and click Make a pairing code. The code works once, for five minutes, and comes with a link and a QR code.

Or, in a terminal there: caret pair.

On the device that connects: Add a machine → Pair with a code, then paste the caret://pair link, or type the address and the code. The certificate is pinned when you pair, so another machine can't stand in for it later.

Settings → Access → Paired devices lists who can connect and what they may do; Revoke ends a device's access at once. A device paired with fewer scopes sees only what it may do: the rest is greyed with "This device can only read".

Use Tailscale

If both machines are on the same tailnet, a paired machine is also reached over Tailscale, using the same pinned certificate. caret pair --tailscale makes a code whose links use only the tailnet, including the machine's MagicDNS name. Settings → Access → Tailscale says whether the Mac is on a tailnet and whether its engine listens there.

A server you reach over SSH by its Tailscale name needs nothing more: SSH handles it.

How a machine is reached

A machine can have several routes: SSH, LAN and tailnet. Caret learns which work and which are fastest, tries them in that order, fails over when one drops, and quietly moves to a better one when it appears. To set your own order, drag the routes in the machine's sheet.

After sleep or a network change, every machine is checked again within a few seconds.

Start a thread on a server

In a new thread, click the machine in the context strip under the composer (Run on, ⌘⇧H) and pick the server. The composer then offers that machine's agents, models and sign-ins, and the project picker lists that machine's projects.

The project comes along when it can. If the server already has a project for the same repository, the draft switches to it. If it doesn't, the draft says so and offers:

  • Bring <project> here: clones its repository on the server (or uses a checkout already there), with any ignored files you tick (.env and the like), and continues in it.
  • Pick a project among the server's own.
  • Open a folder on the server.

Switching back to the first machine finds the project again.

To add a project on a server yourself, click + beside Projects in the sidebar (or New project… in ⌘K) and pick the machine. This Mac opens the system's folder picker; a server opens a browser of its folders, where git repositories are marked. Click a folder to go in, or type a path, then Add it. A repository's row has its own Add when you hover it. Clone a repository here… clones one into the folder you're in and continues in it. A server whose engine is older than the app asks for the folder's path instead of listing it.

You can also hover a project row in the sidebar and click its add-to-machine button to put it on another machine.

A dev server an agent starts on a server is forwarded to this Mac when you open it, so its page opens at localhost in the Browser. Settings → Machines → Forward a remote thread's servers by themselves forwards them as they start.

Move a thread to another machine

Right-click the thread (or click ⋯) → Move to → the machine. Or drag its row onto the machine in the strip, or use ⌘K → Move thread to….

A sheet says what moves: the conversation, the branch and where it goes there, the uncommitted files, and whether the agent's own session comes along or the agent carries on from a summary (if that agent isn't installed or signed in there, say). Tick any ignored files to carry; files over 1 MB can't be.

  • If the thread's agent is working, choose Wait for it to finish or Stop the turn and move.
  • If the other machine has no project for the repository, the sheet asks: use an existing checkout there, or clone into a folder it suggests.
  • If local changes there are in the way, Move into a new worktree puts the thread in one.

When it's done, the thread opens on its new machine and a toast says "Moved to devbox" with Undo for 10 seconds. The old copy stays behind, read-only: "This thread moved to devbox …", with Open it there. The header of the moved thread says "Moved from MacBook".

If the other machine doesn't have the thread's agent, the sheet offers to carry on with another agent there.

Use only servers

If your Mac only drives a devbox, you can stop running an engine on the Mac at all: tick Use only servers on first run's Servers step, or in the server's sheet. New threads then start on the server, and This Mac leaves the machines menu. Run This Mac's engine again, in the server's sheet or Settings → Machines, turns it back.

Keep the Mac awake

While an agent works on this Mac, Caret keeps it from idle sleep (the display can still sleep). Settings → Machines → Keep this Mac awake while agents work turns it off.

Quitting the app doesn't stop your agents: this Mac's engine keeps running while a turn or a terminal is busy, then stops by itself.

Update a server's engine

When a server's engine is older than the app, the machines corner says so, a banner over the composer offers Update, and the server's sheet has Update the engine. The update waits for running turns to end ("Waiting for 2 running turns…"), with Update now and Cancel, then installs the new engine and reconnects. It signs in the way the connection does, with the user, port and key the server was added with. Update everything updates the servers' engines first, then the agents, so a server's agents are updated by its new engine. From a terminal: caret update --machine devbox.

Run the engine on a server

On a server, the engine Caret installed is at ~/.caret/runtime/current/caret-engine. You can run it directly:

  • Keep agents working with no app connected: caret service install installs it as a systemd user service (a LaunchAgent on a Mac), started again at every login. caret service status says how it stands. On Linux, run loginctl enable-linger so it keeps running after you log out.
  • Give the service your PATH: a service doesn't read your shell's profile, so CLIs installed with Homebrew, nvm or in ~/.local/bin may not be found. Put PATH=… (and any proxy settings) in ~/.caret/engines/caret/service.env, then run caret service restart.
  • Pair with it directly: caret service install --listen auto has the service take direct connections on every LAN and tailnet address (port 7443), and caret pair makes a code.

See The caret command for every subcommand.