Setup and safety

Run your agents on a Linux server and close your laptop

Put a lead and its crew on a Linux server you own or rent, so they can keep working while your Mac sleeps. You sign them in from your Mac.

  • Updated December 1, 2026
  • 5 min read
  • 4 primary sources
  • 5 steps
  • You act in steps 2, 3 and 4

What you get

What you get

Your Mac

  • You brief and decide
  • Shows the server’s workspaces
  • Answers its requests

Linux agent server

  • The lead and its crew
  • Their CLI sign-ins
  • Can keep working while the Mac sleeps
A direct line: the same network, or Tailscale on both

CmdBrief runs on the server with no window, as a service. Your Mac shows that server’s workspaces, leads and requests next to its own, and you start a lead there from the Mac. The lead and its crew run on the server, so they can keep working when your Mac sleeps or the lid is closed. When the Mac wakes, it catches up.

Before you start

  • A Linux server on 64-bit Intel or AMD (x86_64) with glibc 2.35 or newer (Ubuntu 22.04, Debian 12 or later) and systemd.
  • A network the Mac and the server share, or Tailscale on both.
  • CmdBrief signed in on your Mac.
  • A terminal on the server for you (SSH is fine). An agent can do the checks and installs over SSH, but signing in and pairing need you.

Install the agent CLIs

An agent can do thisOn the server, or over SSH

On the serverbash
uname -m                     # x86_64
ldd --version | head -1      # 2.35 or newer
npm i -g @anthropic-ai/claude-code @openai/codex

Add gh too if the lead will clone from GitHub. Install only the CLIs you will use there.

Check it worked

  • Serverclaude --version; codex --versionEach CLI you installed prints its version.

Install CmdBrief and sign in

You do thisIn your own terminal on the server

On the serverbash
curl -fsSL https://cmdbrief.com/install.sh | sh

It installs CmdBrief in ~/.local/bin, runs it as a user service, signs the server in with the code from your email, turns sharing on and shows the code to pair. When it says another computer must approve this one, approve it on your Mac in Settings › Computers.

Or step by step: download CmdBrief-*-linux-x86_64.tar.gz from the Linux download, then:

On the server, step by stepbash
tar -xzf CmdBrief-*-linux-x86_64.tar.gz
cd CmdBrief-*-linux-x86_64 && ./install.sh
cmdbrief login                       # type the code from your email
cmdbrief service install             # keep it running as a user service
sudo loginctl enable-linger $USER    # keep it running after you log out
cmdbrief share on                    # let your other computers see it
cmdbrief remote-host on              # optional: auto-resume interrupted agents after restarts

Automatic resume after a restart is off by default, even under cmdbrief serve. If you want interrupted agents to pick back up on their own after a reboot or update, run cmdbrief remote-host on in your terminal or SSH session (which enables Resume interrupted agents on launch, cold-chat fresh starts, and sharing), or turn on Resume interrupted agents on launch alone in Settings › Conversations.

Check it worked

  • Serversystemctl --user is-active cmdbriefIt prints active.
  • Serverloginctl show-user "$USER" -p LingerIt prints Linger=yes.

Pair it with your Mac

You do thisOn your Mac, with the server’s terminal open

  1. On the Mac, open Settings › Computers, find the server, and choose Pair with a code… from its More menu.
  2. On the server, run cmdbrief pair. It prints who is asking and a 6-digit code; type the code on the Mac. Pairing codes are for your eyes: CmdBrief keeps them away from agents.
  3. Keep Full use (the default for cmdbrief pair), so the Mac can open the server’s terminals, agents and files and start leads there.

Check it worked

  • Servercmdbrief computersYour Mac is listed with full use and a direct line.

Sign the agent CLIs in from your Mac

You do thisOn your Mac, in Settings › Computers

Open Settings › Computers › the server › Setup and press Sign in on each agent’s row. The server runs that CLI’s own sign-in, and the Mac shows its terminal with Open sign-in page.

  • Codex: open the page, sign in, and type the code the terminal shows into the page.
  • Claude Code: open the page, sign in, copy the code the page shows, paste it into the terminal in the sheet, and press Enter.
  • GitHub, if the lead clones from it: run gh auth login in your terminal on the server.

The sheet closes when the CLI says it is signed in. Your sign-ins are never copied between computers.

Check it worked

  • MacLook at Settings › Computers › the server › SetupEach agent you use shows as signed in.

Start a lead there

An agent can do thisOn your Mac

A lead on your Mac can suggest one: it lists your computers, then shows a card with the server, the agent and the brief.

Check it worked

  • Servercmdbrief statusThe lead is listed and working.
  • MacClose the lid for ten minutes, then open itThe lead’s work went on, and the Mac shows it.

If it fails

  • “GitHub isn’t signed in on server. Run gh auth login there.”

    You do this

    Run gh auth login in your terminal on the server.

  • An agent’s row says it isn’t signed in

    You do this

    Press Sign in on that row from the Mac.

  • The server goes offline when you log out of SSH

    Linger is off: sudo loginctl enable-linger $USER.

  • The Mac says “Connect both to the same network or to Tailscale”

    Bring up Tailscale on both computers, or put them on one network.

  • cmdbrief serve exits with code 3

    Another CmdBrief runs on the same profile there. Keep only the service.

  • Agents stopped when the server restarted

    You do this

    Automatic resume is off by default, even under cmdbrief serve: interrupted agents stay recorded until you press Continue or Resume lead & crew from your Mac. To resume automatically after future restarts, turn on Resume interrupted agents on launch in Settings › Conversations, or enable Remote host with cmdbrief remote-host on in your terminal or SSH session (also in Settings › Computers).

Undo

Sign each CLI out from the Mac with Sign out in one of the server’s agent panes. It asks first, because it signs out every session of that account on the server. Then unpair the server in Settings › Computers.

Questions

Can the agents keep working with my Mac closed?

Yes. They run on the server. The Mac shows their work again when it wakes.

Where do my agent sign-ins live?

On the server, where the CLI keeps them. CmdBrief never copies them between computers.

Should I use a build machine instead?

Use a build machine when you only want builds and tests off your Mac and no sign-ins elsewhere. Use an agent server when work must go on while your Mac sleeps.

Still unsure? Write to [email protected] or use the contact form. Contact CmdBrief →

Primary sources

Provider terms and product behavior can change. Confirm plan, pricing, model, and permission details in the current official documentation.

We use cookies to analyze site usage.