remote
Manage remote ralph-tui server connections for multi-instance control.
Synopsis
The remote command manages connections to ralph-tui instances running on other machines. This enables monitoring and controlling multiple instances from a single TUI.
Subcommands
add
Add a new remote server configuration.
Arguments:
<alias>- A unique name for this remote (e.g.,prod,staging,dev)<host:port>- Server hostname and port (port defaults to 7890 if omitted)--token <token>- Authentication token from the remote server
Examples:
Alias naming rules:
- Must start with a letter
- Can contain letters, numbers, dashes, and underscores
- Examples:
prod,staging-1,server_2,MyServer
list / ls
List all configured remotes with their connection status.
Output includes:
- Connection status (✓ connected, ✗ disconnected)
- Server URL
- Latency (when connected)
- Token preview (first 8 characters)
- Last successful connection time
Example output:
remove / rm
Remove a remote server configuration.
Example:
test
Test connectivity to a remote server.
This command:
- Connects to the remote server
- Authenticates with the stored token
- Reports connection success/failure and latency
- Updates the "last connected" timestamp on success
Example:
push-config
Push your local configuration to remote instances.
Options:
| Option | Description |
|---|---|
--scope global|project | Which config to push (default: auto-detect) |
--preview | Show diff without applying changes |
--force | Overwrite existing config without confirmation |
--all | Push to all configured remotes |
Examples:
The push-config command automatically triggers migration on the remote, which installs skills and templates. Changes take effect on the next ralph-tui run.
How it works:
- Detection: Checks what config exists locally and on the remote
- Scope selection: Auto-detects or uses
--scopeflag - Backup: Creates timestamped backup before overwriting (e.g.,
config.toml.backup.2026-01-19T12-30-00-000Z) - Transfer: Pushes the TOML config content over WebSocket
- Validation: Server validates TOML syntax before writing
- Migration: Triggers auto-migration to install skills/templates
Scope selection logic (when --scope not specified):
- If you have project config and remote doesn't → push project
- If you have global config → push global
- If you only have project config → push project
Configuration Storage
Remote configurations are stored in TOML format:
File: ~/.config/ralph-tui/remotes.toml
Remote Parallel Orchestration
When a ralph-tui server is running with --listen, remote clients can start, control, and monitor parallel execution through WebSocket messages.
How It Works
-
Server setup: Start ralph-tui with parallel configuration and
--listen:Bash -
Client control: Remote clients can send orchestration commands via WebSocket
-
Event streaming: The server streams parallel execution events (worker started, task completed, merge status) to subscribed clients
Orchestration Commands
Remote clients can use these WebSocket message types:
| Command | Description |
|---|---|
orchestrate:start | Start parallel execution with specified options |
orchestrate:pause | Pause all workers |
orchestrate:resume | Resume paused workers |
orchestrate:stop | Stop execution and clean up worktrees |
orchestrate:get_state | Query current orchestration status |
Start Options
When starting orchestration, you can specify:
| Option | Type | Description |
|---|---|---|
maxWorkers | number | Maximum concurrent workers (default: 3) |
directMerge | boolean | Merge to current branch vs session branch |
maxIterations | number | Max iterations per worker |
Example: Programmatic Control
State Response
The orchestrate:get_state command returns:
Remote orchestration respects the --task-range filter if configured on the server. Only filtered tasks will be distributed to workers.
Security
Tokens are stored in plain text in remotes.toml. Ensure appropriate file permissions and do not commit this file to version control.
Token handling:
- Tokens are shown in preview form (first 8 characters +
...) in list output - Full tokens are only shown when generated on the server
- All remote actions are logged to
~/.config/ralph-tui/audit.log
Related Commands
run --listen- Run with remote listener enabled
Troubleshooting
Connection Failed
Possible causes:
- Server is not running (
ralph-tui run --listen) - Firewall blocking port 7890
- Incorrect hostname or port
Solution: Verify the server is running and the port is accessible.
Authentication Failed
Possible causes:
- Token was rotated on the server
- Token was copied incorrectly
Solution: Get a fresh token from the server with ralph-tui run --listen --rotate-token and update the remote configuration.
Config Push Failed
Solution: Use --force flag to overwrite existing config, or --preview to see what would change first.
Invalid TOML
Solution: Fix the syntax error in your local config file before pushing.