Docs
Install and pair
Three steps: install the daemon on your computer, show a pairing code, scan it with your phone. After that your devices stay connected, wherever they are.
1. Install the daemon
On your Mac or Linux machine, in a terminal:
$ curl -fsSL https://slashcode.dev/install | shThe installer needs curl and nothing else, and never sudo. It downloads the binary for your system (macOS or Linux, arm64 or x86_64) to ~/.local/bin/slashcode. If that folder is not on your PATH, it prints the line to add to your shell profile.
On macOS it then installs a LaunchAgent, so the daemon runs now and starts again at every login. Its log is at ~/.slashcode/logs/daemon.log.
Would rather hand this to your coding agent? Give it the setup instructions: it installs, checks and stops at pairing, which needs you. Copy the instructions
2. Check that it runs
$ slashcode --version$ slashcode service statusRunning (pid 4242).
The service has three commands, all macOS only:
slashcode service installinstalls the LaunchAgent and starts the daemon now; run it again to pick up an agent you installed since in a new place on your PATH.slashcode service statussays whether it is installed and running, and where the log is when it is not.slashcode service uninstallstops the daemon and removes the LaunchAgent.
Both the installer and service install restart the daemon, which stops the sessions it is running.
On Linux there is no service yet: keep slashcode daemon running in a terminal, a tmux window or a unit of your own.
3. Pair your phone
$ slashcode pairScan this with your phone's camera, or type the code in the Slashcode app:K7QX-2M4PIt expires in 15 minutes and works once. Waiting…
Scan the QR code it prints with your iPhone or iPad, or type the 8-character code in the app, or in the web app at slashcode.dev/app. The QR carries a longer, 26-character code that is never typed. The command prints Paired and the device's name once it has joined. A code that expired, or that was mistyped five times, is gone: run slashcode pair again.
More devices
Pair one device with a code; every other one just signs in to the same account. A device that signs in waits until one you already trust lets it in: a tap on your phone, or from the computer:
$ slashcode devices$ slashcode devices approve <device-id>$ slashcode revoke <device-id>
devices lists the paired devices, with the one waiting for approval, and your plan. revoke removes a device for good: only a new pairing with a code brings it back.
Settings of a computer
Each computer keeps a few switches of its own, read by the running daemon without a restart:
slashcode shell on|off: whether your devices may run!commandin a session's folder. Off by default.slashcode peers on|off: whether sessions on your other computers may write to the sessions here. On by default.slashcode incidents on|off: whether this computer sends its errors and crashes to Slashcode. On by default.
Next, see which harnesses it found.