Home server, VPS or cloud VM: where to keep your coding agent
Jordan Fulghum's 2026 is the Year of Self-hosting argued that coding agents have made running your own server easy. He put Claude Code on a Beelink mini PC that cost him about $379, asked it for the services he wanted, and ended up with 14 containers using under 10% of the CPU.
The same choice comes up for the agent itself. It needs a computer that stays on while it works, and you can keep one at home, rent one by the month or rent one by the hour. Each is the right answer for someone. Here is what each costs for the same work, what breaks, and what the agent can reach.
What an agent's computer needs
- It stays on while the agent works, with your laptop shut.
- You can reach it from your laptop and your phone, wherever you are.
- It has room for installs, test runs and a few services at once: here, about 4 vCPU and 8 GB.
- It keeps the agent away from what matters. An agent with a shell can reach whatever its computer can reach.
A computer at home
A Mac mini or a mini PC is cheap to run and gives you a lot for the money. Apple lists the current Mac mini, with the M6 chip and 16 GB, at 4 W idle and 70 W at most, and it starts at $899 on Apple's US store. Fulghum reaches his box over Tailscale, and Ryan Bergamini's doom-coding guide does the same from a phone, with any computer left running at home.
You also become its operations team. Three things stop a home computer answering:
- Sleep. On a Mac, turn on "Prevent automatic sleeping when the display is off" in Energy settings, or it can sleep once the display does. Bergamini found that a closed laptop plugged into a monitor dropped off Tailscale after about ten minutes, with sleep turned off.
- Power cuts. The same settings can start a Mac again after a power failure, but the agent's session comes back only if something starts it. Fulghum left an earlier setup, VMs on a Mac, partly because it got complicated whenever the Mac rebooted.
- Your internet. When the home connection drops, so does the agent's link to the model.
The agent also lives on your home network, next to your NAS, your laptop and anything else that answers there. rsgm's homelab AI dev platform shows a careful version: the agent gets a VM that can reach the internet and his Git server but none of his services, and because "the blast radius is small", he lets it have root.
A home computer is the better choice when you already own one, when you want the most memory for your money, or when it would run all day anyway.
A monthly VPS
A VPS is a fixed size for a fixed price, on all the time. Hetzner's CPX32 (4 vCPU, 8 GB, 160 GB disk) is €35.99 a month in Germany or Finland, before VAT. That's after Hetzner's price adjustment of 15 June 2026, which raised it for new orders from €13.99 to €35.49 a month, not counting the IPv4 address. DigitalOcean's Basic droplet with 4 vCPU and 8 GiB is $48 a month.
Both bill a server whether it's running or not. Hetzner bills until you delete the server, and DigitalOcean's docs say a powered-off droplet is still billable. With either, stopping the server overnight saves nothing; deleting it does, and takes the disk with it.
exe.dev puts a twist on the monthly model. Its Personal plan reserves a pool of capacity that up to 50 VMs share: 2 vCPU and 4 GiB for $15 a month, or 4 vCPU and 8 GiB for $35. Its pools page says you pay for a pool while it exists, full or empty.
A VPS suits an agent that works most of the day, every day. The bill is fixed and nothing sits in your house, but you still patch it, firewall it and pick its size.
A cloud VM billed by the hour
The third option charges only while the machine runs. A shedix S (2 vCPU, 4 GB) is $0.06 an hour, and an M (4 vCPU, 8 GB) is $0.16. A machine sleeps after an hour unused and keeps its disk, with no hourly charge while it's stopped; disk beyond what its size includes is $0.10 per GB a month. A new machine is ready in about 60 to 110 seconds, and a stopped one starts again in under a minute.
What breaks is the other side of sleep. Running programs end when a machine sleeps, and an agent waiting for your answer doesn't count as use, so for long unattended work you turn on Keep awake. Machines run in one region, Iowa. shedix is in a private beta and charges nothing yet, so these are its published rates.
The bill at 4 hours a day, 8 hours a day and always on
Four hours on 22 workdays is 88 hours a month, eight hours is 176, and always on is 730 (24 × 365 ÷ 12). Prices as of 2026-11-02, before tax:
| Option | 4 hours a day | 8 hours a day | Always on |
|---|---|---|---|
| Mac mini, bought for it | $26.56 | $27.61 | $34.25 |
| Hetzner CPX32 | €35.99 | €35.99 | €35.99 |
| DigitalOcean, 4 vCPU, 8 GiB | $48.00 | $48.00 | $48.00 |
| exe.dev pool, 4 vCPU, 8 GiB | $35.00 | $35.00 | $35.00 |
| shedix S, 2 vCPU, 4 GB | $5.28 | $10.56 | $43.80 |
| shedix M, 4 vCPU, 8 GB | $14.08 | $28.16 | $116.80 |
The Mac mini row spreads $899 over three years, $24.97 a month, and adds power at the U.S. average residential price of 18.16 cents per kWh in August 2026: 70 W for the hours it works and 4 W for the rest. That assumes full load whenever it works, so treat it as the most power will cost. A computer you already own costs only its power, from $0.53 a month idle to $9.28 flat out.
At 4 hours a day, the hourly M is the cheapest way to get 4 vCPU and 8 GB. At 8 hours a day, it's level with the Mac mini, which has twice the memory. Always on, the M costs two to three and a half times as much as the monthly options.
What the agent can reach
- At home, the agent shares your network. Unless you give it a network or VM of its own, as rsgm did, it can reach every device there that answers.
- On a VPS, it reaches what you put on the server and whatever you connect it to. Join the server to your tailnet and the agent is on your network again, as far as your access rules allow.
- On shedix, each machine is its own VM, on a network where machines can't reach each other, even in the same account. SSH comes in with keys only, and a machine holds no cloud keys of ours for an agent to find.
All three normally leave outbound internet open, so anything the agent can read can leave. Put only what the task needs on its computer.
Which to pick
- A computer at home if you own one, want lots of memory for little money and don't mind looking after it. Give the agent its own network or VM.
- A VPS or a pool if the agent works most of the day, every day, and you want a fixed bill.
- An hourly VM if the agent works in bursts, or you want a fresh machine for each task.
For sandboxes and devboxes priced hour for hour, see what a coding agent's computer costs. Every shedix size is on the pricing page.