Pair a device
Install the linefold CLI so coding agents run their sessions on your own computer.
Coding agents run their sessions in an environment: a device you pair, or a cloud environment an admin sets up in
Settings › AI & Agents › Coding sessions. A device needs macOS or Linux, Node 22 or later, and the agent CLIs you want
(for example claude).
npm install -g @linefold/cli
linefold pair
linefold add ~/code
linefold service install- Install the
linefoldcommand. pairopens Linefold: approve the code it shows.addshares a folder (your home is shared already).service installkeeps it running in the background on a Mac (elsewhere:linefold start).
The device then shows under This device in Settings › Account › Environments, with these commands to copy.
linefold statussays whether it is paired and running.- Run the install command again to update.
- Try it without installing:
npx @linefold/cli pair, thennpx @linefold/cli start.
The daemon keeps one outbound connection to Linefold: no open port, no tunnel. A session's Environment menu moves it to another device or environment.