Skip to main content

r2flow-agent

Unattended worker that runs on a Windows machine, registers itself with a r2flow-cloud orchestrator, polls it for commands, and executes deployed process bundles (Python code) in isolated per-process venvs.

One-line install (Windows)

Regular PowerShell (it self-elevates and installs Python 3.12 via winget if missing):

irm https://raw.githubusercontent.com/2kurosss/r2flow/main/packages/agent/install-agent.ps1 | iex

With parameters:

& ([scriptblock]::Create((irm https://raw.githubusercontent.com/2kurosss/r2flow/main/packages/agent/install-agent.ps1))) `
    -Orchestrator https://cloud.example.com -Name prod-1 -JoinToken <TOKEN>

Manual install

pip install r2flow-agent

Quick start (manual, foreground)

pip install r2flow-agent
r2flow-agent --orchestrator http://orch-host:8000 --name my-agent \
    --url http://this-machine:8001

--url must be the address at which the orchestrator can reach this machine (the orchestrator pushes commands and files to it).

UI automation needs an interactive desktop, so the agent runs as a scheduled task inside a user's log-on session — not as a session-0 service. Use a dedicated local user with auto-logon for production agents.

# one command: writes config + creates the scheduled task
r2flow-agent-service install \
    --orchestrator http://orch-host:8000 \
    --name prod-1 \
    --join-token <AGENT_JOIN_TOKEN> \
    --user "WORKGROUP\\rpa-bot"     # optional, default: current user

r2flow-agent-service start        # launch now
r2flow-agent-service status       # task state
r2flow-agent-service stop | uninstall

What you get:

  • task trigger at log on of the automation user → agent starts with the desktop, no manual steps after reboots;
  • Task Scheduler restart policy (up to 999 retries, 1-minute interval) and, belt and braces, a crash-restart loop inside the agent with exponential backoff (5 s → 60 s, reset after a stable 5-minute run);
  • config at %LOCALAPPDATA%\r2flow_agent\config.json, rolling log at %LOCALAPPDATA%\r2flow_agent\agent.log.

Registration honours AGENT_JOIN_TOKEN (pre-shared in the orchestrator settings) or an admin JWT — whichever you pass with --join-token.

Privacy note: failure screenshots

On a failed run the agent (with the [screenshot] extra installed) captures the entire virtual screen — all monitors and every visible window, not just the automated app — and uploads it to the orchestrator. Keep this in mind on shared/multi-user machines: anything on screen at the moment of failure (other apps, browser sessions, passwords) ends up in the cloud.

Deploy with the plain r2flow-agent package if screenshots are unwanted; the agent runs fine without the extra and simply skips capture.

Metadata

Release files for r2flow-agent 0.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for r2flow-agent 0.3.5
File Size Uploaded
r2flow_agent-0.3.5.tar.gz 33.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for r2flow-agent 0.3.5
File Interpreter ABI Platform
r2flow_agent-0.3.5-py3-none-any.whl Python 3 none any Details

Total release size: 63.5 kB

Release files / r2flow_agent-0.3.5.tar.gz

Download URL r2flow_agent-0.3.5.tar.gz
Size 33.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fd2fac331cd07f08d0afe20dc85c38f2eb792757fda6e674013f94344ed4ad0c
BLAKE2b-256 checksum
How to use checksums
8fdb82ff783856e95e9e1e6aaecdb52534fe3ae5d0cd52f2297d73d575382f1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

Release files / r2flow_agent-0.3.5-py3-none-any.whl

Download URL r2flow_agent-0.3.5-py3-none-any.whl
Size 30.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76a4f4c344e54930b8896193a12865873de56135f694c28f38b19ddb286e4d63
BLAKE2b-256 checksum
How to use checksums
9a2cf213faf13d7c3ee43eb227821a86b1938dadccf7bdd8aa0f42107ce95444
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

This release

0.3.5 This release

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page