This release is a pre-release and may not be stable for production use.
clio-relay
clio-relay runs work on the computers you use: your own machine, a cluster
you reach over ssh, a Tapis tenant, a Globus Compute endpoint, an IRI facility
or a cloud through SkyPilot. It is a standard MCP server, so any agent that
speaks MCP can use it: Claude Code, Copilot CLI, Codex, CLIO, or a plain mcp
client. It is also a command line for people.
How it works
Relay keeps a list of sites in sites.yaml. Each site names an adapter, which
knows how to reach it, and a policy that says what may run there. Every site
answers the same five verbs:
| Verb | What it does |
|---|---|
describe |
Lists the sites, describes one site, or observes one operation |
run |
Submits a job, written as a PSI/J job spec, and follows it to the end |
exec |
Runs one short command and returns its output |
files |
Lists, reads, writes, deletes and stages files, with resumable chunks for large ones |
serve |
Starts a long-running service and forwards its ports to you |
run and serve are MCP tasks when the client supports the tasks extension:
the client gets progress on the task, can leave and come back, and answers
questions (a one-time code, a spend approval) through the task. A client
without tasks gets an operation id instead, which describe(job=...) follows.
install installs a package's software on a site ahead of any run, with the
same questions as a run's install, and launches nothing.
See MCP tasks. files behaves the same on every site; see
files.
A site that is guarded runs only reviewed packages, and asks before it spends
an allocation. See guarded sites.
Install
uv tool install --python 3.12 --no-config clio-relay
Add the extras for the adapters you need, for example
clio-relay[tapis,globus].
Add a site
Pick one from the catalog, or describe your own:
clio-relay site catalog
clio-relay site add-from-catalog ares
clio-relay site add my-cluster --adapter ssh --config '{"ssh_profile": "my-cluster"}' --policy open
clio-relay site list
clio-relay adapters lists the adapters installed. Each adapter page below
lists its settings. Leave out --adapter or --policy and site add uses the
defaults for new sites, which clio-relay site defaults shows and changes; the
Compute page in CLIO shares them.
Use it from an agent
Point the agent's MCP configuration at the stdio server:
{"mcpServers": {"relay": {"command": "clio-relay", "args": ["serve"]}}}
For Streamable HTTP, run clio-relay serve --http. It listens on
127.0.0.1:8766/mcp and requires a bearer token, which it writes to its state
directory the first time unless CLIO_RELAY_TOKEN is set.
Answer what a site asks
Some sites ask for a one-time code, a sign-in or a spend approval. An agent with tasks or elicitation shows the question to you. From a terminal:
clio-relay asks list
clio-relay asks answer <ask-id>
clio-relay asks identities
Connect to a service
serve returns a connect command for each running service. Run it on your
machine to forward the service's ports and hold them open:
clio-relay connect <handle>
Bring your own machine or facility
A machine you reach over ssh, or one behind Tapis, Globus Compute or IRI, is a
new site: one entry in sites.yaml, no code. A facility with its own API needs
an adapter: one Python class in your own package, registered by an entry
point, with relay's conformance kit to prove it works. Relay's code does not
change.
- Adding a machine or an adapter: the walkthrough
- The adapter template: a complete adapter and a fake facility to copy
- Contributing: setting up, the checks, and the layout
Documentation
- MCP tasks: how
runandservebehave as tasks, and without them - files: paths, large files and resuming, the same on every site
- guarded sites: what a guarded site runs, and how packages are reviewed
- rendezvous host: the meeting point where a service and your machine both dial out
- adding a machine or an adapter
- architecture
- operations
- release
- brand prompt
- adapters
- globus: jobs through Globus Compute, files through Globus Transfer
- iri: the IRI Facility API that NERSC, ALCF, OLCF and ESnet serve
- sky: SkyPilot managed jobs on clouds, Kubernetes and Slurm
- ssh: any site you can reach with ssh, with or without a batch scheduler
- tapis: TACC and other Tapis tenants, with no ssh from your machine
- worker: a small relay worker on the cluster, reached through a rendezvous server after one ssh sign-in
Development
See CONTRIBUTING.
uv sync --all-extras
uv run ruff check --fix
uv run ruff format
uv run pyright
uv run pytest
Metadata
Release files for clio-relay 2.0.0a51
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 |
|---|---|---|---|---|
| clio_relay-2.0.0a51.tar.gz | 1.2 MB | With provenance | Details for clio_relay-2.0.0a51.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clio_relay-2.0.0a51-py3-none-any.whl | Python 3 | none | any | Details for clio_relay-2.0.0a51-py3-none-any.whl |
Total release size: 2.0 MB
Release files / clio_relay-2.0.0a51.tar.gz
| Download URL | clio_relay-2.0.0a51.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a12019485db405faf65323e49c89686a54f96daa1bd08406678f2024df20f07b
|
|
BLAKE2b-256 checksum How to use checksums |
3f0928125e809b2308ffe3311f77246248cc8186c28f7ff56b49dc1fd6458ec9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 27, 2026.
Transparency logRelease files / clio_relay-2.0.0a51-py3-none-any.whl
| Download URL | clio_relay-2.0.0a51-py3-none-any.whl |
|---|---|
| Size | 834.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5d904a4cea097aebfc8d1fed4ed3365480cc258876e3e14e7c6a61984993cc34
|
|
BLAKE2b-256 checksum How to use checksums |
213099b9babc3b5c8696220b0b7525c33d1a261feeb122caa94d76d8dbae6537
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 27, 2026.
Transparency logSecurity for clio-relay 2.0.0a51
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 clio_relay-2.0.0a51.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 27, 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.