Metadata-Version: 2.4
Name: compute-relay
Version: 0.1.0b1
Summary: A local compute broker for reviewed and budgeted Slurm jobs from AI clients
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/schmitfe/compute-relay
Project-URL: Documentation, https://github.com/schmitfe/compute-relay/tree/main/docs
Project-URL: Issues, https://github.com/schmitfe/compute-relay/issues
Classifier: Development Status :: 4 - Beta
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Django<5.3,>=5.2
Requires-Dist: jsonschema==4.26.0
Requires-Dist: rfc3339-validator<1,>=0.1.4
Requires-Dist: rfc8785<1,>=0.1.4
Requires-Dist: httpx<1,>=0.28
Requires-Dist: mcp<2,>=1.12
Requires-Dist: waitress<4,>=3.0.2
Requires-Dist: Pygments<3,>=2.19
Provides-Extra: test
Requires-Dist: pytest<10,>=8; extra == "test"
Requires-Dist: pytest-django<5,>=4.10; extra == "test"
Requires-Dist: build<2,>=1.2; extra == "test"
Dynamic: license-file

<h1><img width="504" src="https://raw.githubusercontent.com/schmitfe/compute-relay/v0.1.0b1/assets/compute-relay-logo.svg" alt="Compute Relay" /></h1>

[![Python versions](https://img.shields.io/badge/dynamic/toml?url=https%3A%2F%2Fraw.githubusercontent.com%2Fschmitfe%2Fcompute-relay%2Fmain%2Fpyproject.toml&query=%24.tool%5B%27compute-relay%27%5D.ci%5B%27python-versions%27%5D&label=Python&logo=python&color=blue)](https://github.com/schmitfe/compute-relay/blob/v0.1.0b1/docs/testing.md)
[![CI](https://github.com/schmitfe/compute-relay/actions/workflows/runtime.yml/badge.svg?branch=main)](https://github.com/schmitfe/compute-relay/actions/workflows/runtime.yml)

Let Codex, Claude Code and other local MCP clients prepare work for your Slurm
clusters. Review the exact job before submission, or set project limits for
automatic execution.

**0.1.0b1 — first beta**

For one human owner on Linux, with CPython 3.12–3.14. Apple Silicon macOS 15
support is provisional: automated checks pass, but the desktop/MFA walkthrough
is pending. Intel Macs and shared multi-user hosting are outside tested support.
See the [support policy](https://github.com/schmitfe/compute-relay/blob/v0.1.0b1/SECURITY.md).

## Quick start

Install [uv](https://docs.astral.sh/uv/getting-started/installation/), then
install the beta and start the local portal:

```sh
uv tool install --python 3.13 'compute-relay==0.1.0b1'
compute-relay
```

If `compute-relay` is not found, run `uv tool update-shell` and reopen your
terminal. The launcher opens `http://127.0.0.1:8768`. In the portal, add your
cluster and start its connector. Choose your SSH identity and answer passphrase or MFA
prompts in the terminal. Then select an environment, create a project, set its
approval and compute limits, and create a project key.

In your science project directory, connect your clients:

```sh
compute-relay init-mcp --client both --with-workflow
```

Enter the project key at the hidden prompt. The command creates project-local
Codex and Claude Code settings; it does not copy SSH credentials into them.
Ask your client to prepare a job. Review the generated script and approve it in
the portal before it is submitted. See [client setup](https://github.com/schmitfe/compute-relay/blob/v0.1.0b1/docs/local-client-setup.md)
for more options.

The portal, SQLite ledger and connectors run on your device. A submitted Slurm
job continues if you close the portal; restarting `compute-relay` resumes
monitoring. This package shares your operating-system account and does not
isolate credentials from another process running as that account; see the
[security boundary](https://github.com/schmitfe/compute-relay/blob/v0.1.0b1/docs/security.md).

## Documentation

[Installation and recovery](https://github.com/schmitfe/compute-relay/blob/v0.1.0b1/docs/deployment.md) ·
[Runtime and limits](https://github.com/schmitfe/compute-relay/blob/v0.1.0b1/docs/runtime.md) ·
[Portal](https://github.com/schmitfe/compute-relay/blob/v0.1.0b1/docs/management.md) ·
[Architecture](https://github.com/schmitfe/compute-relay/blob/v0.1.0b1/docs/architecture.md) ·
[Modules](https://github.com/schmitfe/compute-relay/blob/v0.1.0b1/docs/extensions.md) ·
[Testing](https://github.com/schmitfe/compute-relay/blob/v0.1.0b1/docs/testing.md) ·
[Documentation guide](https://github.com/schmitfe/compute-relay/blob/v0.1.0b1/docs/README.md) ·
[Prioritized roadmap](https://github.com/schmitfe/compute-relay/blob/v0.1.0b1/docs/roadmap.md)

## Development

From a source checkout, use uv 0.13.6 to install the locked test extra and run
the core checks:

```sh
uv sync --locked --extra test --python 3.13
uv run --locked --extra test python -m pytest -q
uv run --locked --extra test python tools/local_smoke.py
```

`uv.lock` is the dependency source for development, CI and disposable fixtures.
Ordinary wheel/pip installation remains supported. The default suite uses SQLite
and synthetic credentials; it does not contact a real cluster. See [optional Slurm acceptance](https://github.com/schmitfe/compute-relay/blob/v0.1.0b1/docs/container-testing.md).

## License

Apache-2.0.
