Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

clio-relay banner

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. On a site whose JARVIS root relay has not set up yet, it sets that up (jarvis-cd and clio-jarvis, see operations). 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.

Documentation

  • MCP tasks: how run and serve behave 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.0a55

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

Source distribution (sdist)

Source distribution for clio-relay 2.0.0a55
File Size Uploaded Provenance Actions
clio_relay-2.0.0a55.tar.gz 1.2 MB With provenance Details for clio_relay-2.0.0a55.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for clio-relay 2.0.0a55
File Interpreter ABI Platform Actions
clio_relay-2.0.0a55-py3-none-any.whl Python 3 none any Details for clio_relay-2.0.0a55-py3-none-any.whl

Total release size: 2.0 MB

Release files / clio_relay-2.0.0a55.tar.gz

Download URL clio_relay-2.0.0a55.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
7f856554deae26f654f7e118f6c8574692d8b4415823e98317ffceb9d8442a15
BLAKE2b-256 checksum
How to use checksums
5a57c53e4b01c234a04f8246715325de82faa463dcbd8b7a588147006636c7c3
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 28, 2026.

Transparency log

Release files / clio_relay-2.0.0a55-py3-none-any.whl

Download URL clio_relay-2.0.0a55-py3-none-any.whl
Size 835.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c491ece7ee26bbf5713134dc59d9aa071ec07fc24775bcd2823e85e6717b7bed
BLAKE2b-256 checksum
How to use checksums
8500155e3c537c0f59fea3b704ba9be03ec8189376a15a3fe6518c1ff110dff8
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 28, 2026.

Transparency log

Security for clio-relay 2.0.0a55

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.

Select from 2 files

Attestation for clio_relay-2.0.0a55.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 28, 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.

Release history Release notifications | RSS feed

This release
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