cs tie

Tie this computer to your organization so your agents can use its shell, files and local MCP servers, and switch what it shares.

cs tie makes the machine you run it on a CoreSpeed connection. A small daemon, tied, holds one outbound link to CoreSpeed and serves the machine's tools; they appear on /mcp as device__<slug>__<tool> for you, and for your organization once you share the device from the dashboard. Every call passes the same approval gate as any other write. Tie is in beta, open to every organization.

What changed in recent releases of cs and Tie for Mac is in the Tie changelog.

Usage

cs tie [--root <folder>] [--share | --pair <code>] [--slug <slug>] [--name <name>] [--pair-again]
cs tie status [--json]
cs tie pause
cs tie resume
cs tie awake [working | always [--on-battery]]
cs tie provider <shell|browser|screen|ssh|mcp:<slug>> on|off [--root <folder>]…
cs tie mcp add <slug> [--env KEY=VALUE]… [--cwd <dir>] -- <command> [args…]
cs tie mcp remove <slug>
cs tie mcp rename <slug> <new-slug>
cs tie ssh on|off
cs tie ssh <slug> [--minutes <1-1440>] [--purpose <text>] [--ticket <ticket>] [-- <ssh args>…]
cs tie ssh-config [--write]
cs untie [--forget]

Tie for Mac

On a Mac, the menu bar app does what cs tie does and shows your approval cards as notifications: download Tie for Mac (macOS 14 or later; it updates itself from then on), open the disk image, drag Tie to Applications, open it and choose Tie This Mac. It carries the same daemon as cs, so it needs no Node.js.

Tie for Windows

On Windows, cs tie also puts the Tie icon in the notification area, and the icon does what the Mac's menu bar does: the machine and where it stands (connected with its tool count, paused, connecting, or that tied is not running) with the one action for that state — Pause or Resume, Start tied, or Tie this machine…; the providers as check items with their tool counts (turning Shell & files on with nothing shared asks for a folder first); Approval notifications; This machine in CoreSpeed, the machine's page in the dashboard; and Quit Tie, which stops tied with it, as quitting Tie for Mac does. To keep the machine tied but refuse calls, use Pause.

Your approval cards come up as Windows toasts with Approve and Deny (Deny alone when the account's owner must approve). The answer goes with your own session (cs login), never with the machine's credential, and only to the CoreSpeed the machine is tied to. A card answered elsewhere, or past its time, comes down by itself. The toast stays on screen until you answer it; once it is in the Action Center, its buttons no longer reach Tie — answer the card in the dashboard, Slack or email instead. Cards reach this machine only while the icon runs.

The icon starts with tied at sign-in, cs tie starts it right away, and cs tie tray starts it by hand; one runs per machine. It writes a Start Menu shortcut, CoreSpeed Tie, which Windows needs to show the toasts; cs untie removes it with the rest. cs.exe is not signed, so SmartScreen warns on the first run of a new version, and the toast's icon is Windows' own.

Tie this machine

npx @corespeed/cs@latest tie

In PowerShell on Windows, type npx.cmd @corespeed/cs@latest tie (why). The dashboard shows the command for your system, with a switch for the other one.

Output
Your agents get a shell and files in one folder on this machine.
Folder [~/Work]:

To tie this machine, open https://app.corespeed.io/tie on any device where you are signed in to CoreSpeed (your phone will do) and enter this code:

    W3NC-6YTB

Or scan it with your phone:

  █▀▀▀▀▀█ ▀▀   █ ▀██▀▀█ █▀▀▀▀▀█
  █ ███ █ █▄ █▀▀▄██▄▀▄▀ █ ███ █
  █ ▀▀▀ █ ▀█▀▀▄ ▀▀ ▄▄█▀ █ ▀▀▀ █
  ▀▀▀▀▀▀▀ ▀▄▀▄▀ ▀▄█▄█ ▀ ▀▀▀▀▀▀▀
  ▀▀▀█▄▄▀▄▀▄   ▄ ▄▄█▄█▄█▄▄█▀▀ █
  ▄▄ ▄ █▀█▄  ▄▄▄▄ ▀ █▄▄▄ ██ ▀▀▄
  ▄ ▄█ ▀▀█▄█▄█ ▀ ▄▀█▄▄  ▄▄ ▀█▄▄
   █ █▀▄▀▄▀█▀ █ ▀▄▄ █▀█▀▄ ▄ ▀█▀
  ▀▀ ██ ▀▄   ▀▄ ▄▄ ▄▀ ██ ▄▀█▄█
  ▀ █▀ █▀█▄▄▀▀█  ▀▄▄█ ▄▀▄▄▀ █
   ▀  ▀▀▀▀█▀█▀█▀█ █▀███▀▀▀███▄▄
  █▀▀▀▀▀█  ▄ ▀▀▄ ▄▀▀█▀█ ▀ ██ █
  █ ███ █ ▄▀█▄█ █▄▄▀█▄▀█▀▀█▄▀▀█
  █ ▀▀▀ █ █▀ █     ▀▀█▄  █▄▄▀▄▀
  ▀▀▀▀▀▀▀ ▀     ▀   ▀▀▀▀ ▀   ▀

Waiting for the code to be entered… it expires in 10 min.
Entered.
Tied this machine as Hao's MacBook (hao-s-macbook).
  device      dev_0199a8c4e1f27b3c9d4e5f60718293a4, private to its owner
  credential  stored in the macOS login Keychain
  settings    ~/.config/cs/tie.json
  sharing     a shell and files in ~/Work
  at login    tied starts by itself (~/Library/LaunchAgents/io.corespeed.tied.plist; `cs untie` removes it)
✓ Checked: CoreSpeed sees hao-s-macbook connected with 9 tools.
Sign in (`cs login`) and run `cs tie` again to check a call end to end.

Next
  Claude Code      claude plugin marketplace add corespeed-io/cs && claude plugin install corespeed@corespeed
  any agent        add the MCP server https://api.corespeed.io/mcp (https://corespeed.io/docs/mcp)
  browser, screen  npx @corespeed/cs@latest tie provider browser on · npx @corespeed/cs@latest tie provider screen on
  this machine     https://app.corespeed.io/machines/dev_0199a8c4e1f27b3c9d4e5f60718293a4

One command, one question, one code. Nothing signs in on this machine — not on a laptop, not on a Mac mini on a shelf, not over SSH. cs tie:

  1. asks which folder your agents may work in. The default, in brackets, is the folder you run it from when that is inside your home folder. Else it is your usual code folder (~/Work, ~/code, ~/Projects, …), or ~/CoreSpeed, made when you take it. It is never your home folder itself, or a folder above or outside it. Press Enter to take it, type another folder's path, or n to share nothing for now;
  2. shows a code — and, at a terminal, the same address as a QR code, so a phone's camera opens the page with the code filled in — and opens the Tie page on this machine too, in case it has a browser. Enter the code on any device where you are signed in to CoreSpeed — the page names this machine and asks whether to share it with your workspace. Whoever enters the code owns the machine, in the workspace they are signed in to — or, if they manage agents, the agent they pick, so a shared machine can be an agent's without a key. The code works once and expires ten minutes after it was shown;
  3. registers the machine the moment the code is entered, stores its credential, and starts tied, which ships with cs;
  4. sets tied to start when you log in, so the machine comes back after a restart;
  5. checks the link, and — when a session is stored on this machine — one call end to end: CoreSpeed calls fs_list on the shared folder through this machine's link;
  6. says what is left, as lines to pick from: the connect command for each coding agent on this machine's PATH (Claude Code, Codex — their plugins register the production server), the MCP server URL for any other agent, the two providers that start off, and the machine's page in the dashboard.

With a session stored on this machine (cs login was run here), there is no code: the session registers the machine directly, after making sure Tie is on for the organization cs acts in — if it is not, cs tie looks in your other organizations and moves to the one where it is (you pick when there are several), and says so — and the check runs end to end.

The credential opens this device's link and nothing else; it is kept in the macOS Keychain, the Linux Secret Service, on Windows in a file encrypted for your Windows account, or, where none of those works, a file only you can read. Off a terminal (a script, an agent) cs tie asks nothing: pass --root to share a folder, and the code is still shown.

The dashboard's Machines page has the same door the other way round: Tie a machine mints a code there, and the machine types it (below).

Platforms

cs tie runs on macOS (Apple silicon and Intel), Linux (x64 and arm64) and 64-bit Intel and AMD Windows. tied is the native cs itself (cs tied serve), so it does not need Node.js. Windows on Arm is not supported yet.

  • macOS: everything. A shell and files, your local MCP servers, your browser through the Tie extension, and your screen. tied starts when you log in.
  • Linux: a shell and files, and your local MCP servers. The browser and the screen need a desktop session (X11 or Wayland); a server you reach over SSH has none. The browser goes through the Tie extension, as on a Mac. tied starts when you log in, where the machine runs systemd for your user.
  • Windows (beta): a shell and files, your local MCP servers, the browser and the screen, and the Tie icon in the notification area (above). Commands run in PowerShell: PowerShell 7 if you installed it, otherwise the Windows PowerShell that comes with Windows. Your agents are told which, so they write commands for it. The browser goes through the Tie extension, as on the other systems. The screen uses the same driver as on the other systems; it cannot reach a window of an app you run as administrator. tied and the icon start when you sign in, through a task of your own account in Task Scheduler, with no console window; a watchdog starts tied again if it stops unexpectedly. 64-bit Intel and AMD Windows only; Windows on Arm is not supported yet.

Tie a machine with a code

A computer with no browser — a Mac mini on a shelf, a Linux box over SSH — needs no sign-in of its own. On the dashboard's Machines page, Tie a machine mints a pairing code and shows this command; run it on that computer:

npx @corespeed/cs@latest tie --pair H4TW-9QPR
Output
Your agents get a shell and files in one folder on this machine.
Folder [~/Work]:
Tied this machine as Office Mac mini (office-mac-mini).
  device      dev_0199b2c3d4e5f67a8b9c0d1e2f30415a, private to its owner
  credential  stored in the macOS login Keychain
  settings    ~/.config/cs/tie.json
  sharing     a shell and files in ~/Work
  at login    tied starts by itself (~/Library/LaunchAgents/io.corespeed.tied.plist; `cs untie` removes it)
✓ Checked: CoreSpeed sees office-mac-mini connected with 9 tools.
Sign in (`cs login`) and run `cs tie` again to check a call end to end.

Next
  any agent        add the MCP server https://api.corespeed.io/mcp (https://corespeed.io/docs/mcp)
  browser, screen  cs tie provider browser on · cs tie provider screen on
  this machine     https://app.corespeed.io/machines/dev_0199b2c3d4e5f67a8b9c0d1e2f30415a

The code stands for the sign-in: the machine is yours — whoever made the code owns it — with the sharing the code was made with (the dialog's switch, so --share is refused beside --pair). It works once and expires ten minutes after it was made; a code that was used, ran out or was revoked is refused with pairing_invalid, and nothing is registered. Type it as you read it: case, hyphens and spaces do not matter, and an O or an I is read as the digit it looks like. The check at the end runs its last step only when a session is stored on that machine, so on a machine nobody signs in on it stops at the link, as shown. While the dialog stays open it names the machine when it appears.

Run it again any time, on a machine that is already tied: it keeps the device and its settings, and when the cs you run is newer than the tied on the machine, it stops the old daemon and starts the new one. That is how an update reaches a machine (npx fetches the latest cs).

Tie an agent's machine

A shared machine — the office Mac mini your agents build and test on — is nobody's laptop, so nobody should sign in on it. Tie it with an agent identity's key instead, and the machine is the agent's:

CS_API_KEY=sk-csa-… npx @corespeed/cs@latest tie --root ~/Work --share

In PowerShell on Windows:

$env:CS_API_KEY="sk-csa-…"; npx.cmd @corespeed/cs@latest tie --root ~/Work --share
Output
Tied this machine as Office Mac mini (office-mac-mini).
  device      dev_0199b2c3d4e5f67a8b9c0d1e2f30415a, agent agent_0199…'s, shared with your organization
  credential  stored in the macOS login Keychain
  settings    ~/.config/cs/tie.json
  sharing     a shell and files in ~/Work
  at login    tied starts by itself (~/Library/LaunchAgents/io.corespeed.tied.plist; `cs untie` removes it)
✓ Checked: CoreSpeed read ~/Work on this machine through device__office-mac-mini__fs_list.
Your agents can use it now: 9 tools named device__office-mac-mini__<tool>, shared with your organization.

With CS_API_KEY set, cs tie never signs in and writes no session: the key is read for the registration and the check, and is kept from tied — the daemon, and the shells it runs for callers, never see it — so the device credential is the only secret that stays on the machine. The key's principal owns the device — an agent, or you, for a member key. An agent's machine is managed by whoever manages the agent (its owner, or a holder of agents:manage): they pause, share, re-pair and revoke it from the dashboard, and cs tie --pair-again on the machine works with the key or with a manager's session. The agent's key sees the machine as its own; --share (or the dashboard) opens it to the whole organization. A key cannot move between organizations, so Tie must be on in the key's own.

CS_API_KEY works for every cs tie command where a session would: --pair-again, and the check on a tied machine.

--root

Share a shell and files in this folder, without the question. The folder must exist.

--share

With a session or a key: shares the machine with your organization from the start (visibility: org). On the code path it does nothing — sharing is chosen by whoever enters the code, on that page — and cs tie says so. With a session or a key: every member and agent identity in it can call the machine's tools, under the same approval gate. Without it the machine is private — its owner's own — until it is shared from the dashboard.

--name

The display name agents and teammates see. Defaults to the machine's host name.

--slug

The device's segment in tool names, unique in your organization: lowercase letters, digits and hyphens, at most 32. Derived from the name when omitted.

--pair

A pairing code from the dashboard's Tie a machine. No sign-in on this machine; the device is the code's maker's, with the code's sharing. Cannot be combined with --share or --pair-again.

--pair-again

On a machine that is already tied, issue a new credential. The old one stops working at once, and a link opened with it is closed. Use it when the credential on this machine was lost, or may have been copied.

Run on a tied machine without --pair-again, cs tie reports the device, makes sure tied is running and starts at login, and checks it again. If the device was revoked from the dashboard, cs tie ties the machine again as a new device.

Choose what it shares

Every provider starts off until you turn it on here; a provider that is off publishes nothing, and no setting in the cloud can turn it on. The folder cs tie asked about is the shell provider's first root.

cs tie provider shell on --root ~/code --root ~/notes   # share these folders too
cs tie provider shell off --root ~/notes                # stop sharing just this one
cs tie provider shell off                               # turn the whole shell off
  • shell — run commands and read, write and search files. File tools stay inside the --root folders; commands start in one. on --root adds a folder, which must exist. off --root removes one, even one you deleted; once the last folder goes, the shell is off. A folder that is not shared is an error, and nothing changes. off --root removes that entry only: a folder inside another shared folder stays reachable through it, and the command tells you so. The device's deny list refuses common destructive commands, but a command runs as you and can reach whatever your account can.
  • browser — your own Chrome, signed in as you, through the Tie extension. Edge, Brave, Vivaldi and Chromium work too. Add the Tie extension to the browser once; it connects to tied on its own. Each agent gets its own window and tab group, Tie · <agent>, and reaches only those tabs and the tabs you share from the extension's button. While an agent works, the browser shows "CoreSpeed Tie started debugging this browser" on every tab. Press Cancel on that bar, or Stop in the extension, and every agent stops. A tab an agent has not used for 5 minutes is let go, and the bar goes away (idleMinutes under providers.browser in tie.json, 1 to 120).
  • screen — read and operate any app's windows. On macOS, turning it on asks you to allow Accessibility and Screen Recording for Tie Driver.
  • ssh — SSH sessions on this machine, through CoreSpeed. cs tie ssh on is the same switch. See SSH to a tied machine.
  • mcp:<slug> — an MCP server added with cs tie mcp add.

cs tie mcp add hosts a local stdio MCP server; its tools are published as <slug>_<tool>. Everything after -- is the command that starts it.

cs tie mcp add resolve --env RESOLVE_HOME=/opt/resolve -- npx -y resolve-mcp
cs tie mcp rename resolve davinci       # the same server; its tools become davinci_<tool>
cs tie mcp remove davinci

A server cannot take the slug of a provider's own tools: shell, fs, browser, screen, page, tie or ssh. ssh became the SSH provider's in cs 0.12.0. A server you added under that name before keeps its entry in tie.json, but tied does not run it, and cs tie status says so. cs tie mcp rename ssh <new-slug> runs it again under a new name.

Each change is written to tie.json and applied by tied at once; the command prints the provider's state as tied reports it.

SSH to a tied machine

A tied machine can take SSH sessions through CoreSpeed. The machine opens no port and runs no SSH server of its own. You need cs and the OpenSSH client on the machine you connect from.

Turn SSH on, on the machine you want to reach:

cs tie ssh on

Then connect from any machine where you use cs:

cs tie ssh garrys-mac-mini
cs tie ssh garrys-mac-mini -- make test     # run one command
cs tie ssh garrys-mac-mini --minutes 120 --purpose "fix the build"

To use plain ssh, scp, rsync or an editor's remote SSH, write the block once:

cs tie ssh-config --write
ssh garrys-mac-mini.tie
scp build.zip garrys-mac-mini.tie:~/Downloads/
~/.ssh/config
# >>> CoreSpeed Tie >>>
Host *.tie
  ProxyCommand "/usr/local/bin/cs" tie ssh-proxy %h
  UserKnownHostsFile /Users/garry/.config/cs/tie-known-hosts
  StrictHostKeyChecking yes
  ServerAliveInterval 20
# <<< CoreSpeed Tie <<<

What happens when you connect:

  1. cs asks CoreSpeed for a session on the machine, with the device tool device__<slug>__ssh_session. The call passes the same approval gate as every device tool. Your organization's rules decide who may open one, people and agents alike.
  2. CoreSpeed answers with a ticket. The ticket works once, within 60 seconds.
  3. ssh runs cs tie ssh-proxy, which carries the session through CoreSpeed to the machine. SSH encrypts it end to end, so CoreSpeed sees no command and no output.

What a session can do:

  • A shell, commands, scp and sftp, and local port forwarding (-L).
  • Everything runs as the owner's account on that machine, in the owner's login shell. The shell provider's folders and deny list do not apply.
  • Programs start with a fresh environment, as over sshd: the account's HOME, USER and SHELL, the login shell's PATH, and SSH_CONNECTION. Nothing comes from the terminal the daemon started in.
  • The locale is the one your ssh sends: LANG and LC_*, which the ssh of macOS, Debian, Ubuntu and Fedora sends by default. If the machine does not have it, or nothing names one, the session gets the machine's UTF-8 locale.
  • If the machine has no description of your terminal (Ghostty's xterm-ghostty on a Mac), TERM is xterm-256color.
  • Remote port forwarding (-R), agent forwarding and X11 are refused.
  • A session lasts 12 hours unless you ask for another length with --minutes, at most 24 hours (1440). When the time runs out, the session ends.
  • One approval covers that time. Until it runs out, you reconnect to the same machine with no new approval: a new ssh, scp or editor connection opens at once and ends when the approved time ends. Ask for more minutes than are left, and the session needs a new approval. The approval stops covering reconnects when your organization changes its approval rules, or the machine is paused or its share with you changes.
  • A machine takes at most four sessions at a time.
  • The machine keeps a transcript of what each session printed. It never keeps what you typed.

If SSH is off on the machine, cs tie ssh says so: its owner turns it on there with cs tie ssh on, or in Tie's menu on a Mac or on Windows.

If a human must approve the session, cs tie ssh (and ssh <slug>.tie) says so and waits for the decision: approve it in Slack, the dashboard or Tie's menu, and the session opens. Ctrl-C stops waiting.

The first connection records the machine's host key in ~/.config/cs/tie-known-hosts. If a later connection sends another key, the machine was tied again, or another machine has its name. cs then stops and names the line to remove.

--write puts the block above your first Host section, so its settings win over a Host * section, and leaves the rest of the file as it was. Run it again to update the block, for example after cs moved. When you run cs with npx, the block names the copy of cs under ~/.config/cs/tied/, because npx can remove its own. When cs runs with CS_ENV, CS_API_URL or CS_CONFIG_DIR set, the block sets the same values for ssh, so a later shell reaches the same CoreSpeed with the same session. On Windows, the block works with the OpenSSH client that comes with Windows, but it cannot set these values: set them in your environment before you run ssh.

Run Agent Ensemble sessions on this machine

A tied Mac or Linux machine can also run your Agent Ensemble sessions: as you, with your own Claude Code or Codex login, in a folder of its own. No seat is used and nothing is metered; preview, the terminal and checkpoints are not available there. This is runner mode, and it is off until you turn it on.

cs tied serve --fleet-runner      # for this run of the daemon

To keep it on, set it in ~/.config/cs/tie.json (cs tied reload applies it):

"fleetRunner": { "enabled": true, "origin": "https://…", "capacity": 2 }
  • origin — the Agent Ensemble service the machine serves. CS_FLEET_URL sets it when tie.json does not.
  • capacity — how many sessions run at once, 1 to 16 (default 2).
  • name — what members see; the device's name when not set.
  • engines — claude, codex or both; by default every one whose CLI is on PATH (or in ~/.local/bin, ~/.bun/bin or /opt/homebrew/bin).

Runner mode needs bash and bun. It does not run on Windows. Each session gets a folder under ~/.config/cs/tied/runners/, and its runner starts there in a process group of its own, without the device credential. cs tied status shows the machine's slot (runner line) and says what is missing when runner mode is on but cannot run. cs tied stop takes the machine out of the pool first, then stops its sessions; their folders stay for the next start.

status

cs tie status
Output
device     Hao's MacBook (hao-s-macbook) · dev_0199a8c4… → https://api.corespeed.io
CoreSpeed  connected · private · 9 tools · linked now
tied       0.1.0 · pid 48213 · link connected since 2026-10-06T09:14:02.511Z
  shell            ready         9 tools
  browser          disabled      0 tools
  screen           disabled      0 tools
awake      while agents work · holding the lock: an agent is working

The first two lines are CoreSpeed's view of the device, the rest is the daemon on this machine. --json prints both as one document. With Browser on and the Tie extension in use, one more line says where it stands, such as extension Connected · Chrome 156 or extension Waiting for Chrome.

pause and resume

cs tie pause
cs tie resume

A paused device refuses every call before it runs, with paused_by_owner. The pause is set on CoreSpeed and on this machine; if CoreSpeed cannot be reached, the machine's pause still holds.

Keep the machine awake

Agents cannot reach a machine that is asleep. While an agent works on it, tied keeps the machine from going to sleep on its own: while a call runs, a background command runs or an SSH session is open, and for ten minutes after the last of them. It never does while the machine is paused.

cs tie awake                      # what it does now
cs tie awake always               # also while nothing runs, while on power
cs tie awake always --on-battery  # on battery too
cs tie awake working              # back to the default

always is for a desktop that should be there whenever an agent needs it. On battery it waits for power, unless you add --on-battery.

It only stops the sleep that idleness causes. The display still turns off and the screen still locks, so the shell and files stay reachable while the browser and screen tools wait until someone unlocks it. Closing the lid, choosing Sleep, a low battery or overheating still put the machine to sleep. On a Windows laptop with Modern Standby, Windows keeps the machine awake on battery for only about five minutes after the screen turns off. On Linux it needs a desktop session (logind and polkit); over SSH alone, only logind's own idle action is held off.

The setting is keepAwake in tie.json; on Windows, cs tie awake is the way to set it. In Tie for Mac it is Keep Awake in the menu and in Settings, While Agents Work or Always; Settings' Also on battery is --on-battery. The line under it in the menu says what Tie does now: "Awake · agent working", "Awake · 7 min left" (the ten minutes after the last work), "Awake on power", "Always awake", "On battery · only while agents work" (Always waiting for power), "Paused", "May sleep when idle", or, in orange, why macOS refused.

untie

cs untie

Revokes the device on CoreSpeed, deletes its credential from this machine, stops tied and removes its start at login (on Windows, the Tie icon and its Start Menu shortcut go with it). It also removes the machine's SSH host key, so when you tie the machine again, it is a new host to ssh. Once tied has stopped, it removes the programs tied ran: its copy of cs and the screen driver, about 100 MB. It keeps, and says so, your provider settings in tie.json for the next cs tie, and tied.log, tie-calls.jsonl and the recordings, the record of what agents did here.

When CoreSpeed cannot be asked about the device — its credential here is gone and your session is in another organization than the device — cs untie stops and says so instead of guessing. cs switch to the device's organization and run it again, or cs untie --forget to remove the device from this machine only; revoke it from the dashboard then.

Signed in to another environment

The device lives on the CoreSpeed it was tied to (origin in tie.json). status, pause, resume and untie use the device's own credential and work whichever organization cs is signed in to. Registering and --pair-again use your session — or CS_API_KEY — which must be for that same CoreSpeed.