Remote-session-guide
Part of Uipath rpa. Install the skill and your agent reads this page when it needs the depth.
Remote Session — Live Authoring and Remote Debug/Run on an Orchestrator Unattended Robot
The uip rpa remote group connects the local project to a remote robot — an Orchestrator unattended robot — and operates on it: configure the target, open and close the remote session, execute shell commands, transfer files both ways. Every remote operation acts on the configured remote target, stored per project by remote configure.
When to Use
- Design a workflow on a remote machine — the target application exists only on the remote machine, or UI-heavy design should run there so the user's own machine stays free → Live Authoring. Live Authoring is a superset of Remote Run Only: in the same session, also debug/run the workflow on the remote machine — do NOT switch to Remote Run Only for that.
- Only debug/run a locally designed workflow on a remote machine (no remote design work, no Live Authoring target configured) → Remote Run Only.
Authoring is unchanged: create, edit, and validate the workflow locally per the normal skill workflow.
Remote Session Modes
The mode is set on remote configure with --live-authoring or --remote-run-only.
Live Authoring (--live-authoring) |
Remote Run Only (--remote-run-only) |
|
|---|---|---|
| Connection | Persistent — one long-lived remote session job on the robot | None |
Debug / run with --remote |
Executes on the remote machine, over the session | Each run/debug session is an Orchestrator job of its own |
remote exec, remote upload-file, remote download-file |
Served by the session — return in seconds | Use Live Authoring |
Remote UI Automation (the uip rpa uia group in remote mode — syntax in the UIA docs), remote screen streaming |
Available | Not available |
remote start / remote stop |
Open / close the session | Not applicable — remote start fails |
| Default | — | Yes, for a target that never had a mode stored |
Choose the mode:
- Live Authoring when the workflow is designed on the remote machine — the target application exists only there, or the design work should not occupy the user's machine. It covers everything Remote Run Only does: debug/run with
--remoteexecutes on the remote machine over the session. - Remote Run Only when the workflow is designed locally and only debug/run must happen on the robot.
- Never downgrade Live Authoring to Remote Run Only to debug/run. When the stored mode is Live Authoring, keep it — debug/run within it.
The two flags are mutually exclusive. Passing neither keeps the stored mode. Switching from Live Authoring to Remote Run Only releases the session.
Live Authoring Known Limitations
- Live Authoring is unavailable on Serverless robots.
- Live Authoring is unavailable on attended robots.
- Live Authoring is unavailable on robots that can run only background jobs.
For a Serverless or attended robot, tell the user Live Authoring is not supported on it and ask for a different target (Rule 3). A background-only robot becomes a target once prepared — ask the user whether to prepare it (Rule 11).
Critical Rules
- Run
uip rpa remote statusfirst, at the start of every task. It is read-only. If the stored target already matches the intended folder/machine/robot/runtime and mode (a Live Authoring target also matches a debug/run-only task), do NOT reconfigure — in Live Authoring withremoteSessionEnabled: truethe session is already open: proceed directly to the work, noremote start; in Live Authoring withremoteSessionEnabled: falserunuip rpa remote start; in Remote Run Only proceed directly to debug/run. Configure only when no target is stored or it differs (§ Session Lifecycle). - IMPORTANT — always pass
--robotonconfigure. The CLI lists it as optional (falls back to the machine's default identity), but the remote connection does not work without it. In Live Authoring,configureitself fails withCould not start remote debug session. Foreground process requires you to have an unattended robot with credentials defined; in Remote Run Only,configuresucceeds and every later operation fails with that error. Either way the broken target (robot: null) is stored — reconfigure with--robot. - Ask the user which target to use. Unless the user already named the folder/machine/robot/runtime, look up the candidates from Orchestrator with the uip CLI and ask which to use — never silently pick one (§ Discovering Option Values).
- Pass the mode flag explicitly on every
configure. Pick--live-authoringor--remote-run-onlyfrom § Remote Session Modes; do not rely on whatever mode is stored. Live Authoring is a superset of Remote Run Only — when the target is in Live Authoring, debug/run there and never reconfigure it to--remote-run-only. - Always run
uip rpa remote stopwhen Live Authoring work is finished — also when abandoning the task or after an unrecoverable error. The session job holds an unattended runtime on the robot; on a machine with a single unattended runtime it blocks every other job until it is stopped.stopMUST be the last remote command. - Orchestrator sign-in required. On
not authenticated/401/403, sign in with the uip CLI per cli-reference.md § Authentication, then retry. - The remote filesystem is not directly accessible — transfer first. To read a remote file,
download-fileit and read the local copy. To use a local file on the remote machine,upload-fileit first and reference the remote path. Always use absolute remote paths. execverdict = the trailing JSON envelope. The command's stdout and stderr stream to local stdout ahead of the envelope; read the command output from the streamed lines and the verdict fromResult/Messageonly (§ Execute a Shell Command on the Remote).- Use
--output jsonon every command whose output is parsed, and pass--project-dir "<PROJECT_DIR>"on everyuip rpa remotecommand. The target is stored per project; without the flag the current directory is used, and outside a project folder every command fails withNot a UiPath project at '<DIR>': project.json is missing. - Run/debug verdict = outer
Result/ innerHasErrors— same as local runs, never log-entry levels (SKILL.md Common Rule 8a). - No usable target → ask the user whether to prepare an unattended robot in Orchestrator. Never prepare one unasked. User agrees → § Prepare a Remote Target in Orchestrator. User declines → ask for another folder or target, or stop.
Session Lifecycle
Check the stored target (Rule 1):
uip rpa remote status --project-dir "<PROJECT_DIR>" --output jsonAlready configured and matching —
targetisUnattendedRobot; folder/machine/robot/runtime andliveAuthoringmatch the intent;liveAuthoring: truematches a debug/run-only task too (§ Readingremote status):Live Authoring,
remoteSessionEnabled: true→ the session is already open; truststatusand proceed to step 4 — do NOT runremote start. If a later remote command reports that no session is open, runremote startthen and retry the command.Live Authoring,
remoteSessionEnabled: false→ open the session:uip rpa remote start --project-dir "<PROJECT_DIR>" --output jsonRemote Run Only → nothing to start; proceed to § Debug / Run a Workflow on the Remote.
Not configured, or different →
remote configure(§ Configure a Remote Target). In Live Authoring,configurealso opens the session — no separatestartneeded. No usable robot or host in the folder → ask the user whether to prepare a target (Rule 11).Work — debug/run with
--remote; in Live Authoring alsoexec,upload-file,download-file, and remote UI Automation.Finish (Live Authoring) — close the session (Rule 5):
uip rpa remote stop --project-dir "<PROJECT_DIR>" --output jsonThe target stays stored. Next task: step 2 applies —
statusshowsremoteSessionEnabled: false, soremote startreopens the session without reconfiguring.
| Command | Behavior |
|---|---|
configure |
Resolves and stores the target and mode, then connects. In Live Authoring it blocks until the session job is running — tens of seconds; do not wrap it in a short timeout. Reconfiguring replaces the stored target. A configure that fails to resolve a name (folder, machine, robot, runtime) keeps the previous target and leaves a running session untouched; one that fails while connecting (e.g. missing --robot) stores the new target |
start |
Opens the Live Authoring session → "Remote session ready.". No-op when the session is already open. Fails with no target (Remote debugging is not configured for an unattended robot…) or in Remote Run Only (The remote connection is in Remote Run Only mode…) |
stop |
Closes the session and releases the robot → "Remote session stopped.". Always succeeds — also when no session is running or no target is configured |
status |
Read-only — changes nothing, starts nothing |
Reading remote status
{
"Result": "Success",
"Code": "RemoteStatus",
"Data": {
"success": true,
"target": "UnattendedRobot",
"remoteSessionEnabled": true,
"liveAuthoring": true,
"folder": "<FOLDER_PATH>",
"robot": "<RESOLVED_ROBOT_NAME>",
"machine": "<MACHINE_NAME>",
"runtime": "<RESOLVED_RUNTIME_LABEL>"
}
}
| Field | Meaning |
|---|---|
target |
UnattendedRobot — a remote target is in effect. LocalMachine — no target (not configured, or the backend restarted); the other fields are then absent |
remoteSessionEnabled |
true after configure / start — the session is open, skip remote start; false after stop — run remote start before remote work |
liveAuthoring |
true — Live Authoring; false — Remote Run Only |
folder, machine |
Resolved folder path and machine name |
robot |
Resolved robot name — may differ from the account name passed to --robot. null means --robot was omitted: reconfigure with it (Rule 2) |
runtime |
Pinned host as <HOST> - <HOST>\<ACCOUNT>; null when --runtime was omitted and Orchestrator picks the connected session |
Prepare a Remote Target in Orchestrator
Prepare a target only when the user asks for it or agrees when asked (Rule 11). Ask when § Discovering Option Values finds no usable robot or host, or when the intended robot shows hasCredentials: false. The target is an unattended robot: a robot account on a dedicated machine (VM or server) whose Robot connects to Orchestrator as unattended (machine key or client credentials). Attended robots are not supported (§ Live Authoring Known Limitations).
Rules for Preparing a Target
- Run every Orchestrator check and change through the
uipath-platformskill — it owns the commands for folders, users, robots, machines, and licenses. Skill unavailable → walk the user through the same changes in the Orchestrator web UI. - Check each item before changing it. Change only items that fail.
- Confirm each change with the user before making it — every change alters shared tenant configuration. No free unattended license in the tenant → stop and tell the user; never take a license from another machine.
- Never ask the user for a password. The user or an administrator enters the Windows credentials in the Orchestrator web UI.
- Shared folder only (e.g.
Shared) — never prepare a target only in a Personal Workspace. - Robot 26.10.0 or later — the floor for every remote target (§ Discovering Option Values, step 3). Older → ask the user to upgrade the Robot; stop until done.
- Steps on the machine belong to the user — installing or upgrading the Robot, connecting it to Orchestrator as unattended. Tell the user what to do and wait for confirmation.
Unattended Robot Checklist
- Robot account assigned directly to the shared folder, with a role that can run jobs. No robot account → ask the user whether to create one; robot accounts are created in Identity (the
uipath-adminskill), then assigned to the folder (uipath-platform). - Foreground automation enabled — the robot's unattended setup holds the real Windows credentials of the account it runs as, so the Robot can start a Windows session or join an existing one; the remote session runs in it. Without them the robot is background-only:
hasCredentials: falseinremote targets, and the session fails withForeground process requires you to have an unattended robot with credentials defined. Credentials come from the user or an administrator (item 4 of § Rules for Preparing a Target). - Machine in the same folder with an unattended license — the machine or machine template is assigned to the folder and has at least one unattended runtime.
- Robot 26.10.0+ connected as unattended — its host shows
Availableinremote targets.
Verify the Prepared Target
- Re-run
remote targetsfor the folder (§ Discovering Option Values, step 2): the robot showsenabled: trueandhasCredentials: true; the machine has anAvailablehost. - Item still failing → re-check it against § Unattended Robot Checklist. Same item failing after two re-checks → stop and report what is missing.
- Continue with § Configure a Remote Target and § Validate After Configuring.
Configure a Remote Target
uip rpa remote configure \
--folder-path "<FOLDER_PATH>" \
--machine "<MACHINE_NAME>" \
--robot "<ROBOT_NAME>" \
--live-authoring \
--project-dir "<PROJECT_DIR>" --output json
Pinned to one host of a machine template (§ When to Pass --runtime):
uip rpa remote configure \
--folder-path "<FOLDER_PATH>" \
--machine "<MACHINE_NAME>" \
--robot "<ROBOT_NAME>" \
--runtime "<RUNTIME_NAME>" \
--live-authoring \
--project-dir "<PROJECT_DIR>" --output json
| Flag | Required | Value |
|---|---|---|
--machine |
Yes | Orchestrator machine name to run the unattended robot on |
--robot |
Yes | Robot/user account name to run as; resolved to the robot in the folder. Listed as optional, but operations fail without it (Rule 2) |
--folder-path |
No | Fully-qualified Orchestrator folder path the machine/robot belong to (e.g. Shared/Finance). Defaults to the backend's current folder — pass it whenever the user named a folder |
--runtime |
No | Connected host of the machine to pin the session to: the host machine name (case-insensitive) or the full <HOST> - <HOST>\<ACCOUNT> label. Ignored for serverless machines. Omitted → Orchestrator picks the connected session |
--live-authoring / --remote-run-only |
One of them (Rule 4) | Session mode — § Remote Session Modes |
When to Pass --runtime
- Pass it when the machine has more than one connected host and the work depends on a specific one — typically Live Authoring where the target application is installed on only one host, or when the user names a host. Without it, Orchestrator may open the session on another host.
- Omit it when the machine has a single connected host — Orchestrator picks that one.
- Never guess the host name. Look up the connected hosts per § Discovering Option Values. A wrong name fails with an error that lists the machine's connected runtimes — offer those to the user (Rule 3).
Discovering Option Values
Look up each value the user has not named with these read-only commands, in order. Skip step 1 when the user already named the folder.
Folder — the
--folder-pathvalue isPath(fully qualified, e.g.Shared/Finance), notName:uip or folders list --output jsonLists the folders the signed-in user can access; add
--allto list every folder in the tenant.Remote targets in the folder — robots, machines, and hosts in one call:
uip rpa remote targets --folder-path "<FOLDER_PATH>" --project-dir "<PROJECT_DIR>" --output jsonExample output (trimmed):
{ "success": true, "folder": "Shared", "robots": [ { "name": "<ROBOT_NAME>", "enabled": true, "hasCredentials": true } ], "targets": [ { "machine": "<MACHINE_NAME>", "host": "<RUNTIME_NAME>", "status": "Available" }, { "machine": "<MACHINE_NAME>", "host": "<RUNTIME_NAME>", "status": "Disconnected" } ] }Field Use robots[].name--robotvalue. Offer only robots withenabled: trueandhasCredentials: true— a disabled or credential-less robot passesconfigureand fails at session start.hasCredentials: false= background-only robot: ask the user whether to fix it (Rule 11)targets[].machine--machinevalue. One row per host, so a machine with several hosts appears in several rowstargets[].host--runtimevalue, passed as-istargets[].statusAvailable— usable host;configuretakes only anAvailablehost as--runtime.Serverless— serverless machine: Remote Run Only (§ Live Authoring Known Limitations),--runtimedoes not apply.Busy,Disconnected,Unresponsive,NoSession,Unknown— not usable now;Disconnectedmeans that host's robot service is not connected to OrchestratorThe number of
Availablehosts per machine decides whether to pass--runtime(§ When to Pass--runtime).When the user already named the robot or machine, narrow the listing:
--robot "<ROBOT_NAME>"lists only the machines that robot can use and the hosts that serve it — the same checkconfigure --robotruns;--machine "<MACHINE_NAME>"lists only that machine's hosts.Robot version of each candidate host — every remote target, in both modes, needs Robot 26.10.0 or later on the host, also when the user named the target.
remote targetsdoes not report the version: read it from the host's session in Orchestrator through theuipath-platformskill, or ask the user to check it in the Orchestrator web UI when that skill is unavailable. Older → the host is not usable: ask the user to upgrade the Robot on it, or pick another host.
Then apply Rule 3: present the candidates and ask the user which to use. Offer only machines with at least one Available host on Robot 26.10.0 or later (step 3) — configure rejects a machine with no connected host; for Remote Run Only, Serverless machines are usable too. Empty robots, or no usable row in targets, means the folder has no usable robot or host; ask the user whether to prepare a target in that folder or use another folder (Rule 11). On not authenticated / 401 / 403, sign in per Rule 6 and retry.
Configure Errors
| Message | Fix |
|---|---|
Folder '<FOLDER_PATH>' not found. Available folders: … |
Pick from the listed folders |
Machine '<MACHINE_NAME>' not found in folder '<FOLDER_PATH>'. Available machines: … |
Pick from the listed machines, or correct --folder-path |
Machine '<MACHINE_NAME>' has no available unattended session in folder '<FOLDER_PATH>' - last reported state: … |
No host of that machine is connected. Ask the user to start the machine and connect its robot service to Orchestrator, or pick another machine |
Robot/user '<ROBOT_NAME>' not found in folder '<FOLDER_PATH>'. |
Re-list the robots in that folder (§ Discovering Option Values, step 2) |
Connected runtime '<RUNTIME_NAME>' not found for machine '<MACHINE_NAME>'. Available runtimes: … |
Pick from the listed runtimes. An empty list means no host of that machine is connected — handle as the "no available unattended session" row |
--live-authoring and --remote-run-only are the two modes of one connection; pass at most one. |
Pass exactly one mode flag |
Could not start remote debug session. Foreground process requires you to have an unattended robot with credentials defined — from configure in Live Authoring, or from later operations in Remote Run Only |
--robot omitted → reconfigure with it (Rule 2). --robot passed → the robot has no credentials (background-only): ask the user whether to fix it (Rule 11) — § Unattended Robot Checklist item 2 |
Later operations fail: Remote debugging is not configured for an unattended robot… |
No target is stored — run configure |
Any remote command: …HelmProjectLoadException: "Not a UiPath project at '<DIR>': project.json is missing…" |
--project-dir is missing or wrong — pass the folder containing project.json (Rule 9) |
Validate After Configuring
Check
remote status(§ Readingremote status):targetisUnattendedRobot,liveAuthoringmatches the chosen mode, and folder/machine/robot/runtime match what was requested.Live Authoring — smoke-test end to end and confirm the host:
uip rpa remote exec --command "hostname" --timeout 60 --project-dir "<PROJECT_DIR>" --output jsonResult: Successproves the session executes commands; the streamed host name must match the pinned--runtimewhen one was set. The call returns in a few seconds when the session is open; 20+ seconds means the command had to start a new session job.Remote Run Only — the first
--remoterun (§ Debug / Run a Workflow on the Remote) is the end-to-end check.
Debug / Run a Workflow on the Remote
Add --remote to run or debug start — the workflow executes on the configured unattended robot instead of locally:
uip rpa run --file-path "<WORKFLOW_FILE>" --remote --project-dir "<PROJECT_DIR>" --output json
uip rpa debug start --file-path "<WORKFLOW_FILE>" --remote \
--breakpoints 'workflowFile=Main.xaml,activityIdRef=Assign_1' \
--project-dir "<PROJECT_DIR>" --output json
--remote affects start commands only (run, debug start, plus the Studio Desktop verbs debug start-from-here / debug test-activity). Mid-session verbs (debug step-over, debug continue, debug state, execution cancel, …) operate on the active session and take no --remote:
uip rpa debug continue --output json
uip rpa execution cancel --output json
- Live Authoring — run/debug travel over the open session. After a
stop, runremote startbefore the next--remoterun. - Remote Run Only — every
--remoterun or debug session is an Orchestrator job of its own; nothing to start or stop. - The debug loop is unchanged from local debugging — breakpoints by
activityIdRef,DebugStatebranching (Paused/Suspended/Completed/Running), locals inDebugDetails. Full loop: debugging.md. - Works with both Studio and Helm backends.
--profiling-mode streamis ignored when running remote; end-of-run profiling delivery still applies.- To read files the run produced on the robot (logs, screenshots, reports), download them (§ Transfer Files).
Execute a Shell Command on the Remote
Use in Live Authoring with the session open. Runs through the remote OS shell — cmd.exe /c on Windows, /bin/sh -c otherwise — as the robot's account, so profile paths resolve to that account's profile.
uip rpa remote exec --command "<COMMAND_LINE>" --timeout <SECONDS> \
--project-dir "<PROJECT_DIR>" --output json
| Flag | Required | Value |
|---|---|---|
--command |
Yes | Shell command line to run (e.g. dir on Windows, ls -la on Linux). With a restored package, may be a path relative to the package folder (e.g. tools\\app.exe --flag) |
--package-id |
No | NuGet package id to restore on the remote machine before running the command. Requires --package-version |
--package-version |
No | Version of --package-id to restore. Required when --package-id is set |
--working-directory |
No | Working directory for the command. Defaults to the restored package folder when a package is restored, otherwise the Robot installation directory on the remote machine |
--timeout |
No | Seconds after which the remote command is killed. Omit for no timeout — set one for any command that could hang |
Reading the result (Rule 8):
- The command's stdout and stderr stream to local stdout before the JSON envelope; the envelope's
Data.outputis empty. Take the command output from the streamed lines and parse only the trailing envelope — never feed the whole stdout to a JSON parser. - stdout and stderr arrive merged, and their relative order is not preserved — do not rely on line order across the two streams.
- Exit code 0 →
Result: Success,hasErrors: false. - Non-zero exit →
Result: Failure,MessagecontainsCommand exited with code <N>., and the CLI process exits 1. - A non-zero exit can still come with complete output:
query userprints its table and exits 1, and PowerShell-Commandexits 1 when its last pipeline hit an error, even one hidden by-ErrorAction SilentlyContinue. Read the streamed lines before deciding the command failed. - Timeout →
Result: Failure,MessagecontainsCommand timed out.
On a Windows robot use cmd.exe syntax (&&, type, dir, rmdir /s /q). The --command text passes through two shells before it runs — your local console (Bash, PowerShell or cmd), then cmd.exe on the robot — and each treats quotes and special characters differently. So that it works from any console:
- Put the whole value in double quotes and use only single quotes inside it.
\"works in Bash and cmd but breaks the command in PowerShell. - Single quotes quote only in PowerShell (write a literal
'as'').cmd.exeignores them, so a path with spaces needs PowerShell. - For a short PowerShell command with none of
$ % " ` | & < > ^, put the code after-Commandwithout quotes and write paths with forward slashes (example below). - For any other PowerShell script, write it to a local
.ps1file with your file-writing tool, upload it withupload-file(§ Transfer Files) to an absolute remote path without spaces, and runpowershell -NoProfile -ExecutionPolicy Bypass -File <REMOTE_SCRIPT_PATH>. Don't use-EncodedCommand: each console needs a different encoder, and error output comes back as#< CLIXMLXML.
Examples:
# Inspect the remote environment (Windows robot)
uip rpa remote exec --command "hostname && whoami" --timeout 60 \
--project-dir "<PROJECT_DIR>" --output json
# Check a directory the workflow writes to
uip rpa remote exec --command "dir C:\Output" --timeout 30 \
--project-dir "<PROJECT_DIR>" --output json
# Run a PowerShell snippet
uip rpa remote exec --command "powershell -NoProfile -Command Get-ChildItem 'C:/Output'" --timeout 60 \
--project-dir "<PROJECT_DIR>" --output json
# Restore a published package and run a tool from its folder
uip rpa remote exec \
--command "tools\\app.exe --flag" \
--package-id "<PACKAGE_ID>" --package-version "<PACKAGE_VERSION>" \
--timeout 300 --project-dir "<PROJECT_DIR>" --output json
Transfer Files
Use in Live Authoring with the session open. Files travel through a temporary Orchestrator bucket that is deleted afterwards.
Download a remote file — logs, screenshots, generated reports, exported data — and read the local copy (Rule 7):
uip rpa remote download-file \
--remote-path "<REMOTE_FILE_PATH>" \
--local-path "<LOCAL_DESTINATION_PATH>" \
--project-dir "<PROJECT_DIR>" --output json
Upload a local file — test data, config files, documents the workflow processes — then reference the remote path in the workflow or an exec command:
uip rpa remote upload-file \
--local-path "<LOCAL_FILE_PATH>" \
--remote-path "<REMOTE_DESTINATION_PATH>" \
--project-dir "<PROJECT_DIR>" --output json
--remote-pathMUST be absolute (e.g.C:\\Temp\\input.xlsx). A relative path resolves against the Robot installation directory on the remote machine — files written there clutter the robot's install.- Parent directories are created on the destination side, in both directions.
- Both directions overwrite an existing destination file without warning —
upload-fileon the remote machine,download-filelocally. - A missing remote file fails with
File not found on the remote machine: <REMOTE_FILE_PATH>; a missing local file fails withCould not find file '<LOCAL_FILE_PATH>'. - Robots are often shared. Before
remote stop, delete the temporary files and folders the task uploaded or created, withexec(e.g.rmdir /s /q "<REMOTE_DIR>"on Windows).
Anti-patterns
- Reconfiguring a target that
remote statusalready shows — in Live Authoring runremote startinstead whenremoteSessionEnabledisfalse, or nothing when it istrue(Rule 1). - Running
remote startwhenremote statusshowsremoteSessionEnabled: true— the session is already open; truststatusand go straight to the work (Rule 1). - Leaving a Live Authoring session running after the work is done — it holds a robot runtime; always
remote stop(Rule 5). - Running
execor a file transfer afterremote stopand leaving — the command reopens the session, which then holds the robot again;stopmust be the last remote command (Rule 5). - Running
remote startin Remote Run Only — there is no session to start; it fails. Switch to Live Authoring when a persistent session, shell/file commands, or remote UI Automation are needed. - Choosing Remote Run Only for design work on the remote machine — it has no remote session.
- Switching a Live Authoring target to Remote Run Only to debug/run — Live Authoring already debugs/runs on the remote machine; switching releases the session and loses remote UI Automation, shell, and file commands (Rule 4).
- Omitting
--robotonconfigure—configurefails in Live Authoring, or succeeds in Remote Run Only and every later operation fails; the broken target is stored either way (Rule 2). - Guessing folder/machine/robot/runtime names — look them up from Orchestrator and ask the user (Rule 3).
- Configuring a machine whose host is not connected —
configurerejects it; pick a machine with a connected, responsive host. - Preparing a target without asking the user — when no usable target exists, ask whether to prepare one; never start on your own (Rule 11).
- Preparing a target only in a Personal Workspace — remote sessions need the robot and machine in a shared folder (§ Rules for Preparing a Target).
- Configuring a robot with
hasCredentials: false— it runs only background processes and the session fails; ask the user whether to enable foreground automation first (Rule 11). - Omitting
--runtimeon a multi-host machine when the application exists on only one host — the session may open on a host without it (§ When to Pass--runtime). - Setting
--runtimefor a serverless machine — the flag is ignored there; it only pins a session on a classic machine. - Wrapping
configure --live-authoringin a short timeout — it blocks until the session job runs, tens of seconds. - Passing
--remoteto mid-session debug verbs — only start commands take it. - Parsing all of
execstdout as JSON — streamed command output precedes the envelope (Rule 8). - Relative
--remote-path— the file lands in the robot's installation directory; use absolute paths. - Passing
--package-idwithout--package-version— the version is required whenever a package is restored. - Omitting
--timeouton anexeccommand that can hang — without it the command runs unbounded on the remote machine.