Drive a supercomputer from your coding agent.
Ask for a compute node in plain language: the agent shows you what it will cost, asks, then runs your work on it.
Install ·
First session ·
How it works ·
User guide ·
Video
Claude Code connects to a small Slurm test cluster and shows the terms of the block it would start: its
partition, its size and the most it can bill. After a yes, six rows of a batch run on the block, two at a time, and
the block is released.
hpc-bridge is a Claude Code plugin, and an MCP server for any other agent host. It finds the facility you name, or
discovers a cluster you bring, and logs you in to Globus once. It sets up a Globus Compute endpoint on the login node,
or uses the facility's own, and starts a scheduler job sized to the work, a block, only after you say yes to what it
can cost. Your commands run there in a shell that keeps its place, and the block is released when you are done.
Install
Inside Claude Code; the repository is its own plugin marketplace:
/plugin marketplace add globus-labs/hpc-bridge
/plugin install hpc-bridge@hpc-bridge
Then ask: What HPC facilities can I use? That first answer needs no login and no configuration.
Other MCP hosts
hpc-bridge is a standard MCP server. Codex, Pi, Hermes, Claude Desktop, Cursor and the OpenAI Agents SDK all run the
same command:
uvx --python 3.13 --from git+https://github.com/globus-labs/hpc-bridge hpc-bridge
Other MCP hosts has a tested recipe for each, and how to give the agent hpc-bridge's
guidance.
What you need
uv on your machine. It fetches Python 3.11 or newer itself.
- A Globus account, logged in with the identity your facility knows you by, usually your institution's or ACCESS's.
- An account at a facility: one that maps your Globus identity to it, for zero SSH, or one you reach with
key-based SSH from
~/.ssh/config.
You install nothing on the facility yourself. Install has the details, and
what you bring and what's included.
Your first session
- What HPC facilities can I use?
- Connect me to Anvil, a facility from step 1, or the cluster at
login.example.edu for one that isn't listed
- Run
hostname on a compute node
- Release the compute block
The connect opens your browser for Globus once. Before the first command, the agent names the block it would start
and asks. A block takes a couple of minutes to start on a quiet cluster; after that, commands run at once. The
Quickstart walks through each step.
What it can do
Commands on a warm node
Your working directory and environment carry over from one command to the next, as in a terminal. A long command
comes back as a task the agent polls, and keeps the block busy while it runs.
Batches, sized per row
The same command over many inputs is one batch. You size a row as you would an sbatch array task, in cores, memory and
GPUs; hpc-bridge derives the block from the rows, pins each row to its own CPUs, and records every row in a ledger
that outlives the session. Not sure of the size? A pilot runs one row alone on the block and proposes one from what it
used. Batches has the prompts and the limits.
Jobs that outlive the session
Long or array work can go to the scheduler as jobs, under a budget you approve once: a cap and a deadline, with each
job's worst case counted against it. Jobs need a facility hpc-bridge reaches over SSH; see
Jobs.
Environments
Name an environment once, and every command, row and job runs in it: a module load or conda activate line on any
facility, or, where hpc-bridge set up the endpoint itself, one it builds from a requirements list on the login node,
for free. Switching environments starts no new block; see Environments.
The spend gate