adagio-server
Licensed under the MIT License. This covers the server package only; it does not change the license of the hosted Adagio application or sibling projects.
adagio-server is Adagio's outbound execution runner. It claims jobs over HTTPS,
executes them with the existing adagio-cli, and reports status and artifact paths.
It never requires an inbound network port. The initial server platform is Linux
with Python 3.11+ and user-level systemd; Docker is needed for container-backed
pipeline actions.
Before marking a claimed job running or starting adagio runtime, the local
runner performs a lightweight preflight for the selected nodes and their upstream
dependencies. Docker must be reachable (with a 10-second timeout); Conda needs an
executable, an existing environment, and an executable Python interpreter;
Apptainer/Singularity needs an executable and a readable local .sif image.
Known runtime failures are collected into an actionable job error and leave the
pipeline CLI unstarted. Checks are registered by runtime kind in
adagio_server.agent.preflight. Unexpected preflight errors are logged and defer
to the CLI, preserving its configuration validation. Checks run only for the
standard CLI command using the adapter's Python interpreter and the local
executor; custom CLI commands and external executors defer to the CLI. This avoids
checking a different installation or execution host. These checks apply to Desktop
and Runtime Server jobs; standalone adagio-cli execution is unchanged. They do not
install dependencies, start Docker, or validate plugins and image contents.
Each claimed job starts independently, even while other jobs are running. Adagio does not impose a job-count limit or decide whether the host has spare CPU or memory; the server owner manages resource usage. The outbound handoff is not a resource scheduler. Slurm/SGE integration is separate future work.
Install the server in a persistent virtual environment, then use the enrollment token and deployment URL shown under Settings → Runtime Servers in Adagio:
python3 -m venv ~/.local/share/adagio-server-venv
source ~/.local/share/adagio-server-venv/bin/activate
python -m pip install adagio-server
adagio-server --version
export ADAGIO_ENROLLMENT_TOKEN='<code from Adagio>'
adagio-server install --url https://app.adagio.run
The install command exchanges the short-lived token for a machine credential, stores that credential with user-only permissions, then installs and starts the systemd user service. Jobs execute with the same Unix filesystem permissions as the user who installed it, including supplementary groups used for shared data. Docker-backed actions also run as that user. Images that require root during startup are therefore unsupported on a Runtime Server. Granting someone permission to use a server grants code execution as its Linux account. An account with access to a rootful Docker daemon can administer the host; this is a trusted execution environment, not a sandbox for untrusted users or plugins. Supplementary groups are preserved for shared-data access. Do not assume UID flags or dropped container capabilities isolate a Docker socket made accessible through mounted paths. Docker socket isolation needs separate review. The command prints a note when an administrator may need to enable systemd user lingering for service operation after logout.
Install the package in a persistent virtual environment (or with pipx) rather
than an ephemeral uvx environment. The systemd unit records the interpreter
path that performed the installation.
New installations select a stable loopback port from the Linux user id so
different users on a shared host do not contend for port 8760. Pass
--port 23456 to choose an explicit port. The listener remains bound to
127.0.0.1 and requires a per-process bearer token.
For an interactive foreground process, use adagio-server start. Plain HTTP and
disabled TLS verification are refused unless install --insecure is passed for a
development deployment.
Updates and reporting
Contract mismatches stop with exit code 42 and an update-required message;
credential rejection uses exit code 41. Neither condition should restart the
same configuration repeatedly. After upgrading an existing installation, rerun
adagio-server install with a fresh enrollment token to update its systemd unit
(older units only suppress restarts for code 41).
Telemetry uploads have bounded text, metadata, and batch sizes. Large logs are
sent in small batches with continued long lines; full logs remain on the server.
Oversized optional event/provenance data is replaced by a telemetry_truncated
marker rather than losing the job's lifecycle report. These limits do not apply
to input/output file sizes or job counts.
Pipeline inputs and data artifacts never leave the server. The one file it sends
is a visualization (.qzv), and only when the user who ran the job opens it in
Adagio Desktop: Adagio asks for that file, the server uploads it, and Adagio
relays it to the app without keeping it. Whatever path is asked for, the server
sends only a .qzv inside that job's own output directory.
This revision requires the adapter-schemas 0.5.0 release. Source builds
use the exact commit recorded in vendor/adapter-schemas/VENDOR_PIN; publication
and release-tag verification must be completed before package-index installation.
Release operators and QA testers should follow RELEASING.md in the repository.
Metadata
Release files for adagio-server 0.1.5
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 | |
|---|---|---|---|---|
| adagio_server-0.1.5.tar.gz | 65.1 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| adagio_server-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 110.1 kB
Release files / adagio_server-0.1.5.tar.gz
| Download URL | adagio_server-0.1.5.tar.gz |
|---|---|
| Size | 65.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab294b444ceb5998d84f3ffa3d0ed9c2f76760607e1e2853dad0c9f8c49ac37a
|
|
BLAKE2b-256 checksum How to use checksums |
ea68b4b48a16861ac077bc98026cdc2e58f2b4a0bed44097fc10fe495861d426
|
| 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 Oct 18, 2026.
Transparency logRelease files / adagio_server-0.1.5-py3-none-any.whl
| Download URL | adagio_server-0.1.5-py3-none-any.whl |
|---|---|
| Size | 45.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bdfe929b9af3cadc9d808a233f2147883808c07cba75f9b9d9a587687cab3e18
|
|
BLAKE2b-256 checksum How to use checksums |
8ae8d0f482ce6264c04f87959d4beea1f613919103f6517b4b6eb2d5630837e6
|
| 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 Oct 18, 2026.
Transparency logSecurity for adagio-server 0.1.5
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for adagio_server-0.1.5.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 Oct 18, 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.