Service And Autostart
Pairing saves credentials, but the device only appears online while the agent process is connected to the relay.
For quick manual testing, run:
remote-cli runKeep that process running for the device to stay online. For day-to-day use, install the background service.
Supported Commands
remote-cli service install
remote-cli service uninstall
remote-cli service start
remote-cli service stop
remote-cli service logsService management currently supports:
- macOS via launchd
- Linux via systemd user services
There is no remote-cli service status command yet. Use service logs and the PWA device status for now.
Install
remote-cli service installThis writes a service file for the current user and starts the agent.
The command uses the current remote-cli executable path, so install the binary in its final location before installing the service.
Logs
remote-cli service logsOn Linux, this follows the systemd user journal. On macOS, this follows:
~/Library/Logs/remote-cli.logStart And Stop
remote-cli service stop
remote-cli service startStopping the service makes the device go offline in the PWA. Starting it reconnects the agent.
Uninstall
remote-cli service uninstallThis stops and removes the service file. It does not unpair the device.
Linux Details
The generated service path is:
~/.config/systemd/user/remote-cli.serviceThe service runs:
remote-cli runEquivalent manual commands:
systemctl --user start remote-cli
systemctl --user stop remote-cli
journalctl --user -u remote-cli -f --no-pagermacOS Details
The generated launchd plist path is:
~/Library/LaunchAgents/com.remote-cli.agent.plistThe service writes stdout and stderr to:
~/Library/Logs/remote-cli.logEquivalent manual commands:
launchctl start com.remote-cli.agent
launchctl stop com.remote-cli.agent
tail -f ~/Library/Logs/remote-cli.logCommon Issues
If the service starts but the device stays offline:
- run
remote-cli statusand confirm the agent is paired - confirm the stored relay URL is reachable from that machine
- confirm Claude Code works with
claude --print "Reply with OK" - check
remote-cli service logs
If the binary was moved after service installation, reinstall the service:
remote-cli service uninstall
remote-cli service install