Skip to content

CLI reference

CommandDescription
riffpad login [--url wss://…]GitHub device sign-in (default); --username for password login
riffpad logoutSign out and revoke the relay token
riffpad authShow the current account (live validation)
riffpad pairPrint a 6-char pairing code and QR
riffpad run [claude|codex|kimi] [--name N] [--prompt P] [--cwd D]Create a hosted session; the terminal stays visible and interactive
riffpad attach / detachInject/remove Claude hooks to capture your own session
riffpad sessionsList sessions
riffpad statusDaemon status
riffpad setup [--remove]Install/remove the Linux systemd autostart
riffpad killKill switch: stop all sessions + revoke all devices
riffpad updateCheck and replace with the latest version (SHA256 + atomic swap)
riffpad logsShow daemon logs
riffpad versionPrint the version

Languages

The CLI output defaults to English. Use --lang zh to switch to Chinese; --lang en explicitly selects English.

Environment variables

VariableDescription
RIFFPAD_RELAY_URLRelay address (default wss://api.riffpad.ai)
RIFFPAD_RELAY_USER / RIFFPAD_RELAY_PASSWORDPassword login credentials
RIFFPAD_URLLocal daemon address (default http://127.0.0.1:8787)
RIFFPAD_DIRData directory (default ~/.config/riffpad)