Hands on the cluster

Hands on the cluster.

A self-paced course on using Claude Code with Northeastern’s Explorer cluster, and the AICR GPU cluster next door. Twelve short modules take you from “what is SSH?” to submitting experiments, installing software, hosting your own model on a GPU, and keeping one Claude working across several machines.

Start anywhereEach module stands on its own. The order below is the easiest path if you’re new.
Know the goalEvery module opens with what you’ll be able to do by the end of it.
Try thingsSimulators, builders and checkers let you practise without touching the cluster.
Track itTick the checklist at the end of each module. Progress stays in this browser.

Built from Nik Bear Brown’s Northeastern HPC, AICR and Claude films and their written guides and agent rules in the hpc-aicr repository (adapted from Northeastern Research Computing’s training), plus Research Computing’s documentation and Claude Code’s docs. Limits and policies change: anything marked “confirm live” should be checked on the cluster.

Everything in this course is a variation on one picture: a brain in the cloud, hands on your laptop, and a cluster that does the heavy work. Pick a scenario and step through it.

Your laptop with Claude Code, Anthropic’s API, GitHub, and the Explorer cluster’s login node, Slurm scheduler, compute nodes and shared storage Your laptop (Windows) Explorer cluster HTTPS SSH Youtyping a prompt claude processthe hands Bash toolruns ssh, scp, git ~/.claudehistory, memory, settings Anthropic APIthe brain: the model GitHubyour code and notes Login nodelight work only Slurm schedulerqueues your jobs Compute nodesCPUs and GPUs: real work Shared storage/home /projects /scratch claude

The brain
The model on Anthropic’s servers. It reads, decides and asks for actions, but can’t touch any computer itself.
The hands
The claude program you start in a terminal. It carries out the brain’s requests on whatever machine it runs on.
The cluster
Login nodes to get in, Slurm to hand out machines, compute nodes to do the work, and storage they all share.

Inside Explorer

Login nodes (explorer-01, explorer-02) are the front door, shared by everyone. Edit files, use git, submit and check jobs there. Anything heavy found running on them is terminated.

Slurm is the scheduler. You ask it for resources from a partition (a named group of nodes with its own limits), and it starts your work on a compute node when one is free.

Compute nodes have CPUs and, in the GPU partitions, cards such as V100, A100, H200 and T4. Check what exists today with sinfo.

StorageUse it forKnow this
/home/<you>Code, scripts, small environments75 GB, can’t be increased. Fills first, and a full home breaks Open OnDemand.
/scratch/<you>Temporary job dataEverything is purged on the first Tuesday of every month. Not backed up. Test that it’s writable before relying on it.
/projects/<project>Long-term and shared dataOwned by a sponsor (PI), free up to 35 TB, shared with the group. Module 2 covers it.

Explorer or AICR?

AICR is a separate GPU cluster shared by six Massachusetts universities. Explorer is where you develop and test; AICR is for production runs of code that already works. Flip between them to compare.

A Northeastern login isn’t enough to use Explorer. Every research user belongs to a project space under /projects, owned by a sponsor, usually a PI. And a project space isn’t just a folder: it’s a group (who’s in), a quota (how much it holds), and a set of permissions (who can do what), all managed with one command, project.

Getting in

  1. Find a sponsorStudents need a faculty sponsor whose lab has a /projects space.
  2. Get addedThe PI or a delegate adds you with the project command or the Open OnDemand Managing /projects app under Files. Or submit Research Computing’s access request form.
  3. Wait, then log in againGroup changes can take up to two hours to appear, and may need a fresh login. Check with groups.
  4. Use the right nameYour login is your Northeastern username. In one verified case it was the access form’s UserID instead of the email prefix, so try that if login fails.

Five kinds of people in a project

From least to most access. Click one to see what it can do.

    The project command

    Every command has the form project <project-name> …, and must run on a node in the short partition, not the login node. Start a small session first with srun -p short --constraint=ib --pty bash. Build a command and check whether your role may run it.

    Check your own numbers. Run check-quota /projects/<project> from a compute node and compare it with what you were promised: the figures can differ from the ones in your original grant or request ticket. PIs can also check the group email and the project’s TTL (“time to live”), an administrative date when Research Computing checks whether the project is still active.

    For agents. Never let Claude run project … add or remove unless you named exactly who. And never let it list /projects or run du over it: that prints other people’s project and user names, and walking a shared filesystem can hang.

    A terminal is a window that shows text: MobaXterm, Windows Terminal, the PowerShell window. A shell is the program inside it that understands commands: PowerShell on your laptop, bash on Explorer. SSH (Secure Shell) is a program that connects to another computer and hands you a shell there. In a MobaXterm session to Explorer, MobaXterm is the window, its built-in SSH client makes the connection, and you’re typing into bash on a login node.

    What happens on every connection

    1. ConnectYour laptop opens an encrypted tunnel to the login host on port 22, SSH’s standard door.
    2. Check the serverYour laptop compares the server’s fingerprint with the list it remembers, known_hosts. The first time, it asks you.
    3. Prove who you areWith a password today; with a key, silently, after Module 4.
    4. Get a shellWhat you type now runs on the cluster, not your laptop.

    Keys: a lock, and the only key that opens it

    Public key id_ed25519.pub
    A lock. Installed on Explorer in ~/.ssh/authorized_keys. Safe to share.
    Private key id_ed25519
    The only key that opens that lock. It never leaves your laptop, and you never paste it anywhere.
    Passphrase
    A password on the key file itself. A copied file is useless without it.
    ssh-agent
    A trusted helper that holds the unlocked key in memory, so programs, Claude included, can sign in without ever seeing the passphrase.

    Your laptop proves it holds the private key by signing a challenge; the key itself never travels. That’s why a key is safer than a password, not just more convenient.

    Phone calls and text messages

    You use SSH like a phone call: connect once, talk back and forth. Claude uses it like text messages: each command is separate, such as ssh explorer 'squeue -u $USER', run in a hidden shell. Every call starts fresh in your home folder and remembers nothing from the last one.

    So Claude can’t see or type into MobaXterm’s window, and it can’t answer questions. A command that stops at “Password:” just hangs. The setting BatchMode yes makes SSH fail with an error instead of asking, so Claude gets a clear message rather than a hang.

    Try it: the login simulator

    
              

    SSL, SSH, and certificates

    TLS, often called SSLSSH with keysSSH certificates
    Used forClaude talking to Anthropic’s API; pip and Hugging Face downloads; https websitesYou or Claude reaching Explorer’s login nodeAICR: your key comes with a certificate signed by AICR’s authority
    Proves identity withCertificates issued by a certificate authorityYour key pair, matched against authorized_keysYour key plus the cluster’s signature; no password exists at all
    When it breaks“certificate verify failed”, often a network that inspects HTTPS“Permission denied (publickey)”, “Host key verification failed”An expired certificate, but far more often an emptied agent

    The certificate errors you hit in WSL belonged to the first column, usually caused by a network or antivirus that inspects HTTPS. Running Claude Code directly on Windows sidesteps them, and nothing in SSH brings them back.

    The aim, as the login film puts it: Claude can reach Explorer without ever seeing your password or passphrase. You make a key, install it, unlock it once into ssh-agent, give Explorer a nickname, and test it the way Claude will run it. The film shows a Mac; these are the Windows equivalents, with no WSL needed.

    Which ssh will Claude use? (see step 7)

    1. Install Git for Windows and Claude Code

      Git for Windows gives Claude a bash shell that speaks the cluster’s language. Then, in PowerShell:

      PowerShell
      irm https://claude.ai/install.ps1 | iex
      ssh -V
    2. Make a key pair, with a passphrase
      PowerShell
      ssh-keygen -t ed25519 -C "laptop-to-explorer"

      Accept the default location and choose a passphrase. Some Research Computing pages say to leave it empty; the agent rules recommend against that, because then anyone who copies the file can log in as you.

    3. Install the lock on Explorer

      The film uses ssh-copy-id, which Windows lacks. Print your public key, copy the line starting ssh-ed25519, and add it in MobaXterm. This is the last time you type your password.

      PowerShell
      Get-Content $env:USERPROFILE\.ssh\id_ed25519.pub
      MobaXterm, on Explorer
      mkdir -p ~/.ssh && chmod 700 ~/.ssh
      nano ~/.ssh/authorized_keys      # paste on a new last line; Ctrl+O, Enter, Ctrl+X
      chmod 600 ~/.ssh/authorized_keys
    4. Unlock it once into ssh-agent

      On a Mac the film uses ssh-add --apple-use-keychain. Windows has a built-in agent service. Turn it on once in PowerShell as administrator, then add the key in a normal window. You type the passphrase here, never into Claude.

      PowerShell, as administrator
      Get-Service ssh-agent | Set-Service -StartupType Automatic
      Start-Service ssh-agent
      PowerShell
      ssh-add $env:USERPROFILE\.ssh\id_ed25519
      ssh-add -l

      The course authors verified key login on a Mac only; these Windows unlock steps are standard Windows OpenSSH, but untested by them. If anything ever prompts or fails, ssh-add -l is the first check: an empty agent is the most common cause.

    5. Give Explorer a nickname
      PowerShell
      if (!(Test-Path $env:USERPROFILE\.ssh\config)) { New-Item -ItemType File $env:USERPROFILE\.ssh\config }
      notepad $env:USERPROFILE\.ssh\config

      Paste this block. Click a line to see what it does.

    6. Test it the way the film does

      First connection only: BatchMode refuses the “are you sure?” question about a new server, so switch it off once and type yes yourself. Then run the film’s read-only test exactly as Claude will.

      PowerShell
      ssh -o BatchMode=no explorer hostname
      ssh -o BatchMode=yes -o ConnectTimeout=10 explorer 'whoami; hostname; pwd; squeue -u $USER'

      Success: your username, a login node’s name, your home path, and a job table (maybe empty), with no questions asked.

    7. Hand it to Claude

      Start claude in your project folder and ask it to run ssh -V. OpenSSH_for_Windows means plain ssh can use your agent: pick “Plain ssh works” above. A plain OpenSSH_9… means Claude is using Git Bash’s own copy, which can’t see the Windows agent: keep the full path. Then ask it to run:

      Ask Claude to run
       -o BatchMode=yes -o ConnectTimeout=10 explorer 'whoami; hostname; pwd; squeue -u $USER'

    Keep MobaXterm. Point it at the same key so it stops asking you too: session settings, Advanced SSH settings, Use private key, then choose C:\Users\<you>\.ssh\id_ed25519. AICR uses the same shape with a downloaded key and certificate: see Module 10.

    Claude Code is two things in two places. The model, the part that reads and decides, runs on Anthropic’s servers. The claude program you start in a terminal is a small agent that runs wherever you launch it. It sends the conversation to the model, receives requests such as “run this command” or “edit this file”, carries them out on its own machine, and reports back, round and round until the task is done.

    1. You ask“Is my job still running?”
    2. PackageThe process bundles your message with CLAUDE.md files and memory.
    3. DecideThe model answers in words, or asks to use a tool.
    4. CheckClaude Code compares the request with your permission rules, and asks you if needed.
    5. ActThe tool runs on the machine where claude runs.
    6. ReportThe output goes back to the model; repeat from step 3.

    Three consequences that explain everything else

    Tools act where the process runs. Start claude on your laptop and its Read, Edit and Bash tools work on your laptop, reaching the cluster only through ssh. Start it on a compute node and they work on cluster files directly. That’s why “where do I start it?” matters so much (Module 11).

    The model sees whatever tools print. Command output goes into the conversation. If a command prints a token or a password, the model sees it. That’s why passphrases go only to ssh-add, never through Claude.

    The process lives as long as your session. It’s a long-running program holding a conversation open: exactly the kind of thing login-node monitors stop. That’s most likely what happened when you started it on a login node.

    What’s inside ~/.claude

    Every machine where you run claude has its own copy of this folder. Click an entry to see what it holds and whether it belongs in git.

    Agents are fast, literal, and can’t feel what their actions cost other people on a shared cluster. Left unguided, they cause quiet failures: a job that “worked” but ran on a CPU, a GPU held idle until it’s cancelled, results left on a disk that gets wiped, --mem raised to fix a GPU out-of-memory error it can’t fix. Written rule files close that gap.

    Two rule files

    HPC.md
    Rules for any shared Slurm cluster, written for Explorer: the hard NEVERs, what to ask first, the read-only commands, sizing, GPUs, storage, software, reproducibility.
    AICR.md
    Builds on HPC.md with what’s different or stricter on AICR: idle GPUs cancelled, a 30-day scratch purge, the develop-then-batch workflow, and lessons from real jobs.
    Where they live
    In the hpc-aicr repository, under skills/hpc/ and skills/aicr/. Clone it once and keep it somewhere stable.

    How to use them

    1. Point, don’t pastePut a short pointer in CLAUDE.md, so the full rules load only for cluster work.
    2. Prime the sessionBefore any cluster work, ask Claude to recite the rules that apply.
    3. Keep your judgmentClaude does the mechanics; you approve spending, access and anything irreversible.
    Add to CLAUDE.md (in the project or ~/.claude)
    First message of a cluster session
    Before we start: read HPC.md completely. Then tell me, in your own words,
    the hard NEVERs, which commands you may run without asking, and what you
    will ask me before you submit, cancel or delete anything.

    Claude’s job: the pipeline. Inspect, measure, size requests, write scripts, check results, keep records, explain in plain words.

    Your job: judgment. What the science needs, what to spend, who gets access, and every action that can’t be undone.

    Sort these: allowed, ask first, or never?

    Each is something Claude might want to do on Explorer. Decide, then see what the rules say.

    A second layer: permission rules

    CLAUDE.md is advice Claude follows. Permission rules in .claude/settings.json are enforced by Claude Code itself: deny rules are checked first, then ask, then allow. Anything that matches nothing makes Claude ask you. Save this in your project, then test commands against it.

    .claude/settings.json

    A simplified version of Claude Code’s matcher. The real one also checks each part of a chained command separately. Rules are a seatbelt, not a vault: read what Claude asks to run before you approve it.

    Job
    A request to Slurm: “give me these resources for this long, and run this.”
    Interactive or batch
    srun --pty bash gives you a shell on a compute node; sbatch script queues a script to run unattended. Claude can’t hold an interactive shell, so it uses short batch jobs.
    Wall time
    The time limit. When it runs out, Slurm stops the job, finished or not.
    Fairshare
    Your priority falls as you use resources. Asking for more than you use costs you later.

    Explorer’s partitions

    From Research Computing’s partitions page, read October 2026. Confirm with sinfo and scontrol show partition <name> before relying on any number.

    PartitionDefault / max timeFor
    short4 h / 48 hDefault for CPU work. 50 running jobs, at most 2 nodes.
    sharing30 min / 60 minQuick tests only.
    gpu-short1 h / 2 hOne GPU, prioritised. Quick tests, profiling, debugging.
    gpu-interactive1 h / 2 hOne GPU for Open OnDemand and interactive work.
    gpu4 h / 8 hOne GPU per job, for sbatch. 4 running, 8 submitted.
    long1 day / 5 daysApproval needed; show the code can’t checkpoint.
    multigpu12 h / 24 hApproval needed; up to 8 GPUs, only for optimised code.

    Sizing, in five rules

    1. Start small, then growRun a short slice, read seff, then size the real job from what it used.
    2. Time = runtime + 20%Never the partition maximum “to be safe”. Never rely on the hidden 4-hour default.
    3. --mem is CPU RAMRaising it never fixes a GPU out-of-memory error.
    4. Name the GPU typeA bare gpu:1 can land on any card, with different memory.
    5. Earn a second GPUOnly when one GPU shows over 80% utilisation and the code is written for multiple GPUs.

    Job script builder

    jobs/steer.sbatch
    Checks

      Command builder

      The everyday commands, in the form Claude should use: one bounded command per call, single-quoted so $USER expands on the cluster.

      Is your GPU actually working?

      After a GPU job, gpu-logs <jobid> (kept for seven days) and seff <jobid> show what it used. Set the two numbers you see to get a diagnosis.

      IdleBot. Explorer emails you after about 15 minutes of an under-used GPU and cancels the job after an hour; graphs of cancelled jobs land in /scratch/<you>/idle_bot_graphs/. Never keep a GPU busy with filler work: it defeats a fairness system and can end with access restricted for everyone.

      Etiquette for agents. Check squeue no more than about every five minutes. Never scancel -u $USER, which also kills jobs this session didn’t start. Use a throttled job array (--array=0-99%10) instead of submitting in a loop. Nothing runs on the first Tuesday of the month: that’s maintenance, and the scratch purge.

      A cluster isn’t your laptop: there’s no sudo, everything sits on network filesystems shared with hundreds of people, and your home folder is small. So installing software follows a ladder. Each step down costs more setup and more upkeep, so stop at the first one that works. The best install is no install.

      1. A moduleSoftware the administrators already installed. module avail <name>, then module load name/version.
      2. CondaFor Python or R packages: one small environment per project.
      3. An Apptainer containerFor software with nasty dependencies, or when portability matters. Build the image on your own machine.
      4. A source buildWhen you need a patch, a specific version or a build flag. Install into your own space.
      5. Spack or EasyBuildFull control of the build toolchain, for people prepared to maintain it.

      Which rung do you need?

      Does module avail <name> list it, in a version that works for you?
      Is it a Python or R package (PyTorch, transformers, tidyverse)?
      Does it have tricky system dependencies, or a ready-made Docker image?
      Do you need a patch, an exact version, or special build flags?

      Habits that keep you out of trouble

      Never build on the login node. Conda solves, make -j, spack install and container pulls all go in a compute-node session. Match -j to the cores you were given.

      Keep ~/.bashrc clean. No module load, no conda init, no activation there: it breaks batch jobs and Open OnDemand. Put setup in each job script.

      Mind the home quota. Environments with thousands of small files fill 75 GB fast and slow job launches. Put big environments in /projects; send only re-downloadable caches to /scratch.

      Beware module purge. On Explorer the default explorer/1.0 module sets the proxy that compute nodes use to reach the internet. Purge it and every download times out; load it again straight after.

      You can run an open model on an Explorer GPU and point a coding agent at it. There’s no per-token bill, and your code never leaves Northeastern’s storage. But it isn’t free: you pay in queue time and fairshare, an idle-GPU watcher cancels jobs that sit unused, and someone has to start and stop it on purpose.

      Three layers

      Model host
      Ollama, running inside an Apptainer container, inside your own GPU job.
      Harness
      The coding agent, such as Claude Code, pointed at the local model instead of Anthropic’s.
      Transport
      How the harness reaches the model: a local address on the same node, or a tunnel.
      Where the coding agent, the transport and the model host sit in each pattern Your laptop Login node Your GPU job, on a compute node Claude Codeharness SSH tunneltransport Claude Codeharness, in the same job Token proxychecks a secret on each request Ollama in Apptainermodel host, bound to 127.0.0.1on a random port

      Check your settings for traps

        Let Claude set it up, carefully

        The course repository has a recipe written for Claude Code to follow. It asks before every file it writes and every job it submits, and never touches your credentials. Its authors note it hasn’t been run end to end yet, so expect to fix something and keep the log.

        Clone the repo, run claude inside it, paste this
        Read skills/local-llm-on-explorer/GET-STARTED.md completely, then guide me through setting up a local model on Explorer, one step at a time. Follow it exactly. Ask me before you write any file on the cluster or submit any job. Never ask for, type or read my password, passphrase or key. Keep a log in SETUP-LOG.md.

        Once it’s set up, you start each session yourself, in your own terminal:

        Your terminal: a session on the node
        ssh explorer
        tmux new -s llm                       # a dropped connection won't kill the session
        srun --partition=gpu-interactive --gres=gpu:h200:1 --cpus-per-task=4 --mem=32G --time=02:00:00 --pty /bin/bash
        export NO_PROXY="127.0.0.1,localhost${NO_PROXY:+,$NO_PROXY}"; export no_proxy="$NO_PROXY"
        source ~/.ollama-hpc/start-ollama.sh
        source ~/.ollama-hpc/claude-local.sh
        cd ~/devils-advocate && claude           # /status should show the local address
        # finished? exit Claude, then exit the job, so the GPU goes back

        Where a local model shines. Well-defined tasks with clear tests. Bulk, repetitive edits across many files. Sensitive code that must stay inside Northeastern.

        Where it struggles. Open-ended refactoring. Debugging a large codebase. Anything where one wrong tool call is expensive. A 20B to 120B model is much weaker than Claude: give it narrow jobs.

        Claude Code talks to Ollama (version 0.14 or later) through documented settings, but Anthropic doesn’t support pointing Claude Code at non-Claude models, so treat this as an unsupported route. The laptop-tunnel pattern and any shared endpoint for a class need Research Computing’s go-ahead first.

        The AI Compute Resource is a GPU cluster at the Massachusetts Green High Performance Computing Center in Holyoke, shared by BU, Harvard, MIT, Northeastern, UMass and Yale: 248 B200 and 152 RTX PRO 6000 GPUs, eight per node. It’s scarce and expensive, so it’s meant for production runs of code that already works. Develop and debug on Explorer, then bring the tuned job here.

        Getting in

        1. A PI appliesA faculty member submits a project proposal. Students can’t request access alone.
        2. Sign in to OnDemandAt ood.aicr.ai, choose your institution and use your institutional credentials. No VPN needed.
        3. Download your keysAn aicr_keys folder in your OnDemand home holds a key and a certificate. There’s no AICR password at all.
        4. Unlock and connectChange the initial passphrase once, add the key to ssh-agent, then ssh aicr.

        Your AICR username is

        Rule from the AICR introduction: the dot becomes an underscore, and _neu is added. Confirm yours; don’t guess it.

        ~/.ssh/config, a second block

        Pick a partition

        What are you doing?
        Does the model fit in 96 GB of GPU memory?

        StorageSizeRecoveryPurgeUse
        /home/<user>100 GiB7-day snapshotsnoneCode, scripts, environments
        /scratch/<user>10 TiBnonefiles older than 30 daysTemporary data for running jobs
        /work/neu/<project>per project7-day snapshotsnoneThe team’s project data; clear it at project end

        What’s different from Explorer

        Every job states its account. Pass --account=<account>, and request GPUs with --gpus=1, with no type: the partition already decides the card.

        Don’t activate conda in batch jobs. One real job died on source activate. Prepend the environment’s bin/ to PATH instead, and print which python.

        Measure with jobstats. After every batch job, jobstats <jobid> shows CPU, memory and GPU use, and notes like “only needed 11% of the requested time”. It exists only on AICR.

        Idle GPUs are cancelled. No threshold is published, so verify the GPU in the first seconds of every job and fail it yourself if CUDA is missing.

        BF16 by default. On these Blackwell GPUs the course recommends BF16 mixed precision, without a gradient scaler, before anything else.

        It’s temporary. No off-site backup; projects get a yearly check-in. Copy results home regularly, and move data back to Northeastern when the project ends. Publications acknowledge AICR.

        For agents: point Claude at both files, HPC.md then AICR.md, before any AICR work. Where they differ, AICR.md wins on AICR.

        The same three choices work for Explorer, a cloud VM, a lab server or a Raspberry Pi. They differ in one thing: where the claude process, the hands, runs.

        Claude stays on your laptop and sends the cluster short commands over SSH (Modules 4 to 7). The cluster is an executor.

        Which ~/.claude
        Your laptop’s, with your full history and GitHub-synced setup
        File access
        Laptop disk directly; cluster files through git, tail and scp
        Laptop closes
        Claude pauses; submitted jobs keep running
        Best for
        Your default: writing code, submitting and watching jobs, summarising results

        Which one right now?

        Do you need a GPU attached while Claude iterates on code with you?
        Will you close your laptop while Claude keeps working?
        Did curl -sI https://api.anthropic.com work on a compute node?

        Your questions, answered

        1aIf I start Claude Code on my own computer, can it reach the cluster through SSH?

        Yes, and it’s the best default. Claude’s Bash tool runs one bounded command per call, like ssh explorer 'squeue -u $USER', and with a key in ssh-agent nothing asks for a password. Every call lands on a login node, so Claude only dispatches there: git, sbatch, squeue, tail -n. Code moves through git and results come back with scp. Your full context stays with you, and jobs keep running when your laptop sleeps.

        1bWhy was Claude killed when I started it on the login node?

        Policy: jobs found on login nodes are terminated, and bots notify Research Computing and you. VS Code sessions on login nodes get cancelled for the same reason. Watch for setups that put Claude there quietly: VS Code Remote-SSH or a desktop-app SSH session pointed at login.explorer.northeastern.edu.

        1cIf I start Claude on a GPU node, is its memory wiped when the job ends?

        Mostly no. Claude keeps history and memory in ~/.claude, and your Explorer home is shared storage seen by every node. When the job ends, the process stops but the files stay; next time, open the same folder and run claude --continue. You lose only the turn in progress and anything kept in node-local temp space or /scratch. The real catch: it’s a separate ~/.claude from your laptop’s (Module 12).

        2How do I let Claude control another computer, like a VM or a Raspberry Pi?

        The same three choices. Keep Claude local and add a Host block per machine, install Claude on the machine (the desktop app’s SSH sessions do it for you), or run it there and steer it with Remote Control. If the machine mostly runs things you launch, keep Claude local; if the code and data live there and you iterate fast, put Claude there.

        QCan Claude just use MobaXterm?

        No. Claude can’t see or type into another app’s window, and your saved MobaXterm password is invisible to it. It runs its own ssh in the background. Keep MobaXterm for yourself and point it at the same key.

        QDo I need WSL?

        No. WSL only came up for a speed trick, multiplexing, that keeps one connection open for many commands. With a key, each command connects automatically in about a second, which is plenty. Claude Code runs directly on Windows, and skipping WSL skips its certificate trouble.

        Claude Code has no central brain that follows you between machines. Each copy starts fresh and reads files from its own disk. So keeping one Claude across your laptop and the cluster means choosing which files are the source of truth, and how they move.

        LayerWhere it livesIn git?Why
        Instructions you write~/.claude/CLAUDE.md, settings, skills; the project’s CLAUDE.md and .claude/YesSmall, yours, the same everywhere. Project files travel with the repo.
        Auto memory~/.claude/projects/<folder>/memory/CarefullyFiled by folder path, so each machine gets its own. autoMemoryDirectory can move it somewhere you sync; check with /memory.
        Transcripts~/.claude/projects/<folder>/*.jsonlNeverLarge, tied to one machine, and they hold everything any command printed.
        Credentials~/.claude/.credentials.jsonNeverEach machine logs in on its own.
        Laptop
        • Sessions that SSH out
        • Your full ~/.claude
        • Reads notes/ after git pull
        GitHub
        • Dotfiles repo: global instructions and skills
        • Project repo: code, CLAUDE.md, notes/
        Explorer
        • On-node sessions and job steps
        • Write summaries to notes/runs/, then push
        • Big files stay in /projects

        Moving work between machines

        1. Write a handoffAsk the session to update notes/HANDOFF.md: what’s done, what’s next. Commit and push.
        2. Pullgit pull in the same project on the other machine.
        3. Resumeclaude "read notes/HANDOFF.md and continue": the cross-machine resume that works.
        4. Report backAfter a run, Claude writes notes/runs/<date>-<name>.md with config, commit, metrics and conclusions, and pushes it.

        This doubles as the reproducibility record the rule files ask for: every job traceable to a commit, its parameters and seeds, and the exact hardware it ran on.

        .gitignore in your .claude repo (keep the repo private)
        projects/            # transcripts and per-machine memory
        *.jsonl
        .credentials.json
        shell-snapshots/     # caches; names vary by version
        todos/
        statsig/
        ✓

        What you can do now

        Your skills, a quiz, and a glossary

        Check yourself

        Glossary