Skip to content
Diego Alducin
Go back

My $25/Month AI Development Server (GCP Setup)

I wanted a development server that:

  1. Runs 24/7
  2. Costs less than my coffee habit
  3. I can access from literally anywhere (including my phone)

Turns out, GCP’s e2-medium VM is perfect for this. $25/month, and I can SSH in from the bus to check on my AI workers. Living in the future is weird.

The Specs

Nothing fancy:

The important part: it’s a Standard VM, not a Spot instance. Spot instances are cheaper but Google can yeet them at any moment. I learned this the hard way when my VM disappeared mid-task.

The Mistake I Made

I initially set up a Spot VM to save money. Bad idea.

Spot VMs can be preempted (killed) whenever Google needs the resources. Great for batch processing. Terrible for a development server where you have tmux sessions you’d like to keep alive.

Migrating from Spot to Standard required creating a whole new VM from a disk snapshot. Fun afternoon.

SSH From Anywhere

The killer feature is phone access. I use Termius on Android, and I can:

  1. SSH into the server
  2. Attach to tmux sessions
  3. Check on my AI workers
  4. Look like a hacker at coffee shops

The tmux sessions persist even when I disconnect. So I can start something on my laptop, close the lid, and pick it up on my phone later. The session just… keeps existing.

Project Structure

Every project follows the same pattern:

~/projects/myproject/
├── PRD.md              # Product requirements
├── docs/               # roadmap.md, architecture.md
├── repo/               # Git repository (actual code)
└── worker/             # AI worker communication files

The worker/ folder is where the magic happens — my Claude Code workers read tasks and write progress reports there. But that’s another post.

The Essentials

Things I installed immediately:

Cost Monitoring

GCP will happily charge you for things you forgot you spun up. I set up a daily email that tells me what I’m spending:

# Runs every morning at 8am
0 8 * * * ~/cost-monitor.sh

The script uses gcloud billing commands to fetch costs and emails me a summary. Peace of mind for $0/month extra.

The Docs

I have documentation for all of this. Server setup, phone access, security stuff, the whole thing.

It’s in a private repo. Why private? Because I documented my exact firewall rules, SSH config, and folder structure. Putting that on public GitHub feels like leaving my house keys under the doormat and tweeting the address.

Future me will thank present me for this paranoia.

Worth It?

For $25/month, I get:

The ROI calculation is left as an exercise for the reader. But hey, at least I’m not paying for a coworking space.


Share this post on:

Previous Post
I Made Claude Code Work While I Sleep (Autonomous AI Workers)
Next Post
Teaching Neural Networks Quantum Physics (So They Can Do My Homework)