LIA StudioLIA Studio
Documentation
⌘K
Back to the IDE
DocsAdvancedRunners

Runners

The Runners panel: registering one, per-runner environment variables, and the detail page.

A runner is the headless Python agent (lia-runner) that actually performs your flow's actions with real effects — opening a browser, talking to Excel, connecting over SSH, reading your Outlook inbox, etc. — things a web browser can't do on its own. If no runner is connected when you run, Run/Step/Pause/Stop fall back to an in-browser interpreter: good for previewing data flow and pure logic, but nodes with real effects don't actually do anything in that mode.

The Runners panel

Runners in the sidebar lists every agent in your organization, grouped into Production (runners assigned to active deployments) and Development (interactive connections from your own machine, for testing). The counters at the top (total, available, running, disconnected) are computed from that same list.

Runners panel with one development runner registered
Runners panel — KPIs on top, grouped by Production/Development below.

Registering a runner

The Register runner button opens a 3-step wizard. The first step asks for a name, the Environment (Production or Development — decides which panel group it lands in, and whether it can be a target for a real deployment), an optional description, the OS (only used to preselect the install tab in step 3), and which organization member it's assigned to.

Wizard step 1: name, environment, description
Step 1 — basic runner info.

Per-runner environment variables

Step 2 lets you declare environment variables specific to that runner — for example, a folder path or a URL that only makes sense on that machine. There's no need to paste them into any command by hand anymore: lia-api stores them alongside the runner and delivers them over the same already-authenticated WebSocket channel as the token, as soon as it connects — they never travel in plain text outside that channel. The "Treat as secret" checkbox only masks the value on this screen; the runner still receives the real value.

Wizard step 2: environment variables
Step 2 — environment variables (optional).

Reading them from a flow

These variables land in the runner's process just like any OS environment variable — read them with the Get Env Var node (one by name) or Get All Env Vars (all of them at once), category System. No special node is needed: if the runner already has them assigned, they're already in os.environ by the time your flow starts.

They can be added, edited, or removed later without re-minting the token, from Runners — Detail (below): a change there is delivered to the runner live if it's currently connected, with no restart needed.

Token and connecting

Step 3 shows the minted token — it's shown only once; save it before closing the wizard. A Development runner connects by exporting three variables and running uv run lia-runner; a Production one connects by installing the packaged build for its OS (the wizard offers a direct download link).

Wizard step 3: minted token and connection command
Step 3 — token (shown once) and how to connect.

Runners — Detail

Clicking a card in the panel opens its detail page: live telemetry (CPU, memory, disk, network — "—" if it's disconnected or hasn't sent its first heartbeat yet), system information (OS, hostname, machine id, agent version, last heartbeat), and the environment variables section described above, editable right there.

Runners — Detail: telemetry, system info, and environment variables
Runners — Detail of a disconnected runner (which is why telemetry shows "—").

Restart and Disconnect don't control the remote machine — there's no real way to do that. Restart forces a reconnect cycle: the server asks the runner to close its WebSocket, and the runner itself reopens it a few seconds later (the same backoff it uses if the network drops). Disconnect revokes its token and also tells it not to retry — to use it again you need to mint a new token.

Development vs. Production

A Development runner is for interactive testing: its runs are never persisted to the organization's history, and the toolbar's Activate button (test the current draft's triggers without publishing a version) can safely target one of these. Deploy to production, on the other hand, requires a Production runner — that's a real backend gate, not just a UI filter.

Documentation — LIA | LIA Studio