Skip to main content

labtender

A lab board and GPU ledger for a small lab shared by people and AI agents, with budget-capped cloud GPUs for when the lab is full.

The labtender board for a fictional lab: five hosts, their GPUs, holders, queues, running jobs and a chartered cloud GPU

Small research labs end up with a mixed fleet: a workstation or two under WSL2, an NVIDIA Jetson, a Mac Studio, a laptop with a good GPU, and now and then a rented cloud GPU. Several people and a growing number of AI coding agents run long jobs on them. labtender answers the questions that come up every day: what is running where, who is using that GPU and until when, who is waiting for it, and is it worth renting another one.

What it does

  • Shows the whole fleet without installing anything. The labtender service reaches each node over plain ssh and pipes a small standard-library probe to python3; nothing is left behind. NVIDIA GPUs through nvidia-smi, Jetson through sysfs and tegrastats, Apple silicon through ioreg (no sudo), and WSL2 processes placed on their GPU from CUDA_VISIBLE_DEVICES, which nvidia-smi cannot do under WSL.
  • Keeps a ledger of who holds each GPU. Claims with priority tiers, queues with expected start times, leases kept alive by heartbeats or by binding a claim to a run, and flags for unclaimed use, idle claims and unpinned processes. Claims are advisory: labtender never starts, stops or pre-empts work on a lab machine.
  • Treats agents as lab members. Each agent session gets its own token and the same ledger as MCP tools, so an agent checks the board, queues for a GPU and releases it like a person would. labtender preflight gives run wrappers a single go or no-go.
  • Follows runs from their own logs. Pluggable parser specs turn a job's log folder into progress, a wall rate and an estimated finish, without changing the job.
  • Charters cloud GPUs under a budget. When the lab is full, a charter rents a cloud GPU through SkyPilot (Google Cloud, RunPod, Lambda and others), joins it to the board as an ordinary host, runs set-up, copies results back and destroys it. Every charter reserves its worst case against a monthly cap. Agents may approve small charters themselves, within per-charter, daily and weekly limits; anything larger waits for a person with the purser role. A reaper ends idle yachts, and a hard time limit set on the cloud side ends them even if labtender is down.

The purser page: a charter over the pre-approval limits, the budget, and the history

Try it in a minute

The demo seeds a fictional lab, so you need no hosts and no cloud account:

git clone https://github.com/lhzn-io/labtender && cd labtender
LABTENDER_HOME=/tmp/labtender-demo uv run python scripts/demo_state.py
LABTENDER_HOME=/tmp/labtender-demo uv run labtender serve --no-collect

Then open http://127.0.0.1:8795/, /compact, /prices and /purser.

Use it on your lab

uv tool install -e .                  # or: uv venv && uv pip install -e ".[dev]"
labtender host add gpu-box            # an ~/.ssh/config alias
labtender host add workstation --local
labtender watch add gpu-box run-wrapper '~/runs/*/'
labtender serve                       # http://127.0.0.1:8795/

labtender status prints the same view as text, and labtender probe <host> polls one host now.

Claims go through the labtender service with a token, one per person or agent session (labtender token create <name> --kind agent):

export LABTENDER_TOKEN=...
labtender claim gpu-box/gpu0 --hours 6 --note "parameter sweep"
labtender claims gpu-box/gpu0         # holder, estimated return, queue, flags
labtender bind 12 '~/runs/sweep-01/'  # the run keeps the claim alive
labtender preflight 0 8 --claim       # in a run wrapper: exit 0 means go

Agent sessions get the ledger and charters as MCP tools:

claude mcp add labtender -e LABTENDER_TOKEN=... -- labtender mcp

Cloud GPUs need SkyPilot installed beside labtender, a provider account set up for it, and a charter profile; see the yachts guide.

What it is not

labtender is not a scheduler or a cluster manager. It does not queue jobs for you or enforce claims; it records who intends to use what, shows everyone, and flags what does not match. If your lab is large and uniform enough for Slurm or Kubernetes, use those. labtender is for the lab that is too small or too mixed for them.

Status

Pre-alpha, in daily use in one lab across WSL2 workstations, two Jetsons, a Mac Studio, and cloud charters on Google Cloud and RunPod. Interfaces may still change; see the status page and CONTRIBUTING.md.

Words

The lab is the marina, and each GPU or host is a slip. Cloud GPUs are expensive yachts, chartered by the hour; labtender is the tender that runs work out to them and brings results back. The purser keeps the money.

Documentation

Getting started, reading the board, following runs, the claim ledger, agent sessions, cloud GPUs, the CLI and HTTP references, and safety are under docs/src/. Build them with uv pip install -e ".[docs]" and sphinx-build -b html docs/src docs/build/html.

Licence

Apache-2.0. Copyright 2026 Long Horizon Observatory.

Metadata

Release files for labtender 0.1.0

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

Source distribution (sdist)

Source distribution for labtender 0.1.0
File Size Uploaded Provenance Actions
labtender-0.1.0.tar.gz 828.0 kB With provenance Details for labtender-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for labtender 0.1.0
File Interpreter ABI Platform Actions
labtender-0.1.0-py3-none-any.whl Python 3 none any Details for labtender-0.1.0-py3-none-any.whl

Total release size: 1.1 MB

Release files / labtender-0.1.0.tar.gz

Download URL labtender-0.1.0.tar.gz
Size 828.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cda75547a4b9ce6f5f73e91f84246306d8a0c351fd4c54791d0776c84517eb91
BLAKE2b-256 checksum
How to use checksums
323090ee8541e50a2f682203df309b0926ed1360e47ef569336171ee520b8998
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 6, 2026.

Transparency log

Release files / labtender-0.1.0-py3-none-any.whl

Download URL labtender-0.1.0-py3-none-any.whl
Size 225.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb8aea8c1126a273a7d1a28e43490fc04245b77c94ea04f583a4ec4e65e8fbe5
BLAKE2b-256 checksum
How to use checksums
25dc80664f814571764fc2ccbd85bd554bd8b2d3c67e298b508ab9c1a192f438
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 6, 2026.

Transparency log

Security for labtender 0.1.0

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 labtender-0.1.0.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 6, 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

0.1.0 This release

2 release files Full provenance

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