Commands
Every link-host command and option.
link-host <command> [options]link-host on its own prints the list of commands.
| Command | Does |
|---|---|
setup | Start Link Host at login and connect a phone (after Homebrew or winget) |
ssh setup | Turn on Link's SSH server and print a pairing code |
ssh connect | Print a connection code for an SSH server that already runs |
devices | List or remove paired phones |
relay deploy | Put Link's relay on your Cloudflare account |
channel | Link's Claude Code channel |
schedule | Scheduled tasks (the app manages them) |
status | Is Link Host running? |
doctor | Check this computer is ready |
desktop | The desktop stream (the app starts it) |
serve | Link Host's service (the installer starts it) |
uninstall | Remove Link Host's service, before removing the program |
version | Print the version |
setup
Starts Link Host at login for the link-host you run it with, wherever it was installed, then helps you connect a phone. Run it after brew install or winget install, and again after an upgrade, so the service runs the new version. The one-line installer runs it for you.
link-host setup [--no-ssh]- Linux: a systemd user service,
link-host.service, thenssh setup, which prints a pairing code.--no-sshskips the pairing code, for an upgrade. - macOS: a LaunchAgent,
com.falaq.link.host, then the steps to connect your phone. - Windows: a scheduled task, "Link Host", then the steps to connect your phone.
Installed by Homebrew or winget, the service runs the package manager's link-host link, which stays the same across upgrades.
ssh setup
Turns on Link's SSH server for your account and prints a one-time pairing code as a QR code, then waits until a phone uses it. Linux only. Run it without sudo. See Pair your phone.
link-host ssh setup [options]| Option | |
|---|---|
--host ADDRESS | Address the phone should use (IP or hostname). Default: the address of this computer's default route |
--port N | Port the phone connects to. Default 2222 (22 with --system) |
--relay wss://… | Pair through a Link relay; remembered for later setups |
--rendezvous URL | Where phones find this computer to connect directly (an ntfy server). Default https://ntfy.sh; off to use only the address in the code |
--system | Set up the system's OpenSSH service instead (asks for your password; the phone then signs in with your account password) |
--local-port N | Local SSH port to read the host key from. Default: --port |
--username NAME | Existing account to sign in to. Default: you |
--json | Print only the public connection details as JSON |
ssh connect
Prints a connection code (and its QR code) for an SSH server that's already running: the system's OpenSSH on Linux, Remote Login on macOS, OpenSSH Server on Windows. The code holds the address, account and host key, never a secret; the phone signs in with your password. It changes no services.
link-host ssh connect [--host ADDRESS] [--port 22] [--local-port N] [--username NAME] [--json]--port only describes the port the phone connects to; it doesn't reconfigure the server. Use --local-port when the server listens locally on a different port than the one the phone uses (port forwarding on a router, for instance).
devices
link-host devices # list paired phones and unused codes
link-host devices remove ID-or-NAME # unpair a phoneEach phone shows its id, name, pairing date and when it last connected. remove takes the phone's access away and ends its open sessions.
relay deploy
link-host relay deploy [--account ACCOUNT_ID]Uploads Link's relay to your Cloudflare account as the Worker link-relay and prints its address. Asks for a Cloudflare API token (made with the "Edit Cloudflare Workers" template), or reads it from CLOUDFLARE_API_TOKEN. --account picks the account when the token can see several.
| Environment | |
|---|---|
CLOUDFLARE_API_TOKEN | The token, instead of typing it |
LINK_TURN_KEY_ID, LINK_TURN_KEY_API_TOKEN | A Cloudflare TURN key to add to the relay |
channel
Link's Claude Code channel (Claude in a terminal).
link-host channel setup # add it to Claude Code
link-host channel list # sessions started with the channelThe app uses the channel's other commands by itself.
schedule
Scheduled tasks, from Link Host 0.1.3. The app manages them; these are for looking on the computer.
link-host schedule list # the tasks and their runs, as JSON
link-host schedule run ID # run one now
link-host schedule stop ID # stop its run
link-host schedule disable ID # pause it (enable to resume)
link-host schedule remove IDlink-host serve runs them, so Link Host's service must be running. Exits with code 4 when it isn't.
status
link-host statusSays whether Link Host is running, with its version. Exits with an error when it isn't.
doctor
link-host doctorChecks that Link Host is running, which tmux terminals use, and that the computer has what the desktop needs.
desktop
The desktop stream. The app starts it when you open the Desktop tab; you don't need to run it.
desktop use chooses how the screen is shared. See Desktop.
link-host desktop use # show the current choice and what each one needs
link-host desktop use ffmpeg|browser|builtin # change itbuiltin downloads Link's desktop helper first, and keeps the earlier choice if the download fails.
serve
Link Host's background service. link-host setup starts it at login (link-host.service, a LaunchAgent, or a scheduled task); you don't need to run it yourself.
uninstall
link-host uninstall [--purge]Stops and removes what setup added: Link Host's service and, on Linux, Link's SSH server and its folder, so paired phones can no longer sign in. The program itself stays; remove it the way you installed it (brew uninstall link-host, winget uninstall Falaq.LinkHost). --purge also deletes the computer's identity and its connection settings. See Update and uninstall.
version
link-host versionlink-host 0.1.0 (linux/amd64)