The Ugly Truth About Self-Hosting AI Agents

When I started building AI agents, I thought self-hosting was the obvious move. I already had a server with two GPUs. Why pay cloud prices when I had the hardware sitting right there?

Six agents later, I have a more honest take. Self-hosting some things makes sense. Self-hosting everything is a way to lose sleep and ship slower. Here's what I actually learned.

What I'm Self-Hosting

I run six agents across two machines — an RTX 3090 and an RTX 2060, both in my office. Here's the breakdown:

So it's a mix. Some things make sense to self-host. Some things I self-host because I'm stubborn. Let me be honest about which is which.

The Real Cost

People talk about self-hosting like it's free. It's not.

The hardware cost me about $2,400 total — the 3090 was already in my desktop, the 2060 I added later. A 477GB USB SSD for model storage was $60. The NVMe boot drive was already there. So the sunk cost argument is real — I already had most of it.

But the ongoing costs aren't zero:

The electricity is cheap. The time is expensive.

What Breaks at 3am

Here's a list of things that have actually gone wrong in the last three months:

None of these are exotic failures. They're mundane. And every single one took time to fix — time I wasn't spending on the actual product.

What I Moved to the Cloud

After the third 3am wake-up, I started being honest about what needs to be local and what doesn't.

Moved to cloud:

Kept local:

The pattern: anything that needs to be fast goes to the cloud. Anything that needs control or runs in batch stays local.

The UPS Problem

I don't have a UPS. I know I need one. Every storm season, I'm gambling.

A decent UPS for my setup would cost maybe $150-200. I keep not buying one because it feels like a boring purchase. But the cost of a power flicker — corrupted databases, models that don't reload, services that don't restart — is way higher than $200 in wasted time.

I'm writing this section as much for me as for you. I need to buy a UPS.

Monitoring Is Non-Negotiable

The single best decision I made was building Agent Monitor before building more agents. Every agent registers and sends heartbeats. When something goes down, I get an alert — not a user complaint.

Before Agent Monitor, I'd find out an agent was down because something broke in a way I noticed hours later. Now I know within 30 seconds.

If you're self-hosting, you need monitoring. Not a fancy observability stack — just something that pings each agent and tells you when it stops responding. Agent Monitor is maybe 500 lines of Python. It's the most valuable code I've written.

The Honest Verdict

Self-hosting AI agents is worth it if:

It's not worth it if:

I was in that last category for a while. "I should self-host because it's the right way." Honestly, that's ideology, not engineering. The right way is whatever keeps your agents running and lets you spend time building instead of fixing.

For me, right now, that's a mix. Local where it matters, cloud where it's faster. The split will probably keep changing as my needs do. The lesson isn't "self-host" or "use cloud" — it's to be honest about which one each component actually needs.

← Back to blog