How to Let Claude Run a Fleet for You: Rented GPUs, a Mac, a Windows Laptop and One Private Git Repo
Most people use Claude Code on one machine, for one task, in one session. This post is about a different use: Claude as the manager of many machines doing several kinds of work at once. You say what you want in sentences. It rents the machines, sets them up, splits the work between them, keeps them fed, merges what comes back, removes the machines that have nothing to do, and tells you what happened.
We have been running it this way, and this post shows the whole pattern and gives you the prompts to start your own, beginning with two machines.
Who we are, briefly: we run a free, open digital museum of Islam, built as a knowledge graph kept in git (about 95,000 nodes and 130,000 relationships on 5 December 2026). We are filling roughly 14,600 empty Arabic pages by OCR-ing scanned books and mining the text into entities, facts and typed relationships. On 5 December 2026 that work ran on fourteen rented GPU boxes, a Mac and a Windows laptop, for about $10 an hour, with one Claude Code session orchestrating.
Two things to know before you read on. This is a working experiment, not a finished system. And when an outside check scored an early pass of our mining, it came back at 56%. We say more about that in section 7.
1. The pattern in one picture
There are four roles.
- You decide what the work is, what the rules are, and how much money goes in.
- The orchestrator is one Claude Code session on your own computer, with shell access. It manages; it does not do the heavy work.
- The bridge is a private git repository that every machine can read and write. It is the only channel between the orchestrator and the workers.
- The workers are whatever machines you have or rent. Each runs a small loop: pull, take the next order, do it, push the result.
flowchart TD Y["You<br/>goals, rules, money"] -->|"sentences"| O["Orchestrator<br/>(Claude Code)"] O -->|"writes orders"| B[("Private bridge repo<br/>to-box/ orders · from-box/ results")] B -->|"pull"| OCR["OCR boxes<br/>RTX A6000 × 8"] B -->|"pull"| MIN["Mining boxes<br/>A100 80 GB × 5"] B -->|"pull"| CRW["Crawler box × 1"] B -->|"pull"| MAC["Mac (M4 Max, 128 GB)<br/>miner 'mac1' via Ollama"] B -->|"files"| WIN["Windows 11 laptop<br/>bulk translation in Word"] OCR -->|"push results"| B MIN -->|"push results"| B CRW -->|"push results"| B MAC -->|"push results"| B B -->|"reads, checks, merges"| O O -->|"hard questions"| G["Gemini<br/>second opinion"] The heavy work runs on cheap local models on the workers. Claude's tokens go on management only: reading short status files, writing short order files, running a handful of commands.
2. The bridge: a private repo as the only channel
The bridge has two folders per machine.
bridge/ to-<box>/ # orders for that box: "OCR book X, parts 3-4", "mine windows 1200-1450" from-<box>/ # that box's results: finished text, mined packets, status notes A box boots, clones the bridge, reads its to- folder, works, writes into its from- folder, commits, pushes, and pulls the next order. The orchestrator does the mirror image: it writes orders, reads results, merges them, and assigns more.
We chose git over a queue server for three reasons.
- Everything is a file with history. You can read what a box was told at 14:03 and what it answered. If a box dies, its last push is still there.
- There is no extra service to run. Every machine already has git.
- It works for any machine. A rented Linux box, a Mac on a desk and a Windows laptop all join the same way, by cloning one repository.
Two rules make it hold up with many writers.
- One results folder per machine. Two boxes never write the same file, so there are no content conflicts.
- One merger. Boxes still collide when they push in the same second, so each worker retries its push after a
pull --rebase. Only the orchestrator merges results into the main work.
Each box gets a deploy key scoped to the bridge repo and nothing else. No keys, passwords or addresses are ever written into an order, a prompt or a result file.
3. Lanes: split the work by kind, then match machines to kinds
A lane is one kind of work with its own machines, its own queue and its own checks. Ours on 5 December 2026:
| Lane | Machines | Rate | What the lane did that day |
|---|---|---|---|
| OCR of scanned Arabic books | 8 × RTX A6000 | about $0.50/h each | about 8–16 books an hour across the lane |
| Mining text into graph packets | 5 × A100 80 GB | about $1.20/h each | about 170 windows an hour across the miners |
| Crawling | 1 small box with a headless browser | ||
| Mining, on our own hardware | Mac M4 Max, 128 GB, as mac1 | already owned | same miner as the A100s |
| Translation | Windows 11 laptop | already owned | bulk translation in Word, in batches |
Total: about $10 an hour.
Lanes do not mix. Mining runs only on the A100s, OCR only on the A6000s, and the crawler has its own box. That keeps a problem in one lane from stopping another, and it lets you add or remove machines per lane as that lane's queue grows or empties.
4. Bootstrap: the prompts, in order
You need Claude Code on your own computer, an account with a GPU marketplace and its command-line tool (we use Vast.ai and its vastai CLI), an empty private git repository, and a task that can be cut into independent pieces.
These prompts are starting points. Change the names, the numbers and the task to your own.
Step 1. Create the bridge.
Set up this empty private repo as a bridge between you and worker machines. For each worker there will be a folder to-<name>/ for orders and from-<name>/ for results. Orders are small JSON files. Write a README that explains the layout, the order format, and these rules: a worker writes only inside its own from- folder, and only you merge results. Do not put any key, password or address in any file. Step 2. Write the rules down before renting anything.
Write HANDBOOK.md in the bridge. It is for you, and for any later session that takes over from you. Put in it: the lanes and which machine type each one uses; that every box's queue stays at least 2 hours deep; that the next job is prepared before a box finishes, not after; that a box idle for 6 minutes is destroyed, but only after its work is committed and pushed and its remaining orders are reassigned; that you ask me before spending above the budget I give you; and that you never deploy anything. Keep a DECISIONS.md log: one line for every judgement call you make. Step 3. Write the worker.
Write worker.sh for the bridge: a loop that pulls, takes the oldest order in its to- folder, runs it, writes the output into its from- folder, moves a failed order to from-<name>/failed/ instead of retrying it forever, commits, and pushes with a pull --rebase retry. If the pull itself fails, stop; do not keep working from an old copy. A minimal version is in section 10.
Step 4. Rent the first machine.
Find the cheapest RTX A6000 offer on Vast, show me the price, then rent it. Add an SSH key and a deploy key scoped to the bridge repo only. Clone the bridge on the box, install what the OCR lane needs, and start worker.sh as ocr1. Tell me when its first result is pushed. Behind that one request the orchestrator reads the offers, picks one, rents it, sets up access, installs the worker and starts it. You see a short report.
Step 5. Split the work.
Here is the list of books to OCR. Split each book into parts and write one order file per part into to-ocr1/. Keep two books in flight per box. Record in the bridge which parts went to which box, so no part is assigned twice. Step 6. Put the monitor on a schedule. Save the prompt in a file and let cron run it headless, so nobody has to sit and ask:
Check every box by what it pushed, not by whether it is up. Reply with ONE line per box: name, lane, windows or pages finished in the last 30 minutes, queue depth. If a box finished nothing and has work queued, say STALLED and look into it. Nothing else. */30 * * * * cd ~/fleet && claude -p "$(cat prompts/monitor.md)" >> logs/monitor.log 2>&1 A headless session needs permission for the commands it will run. Allow exactly those and no more. If you use an idle rule like our 6 minutes, the check that enforces it has to run more often than the threshold.
Step 7. Add a second lane, then scale it.
Add an A100 80 GB box and set it up as a miner named miner1. It mines only; OCR stays on the A6000s. When OCR results are merged, cut the text into windows and queue the first 200 for miner1. Add a second A100 miner like the first and start it mining when it is set up. Step 8. Merge.
Read the new results in every from- folder. Run the checks on each packet. Merge what passes into the main work, list what failed and why, and do not silently drop anything. Step 9. Remove machines.
When OCR finishes: commit and push from each OCR box, merge the results, reassign anything still queued, then destroy all the OCR boxes. Report what you reassigned and where. The order inside that prompt is the whole point. Work leaves the box before the box goes. Our standing rule, which the orchestrator repeats back to us, is that nothing is destroyed with unsaved work on it.
Step 10. Ask for status in a fixed shape.
Hourly status: credit balance, burn rate this hour, windows mined, books OCR'd, boxes alive, boxes destroyed and why. Five lines at most. 5. Your own machines join the same way
A Mac. Our Mac (M4 Max, 128 GB) runs the same miner as the A100 boxes, under the name mac1, with Ollama serving the local models. It has the same worker script, the same bridge folders and the same checks. To the orchestrator it is one more pair of folders.
# Pull two models from different families: one mines, one checks. ollama pull <miner-model> ollama pull <checker-model> # Keep both loaded, one job at a time. Stability over speed. export OLLAMA_MAX_LOADED_MODELS=2 export OLLAMA_KEEP_ALIVE=-1 export OLLAMA_NUM_PARALLEL=1 ./worker.sh mac1 It is slower than an A100, but it is already paid for and already on.
A Windows laptop. Ours does one thing: bulk translation in Word, in batches that a person drives. Files go in through the bridge and translations come back through it, and scripts, not models, check what was imported (counts, structure, missing pieces). No model translates on the GPU boxes. A lane does not have to be a GPU or even be automatic; it only has to take its work from the bridge and return it there.
6. Several sessions, one memory
One session cannot hold a fleet in its head for days, and it does not need to.
- Scheduled sessions. The recurring checks are separate headless runs started by cron. Each begins knowing nothing.
- Handover. When a session grows long or stops, a new one takes over.
- The repo is the memory. A new session reads
HANDBOOK.mdfor the rules,DECISIONS.mdfor what was decided and why, and theto-andfrom-folders for the current state. If something matters, it is in a file in the bridge.
A prompt for the takeover:
You are taking over as orchestrator. Read HANDBOOK.md and DECISIONS.md in the bridge, then the last hour of commits. Tell me in ten lines what is running, what is queued, what is stalled, and what you will do first. For judgement calls we add a second opinion from a different model. Ours is Gemini, reached through a chat session, so the answer is not immediate:
If you are unsure whether a packet's link is right, ask Gemini. If nothing comes back in 15 minutes, decide yourself and log that you did. 7. Splitting and merging, with our real example
Splitting is what makes many machines useful. Each piece has to be small enough to finish, and independent enough that any box can take it.
- OCR is split by book part. Each part goes to one box.
- Mining is split into windows of 250 to 800 words. For each window a local model produces a packet: the entities it found (people, places, works, concepts), facts with the exact words from the window that support them, typed relationships (born in, died in, student of, authored), and a minimal "thin" node for anything the text names that the graph does not yet hold.
Merging is where quality is decided, so it has one owner, the orchestrator, and fixed checks:
- The quotation must exist, word for word, in the window. A script checks this. If the quotation is not there, the fact is dropped.
- A link to an existing node needs two matching features, never the name alone: the name plus a date, a place, a teacher or a work. Arabic names repeat across fourteen centuries.
- A second model from a different family reviews each packet.
- Content on our safety list is blocked outright.
Now the number. An outside check of an early mining pass scored it at 56%. The two-feature rule and the cross-check were added after that, and results improved once they landed, but we have no second figure we can show you, so we are not printing one. The graph this feeds is a draft-heavy working corpus and we label it that way. If you build this, get your output checked from outside the pipeline early. The pipeline itself will tell you it is doing well.
8. What we learned
Each of these is now a line in our handbook.
- Monitor output, not uptime. We once had three GPUs with green heartbeats and zero windows finished in 30 minutes. A machine being alive tells you nothing about whether it produced anything.
- An empty result is still a result. One OCR box finished a book with many blank pages and then waited forever, because our bookkeeping counted empty pages as not received.
- Recover without a person where you can. When an OCR box runs out of memory, the worker halves its batch and retries the part.
- One feeder, with a name and a lock file. Two feeders ran at once and double-assigned books.
- A worker that cannot pull must stop. One box kept working from an old copy of its queue after a stale lock file broke its pulls.
- Safety pauses trip per lane and say why. One bad batch of OCR tripped a global pause and idled lanes that were fine.
- Hand the model your inventory. We asked for books we did not have and got eight we already had, until we sent the full list.
- Alert early on money. At $10 an hour, credit drains quietly. We alert at $20, a number that still leaves time to act.
- Queue ahead. Keep queues two hours deep and prepare the next job before a box finishes.
- Say the reply format. Prompts that fix the format, the thresholds and the order of steps get answers you can act on.
9. What stays with you
- Money. Topping up credit is a person's decision every time.
- Publishing. The agent builds, checks and reports. It never deploys our website.
- Secrets. None in prompts, orders or results. Boxes get a key for one repository.
- The hard blocks. Some content is never processed, and those filters do not bend for deadlines.
Give the orchestrator the tedious, constant work, and keep the decisions that cost money or reach the public.
10. The smallest version, for a weekend
One OCR or processing box, one bigger box, one private repo, one monitor prompt on cron. Use any task that splits into pieces.
bridge/ HANDBOOK.md DECISIONS.md inventory.md # what you already have to-box1/ from-box1/ to-box2/ from-box2/ An order is a small file:
{ "job": "ocr", "book": "example-book", "parts": [3, 4], "out": "text/example-book/" } The worker loop:
#!/usr/bin/env bash # worker.sh: minimal worker loop for the bridge set -uo pipefail BOX="${1:?usage: worker.sh <box-name>}" cd /workspace/bridge mkdir -p "from-$BOX/failed" while true; do # A worker that cannot pull stops. The monitor sees that its pushes stopped. git pull --rebase --autostash origin main || { echo "pull failed on $BOX" >&2; exit 1; } NEXT=$(ls "to-$BOX"/*.json 2>/dev/null | head -n 1 || true) if [ -z "$NEXT" ]; then sleep 60; continue; fi NAME=$(basename "$NEXT" .json) if python3 run_job.py "$NEXT" > "from-$BOX/$NAME.out"; then git rm -q "$NEXT" # done: the order is consumed else git mv "$NEXT" "from-$BOX/failed/$NAME.json" # failed: set aside, not retried forever fi git add "from-$BOX" git commit -q -m "$BOX: $NAME" # Another box may push in the same second: rebase and try again. for i in 1 2 3; do git push -q origin main && break; git pull --rebase origin main; done done Then start with the prompts in section 4, in order. Rent one box, give it ten orders, watch the results arrive in from-box1/, and ask for a merge. When that works, ask for a second box.
Closing
None of this needs unusual tooling: a git repository, rented GPUs, local models, a worker loop, and an agent with written rules. The pattern fits any job where the work splits into pieces and the managing is what wears people out.
It is still an experiment. Boxes stall in new ways, the first quality score was 56%, and the graph it feeds is draft-heavy and labelled so. But on 5 December 2026 one Claude Code session kept a fleet of sixteen machines rented, fed, merged and reported for about $10 an hour, and the people spent the day on decisions.
Links: [repo] · [docs] · [site]



