seawulf-claude-code
A Claude Code plugin that lets Claude work on Stony Brook University's HPC clusters: SeaWulf, plus
NVwulf for large GPU jobs. You don't need to know HPC, and Claude doesn't need to be told how the cluster
works. Install it and ask.
- Connects safely. SeaWulf asks for Duo on every new ssh connection, and 10 unanswered pushes lock your account. Claude uses one session per approval and never retries blindly.
- Runs jobs well: picks the right queue, writes Slurm scripts (CPU, GPU, arrays), waits sensibly, and works out why a job failed or is still waiting.
- Knows the GPUs: SeaWulf's are A100s (its older K80, P100 and V100 nodes were retired in November 2026); NVwulf has H200 and RTX PRO 6000 Blackwell GPUs, with its own account and queues.
- Sets software up properly: modules, conda/Python envs outside the purged scratch space, CUDA/PyTorch/vLLM, containers.
- Knows the rules: login-node limits, quotas, the 45-day scratch purge, how to move data in and out.
Built from SBU Research Computing's documentation and checked on the live cluster. Every fact lists its source
and date, and a bundled script lets Claude re-check the cluster instead of trusting stale notes.
Contents
Install · Try it · Ways to work ·
For a whole lab · What's inside · Testing ·
Contributing · Status
Install
In Claude Code:
/plugin marketplace add khaihernlow/seawulf-claude-code
/plugin install seawulf@seawulf-claude-code
Updating: installed plugins don't update themselves. To get the latest version, run these in a terminal, then
restart Claude Code:
claude plugin marketplace update seawulf-claude-code
claude plugin update seawulf@seawulf-claude-code
You need a SeaWulf account (your PI's project number and a ticket to RCI) and Duo on your phone. On Windows,
you also need WSL. Claude walks you through the rest the first time.
Try it
- "Check whether my SeaWulf jobs finished and show me the errors from any that failed."
- "Set up a conda env with PyTorch on SeaWulf and run train.py on one A100 for 6 hours."
- "My job says OUT_OF_MEMORY, what do I change?"
- "Run this script over these 200 input files on the cluster, 20 at a time."
- "Why has my GPU job been pending all day?"
Ways to work
SeaWulf asks for Duo on every new ssh connection (SSH keys only remove the password step), so how Claude
connects matters. There are four ways; pick what fits how you work. The skill's knowledge (queues, limits,
envs, failures) applies to all of them.
| Claude runs on | Duo | Setup | Good when |
|---|
| One session from your laptop | Your laptop | One push per session; commands then take ~2 s with no pushes | ssh config; WSL on Windows | Your code and tools live on your laptop and the cluster runs it |
| On the SBU VPN | Your laptop | Approved once at VPN connect; plain ssh after that | VPN client | You're on the VPN anyway |
| Claude Code on SeaWulf | The login node (module load claude-code) | One push per login | Sign in to Claude there once; install this plugin there too | You work only on the cluster |
| Open OnDemand shell | Anywhere | One login in the browser | None | You can't set anything up; you paste commands back and forth |
You always authenticate yourself, and Claude never sees or stores your password.
One session from your laptop
scripts/preflight.sh checks your setup without connecting. scripts/sw then holds one session open for every
command, plus put/get for files. Real output from 2026-11-20 (NetID replaced):
$ scripts/preflight.sh
Checking ssh setup for 'seawulf'
ok Host seawulf -> milan.seawulf.stonybrook.edu as jdoe
ok ControlMaster on (your own login can be reused by the session)
ok your own login is open (master connection)
next 'sw start' opens the long-lived session (ONE Duo push: tell the user first)
$ scripts/sw start
Duo push sent to the user's phone; waiting up to 120 s for approval...
session open
$ scripts/sw run <<'EOF'
sbatch --test-only templates/gpu-a100.sbatch
EOF
sbatch: Job 2443554 to start at 2026-11-24T14:36:57 using 8 processors on nodes a100-02 in partition a100
Claude Code on SeaWulf
RCI provides Claude Code as a module. Log in (ssh seawulf, one push), then:
tmux # so Claude survives a dropped connection
module load claude-code
claude auth login # once; stored in your SeaWulf home
claude # then, inside Claude Code, install this plugin with the two /plugin commands above