Skip to main content

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.2

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

Source distribution (sdist)

Source distribution for adagio-server 0.1.2
File Size Uploaded Provenance
adagio_server-0.1.2.tar.gz 64.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for adagio-server 0.1.2
File Interpreter ABI Platform
adagio_server-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 109.3 kB

Release files / adagio_server-0.1.2.tar.gz

Download URL adagio_server-0.1.2.tar.gz
Size 64.4 kB
Tags Source
SHA-256 checksum
How to use checksums
16000b6ea1608b2ecfca9b5c575cbdbaac0fc69a70c43e0e43cb55a59f77e2e1
BLAKE2b-256 checksum
How to use checksums
e995f745dc6eef5881faf31517c1948ea903b2b70a9bb0ec54f7fe059f4ccf4b
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 4, 2026.

Transparency log

Release files / adagio_server-0.1.2-py3-none-any.whl

Download URL adagio_server-0.1.2-py3-none-any.whl
Size 44.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
858dc38b97ea296c155713321b90cf587a2d738c7f3056572d9dccccfc026888
BLAKE2b-256 checksum
How to use checksums
439dc015c11333a80ff51496f874352ac58308e7a712cb5c94e7a3bb55b0acc0
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 4, 2026.

Transparency log

Security for adagio-server 0.1.2

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.

Select from 2 files

Attestation for adagio_server-0.1.2.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 4, 2026.

Transparency log

A 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.

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