CLI reference
Every runcode command, grouped by what it does.
The CLI is a static Go binary that downloads itself on first use. The only runtime dependency is an OpenSSH client. New
here? Start with the Agent plugin or Connect over SSH guides.
Authentication
Authorize this machine once; the token is saved locally.
runcode login Authorize this machine via the browser and save an API tokenruncode logout Remove the saved API tokenWorkspaces
List, attach, and power workspaces. A successful connect attaches one sticky workspace until you disconnect.
runcode list List your workspaces (running ones are SSH-connectable)runcode connect <ws> Mint or refresh a session and attach a workspace. --start boots a stopped one, --wait blocks until SSH answersruncode start <ws> Boot a stopped workspace without attaching (--no-wait returns immediately)runcode open <ws> Open the workspace browser IDE in your default browser (--print to just print the URL)runcode current Show the attached workspace (the sticky target for exec)runcode status List cached sessionsruncode stop [ws] Stop a workspace on the control plane (pauses compute billing)runcode disconnect Detach and drop the session, so work reverts to your local machineRun commands
Execute work on the cloud machine instead of your laptop.
runcode ssh <ws> [-- cmd] Open an interactive shell (bare) or run one command (with --) on a workspace by nameruncode exec -- <cmd> Run a command on the attached workspace (no name needed; preferred for agents)runcode context One-shot digest of cwd, git state, project markers, and tool versionsFiles & ports
Move files byte-for-byte and reach a workspace port locally.
runcode put <local> <remote> Upload a local file to the attached workspaceruncode get <remote> Download a file from the attached workspaceruncode write <remote> Write a file on the attached workspace from stdin (or --file)runcode port-forward <port> Expose a workspace port locally (e.g. a dev server)Editor integration
Let your own tools and status line reach workspaces.
runcode config-ssh Write ~/.ssh/config entries so VS Code Remote / JetBrains / git reach your workspaces (--remove to undo)runcode install-statusline Wire the workspace status line into your Claude Code settings.jsonruncode statusline Print a one-line segment for the current sessionMaintenance
Preflight your setup and clear local state.
runcode doctor Preflight this machine (OpenSSH client, token, API base, reachability)runcode install-path Put runcode on your own shell PATHruncode clean Remove cached session materialRun runcode doctor first if a command misbehaves.
It checks your OpenSSH client, the saved token, and reachability in one pass.