xqo-flows-runner
A headless remote worker for xqo-flows. It adds the xqo worker command, which polls an HQ's
flows worker API and runs jobs with this machine's own agents. There is no dashboard, no office and no open
port: the worker only makes outgoing HTTP calls to the HQ.
pip install xqo-flows-runner # brings xqo and xqo-flows
Set up a worker
-
On the HQ, make a token and list the worker with its labels (
agents.json):xqo flows token # prints a random token export XQO_WORKER_GPU_BOX_TOKEN=... # the HQ reads the worker's token from this variable
"flows": {"listen": "0.0.0.0:8200", "workers": {"allow": {"gpu-box": {"token_env": "XQO_WORKER_GPU_BOX_TOKEN", "labels": ["gpu", "linux"]}}}}
Restart
xqo serve. Its banner showsFlows worker API and webhooks: http://0.0.0.0:8200/flows/v1/. -
On the worker machine, give it its own
agents.jsonwith its agents and aflows_workerblock:{"agents": [{"name": "builder", "skills": ["python", "build"]}], "flows_worker": {"hq": "http://hq.example.internal:8200", "name": "gpu-box", "token_env": "XQO_WORKER_TOKEN", "jobs": 2}}
export XQO_WORKER_TOKEN=... # the same token as on the HQ export ANTHROPIC_API_KEY=... # the worker's own model access xqo --config agents.json worker # xqo worker gpu-box: connected to HQ 'Main HQ' at http://hq.example.internal:8200, labels: gpu, linux, ...
Flags override the file:
--hq,--name,--token-env,--jobs,--once(run one job, then exit). The environment variablesXQO_WORKER_HQ,XQO_WORKER_NAMEandXQO_WORKER_JOBSwork too. Global flags such as--data-dir,--mockand--departmentsgo beforeworker, as with any xqo command. -
Use it: add a Remote step with label
gputo a flow, or run a whole flow on the worker withxqo flows run NAME --labels gpu.xqo flows workerson the HQ shows whether the worker is online.
A complete sample is in ../xqo-flows/examples/setup/. It has the HQ and worker
configs, a remote flow, docker-compose.worker.yml (a worker in Docker, with no published port) and an .env
template.
What the worker does
| Job | Runs as |
|---|---|
task: one Remote step |
An ordinary root task on the worker, for the step's agent (empty = the worker's first agent). It is unattended unless the step says otherwise. Its result goes back to the HQ. |
flow: a whole flow |
The same flow engine as the HQ, using the worker's agents. Step states go back with every heartbeat, so the HQ's editor shows the run live. Approval steps are asked on the HQ and the answer comes back with a heartbeat. A resumed run brings the finished steps' results, so they do not run again. |
- Heartbeats go out every
lease_seconds / 3, and every second while an approval waits. If the HQ answers "cancel" (the run was cancelled there), the worker cancels the task and reportscancelled. - HQ unreachable: the worker keeps retrying with a growing pause, up to 30 s. If the outage outlasts the lease, the HQ gives the job to another worker. A rejected token (401/403) stops the worker.
- Data: each worker has its own data dir (tasks, workspaces, logs), so its tasks can be inspected with the
usual tools. To see them in a dashboard, run
xqo serveon the same data dir while the worker is stopped (one process per data dir).
Metadata
Release files for xqo-flows-runner 3.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xqo_flows_runner-3.2.0.tar.gz | 14.5 kB | With provenance | Details for xqo_flows_runner-3.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xqo_flows_runner-3.2.0-py3-none-any.whl | Python 3 | none | any | Details for xqo_flows_runner-3.2.0-py3-none-any.whl |
Total release size: 24.8 kB
Release files / xqo_flows_runner-3.2.0.tar.gz
| Download URL | xqo_flows_runner-3.2.0.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4667dfbb55d6354a57edb105b2f892e461d2f6479d8dc65e2e1725f10a242c4f
|
|
BLAKE2b-256 checksum How to use checksums |
79865054566d5fd562ed9a7c97c7cf0a1d4e78cf6524a018fd06b8c77fe9057d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 26, 2026.
Transparency logRelease files / xqo_flows_runner-3.2.0-py3-none-any.whl
| Download URL | xqo_flows_runner-3.2.0-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
547961c8329375ce66b9921b80d6c6e8c7e72e95006355dd8b8b8682c53adb66
|
|
BLAKE2b-256 checksum How to use checksums |
18140a38ddd84b83fc73ec9b2677d852a965094e5a7be41151d408993d214bf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 26, 2026.
Transparency logSecurity for xqo-flows-runner 3.2.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for xqo_flows_runner-3.2.0.tar.gz
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 Nov 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.