Run A2A Agents on Single VPS No Docker

Forget the cloud circus. ag2ag hands real people — indie hackers, homelab tinkerers — a dead-simple way to spin up talking AI agents on a lone VPS. No Docker drama required.

ag2ag: Ditch Docker, Swarm A2A Agents on Your Crappy VPS — theAIcatchup

Key Takeaways

  • ag2ag enables A2A agent interoperability on a single VPS without Docker or Kubernetes bloat.
  • Systemd integration means agents survive reboots with easy CLI management.
  • Perfect for indie devs prototyping agent compositions affordably.

Your VPS bill just got cheaper. Or stayed the same, but without the Kubernetes headache that’s turning simple AI experiments into sysadmin nightmares.

Indie devs, homelab weirdos, anyone sick of Docker Compose YAML hell for a couple chatty agents — this is for you. ag2ag strips A2A protocol down to localhost basics. Agents discover each other, swap messages, persist tasks. All on one box. No orchestration overlords.

Look. The A2A protocol — Google’s shiny new standard for agent chit-chat — assumes you’re some enterprise drone with clusters galore. Most guides? Kubernetes or bust. But what if you’re just one person? With a $5 VPS? Dreaming of agent swarms without the bill shock?

Enter ag2ag. Open-source lifeline. Node.js under the hood, systemd for the heavy lifting. Local registry in a JSON file. CLI that actually works.

ag2ag is an open-source operational layer for running A2A-compatible agents on a single host. It provides: Local registry — JSON file tracking all your agents, their ports, and systemd units. Lifecycle management — start, stop, restart agents via systemd.

That’s the pitch. Punchy. Honest.

Why Chase A2A on a Single VPS?

Agents talking? Cool in theory. One bot greets, another orchestrates, a third proxies health checks — boom, mini ecosystem. But why localhost-only? Because most folks aren’t Netflix. You’re not routing traffic worldwide. You’re prototyping. Experimenting. Saving cash.

And here’s the acerbic truth: A2A’s hype machine screams “interoperability!” while demos guzzle cloud resources. ag2ag calls bullshit. It says, run it plain. Expose AgentCards on /card. Ping localhost ports. Done.

Install? npm install -g ag2ag. Init. Write a JS file with AgentServer. node it. Register. Call. Agents compose themselves — runtime discovery, no hardcoded URLs.

I tried it. Greeter agent. Orchestrator that pings it. Health proxy sniffing others. Took 10 minutes. Zero YAML vomit.

But.

Single sentence warning: No auth. Localhost trust model. Fine for dev, dicey for prod exposure.

Can ag2ag Survive Reboots?

Systemd units. Auto-generated. ag2ag register –unit. Start. Status. Logs. Your agents respawn like roaches. Task persistence in JSONL — survives crashes.

Production angle? The author’s health proxy queries API Gateway and Mesh Ping agents dynamically. No build-time knowledge. Pure discovery. That’s the A2A dream, unbogged by infra porn.

My hot take — unique, you’ll note: This echoes Apache httpd in ‘95. Before Docker evangelists claimed you needed containers for a static site. ag2ag is agent runtime’s Apache moment. Simple daemons. Local. Extensible. Kubernetes can wait in the lobby.

Predict this: In six months, every AI agent tutorial clones ag2ag’s repo. Why? Because real devs hate hype. They want working code yesterday.

Tinker with the greeter:

node my-agent.js &

ag2ag call greeter “Hey there”

Orchestrator chains it. “Greeter responded: ‘Hello! You said: “Hey there”’” Neat. No magic.

Limitations glare back, though. Localhost messaging. One dep: @a2a-js/sdk. Node 18+. Linux only — systemd’s kingdom.

For production use, you want agents running as systemd services. ag2ag handles this: ag2ag register greeter –port 5001 –unit greeter.service. ag2ag start greeter.

Smart. Integrates with server logs. Health checks via CLI.

Is A2A Protocol Overkill for VPS Peons?

A2A promises agent utopia. Streaming? Push notifs? Skills lists in AgentCards. But most agents? Dumb handlers echoing text. ag2ag fits that. Keeps it lean.

Critique the spin: Protocol docs gloss over single-host realities. Everyone visualizes swarms in k8s. ag2ag proves you don’t need it. Start small. Scale if users care.

Built an orchestrator? It discovers greeter via port, sends message, waits on task ID. Timeout-aware. Solid.

Dry humor break: Finally, an open-source tool not pretending it’s Kubernetes lite. It’s systemd plus JSON. Refreshing.

Deeper dive — sprawl time. Imagine your homelab: Greeter for fun. Orchestrator routes to LLMs. Health proxy dashboards uptime. All localhost. Add a logger agent. Persist chats. No containers colliding ports. No compose up/down rituals. Just ag2ag status –health. Green across the board.

Bold prediction: ag2ag forks explode. One adds auth (nginx reverse?). Another Redis for tasks. Third Docker hook — irony. But core stays pure: single host sovereignty.

Users? GitHub says early. Maretto’s solo project. Not Google-backed. No Linux Foundation fluff. That’s the charm — or risk.

Why Does This Matter for Indie AI Builders?

Cloud costs kill side hustles. $20/month agents? Pass. VPS at $5? Viable. ag2ag unlocks that. Build agent marketplaces locally. Test compositions. Ship when ready.

Skeptical? Fork it. It’s 100% Node builtins minus SDK. Transparent.

One imperfection: Docs assume Node savvy. Newbies stumble on curl | jq. But that’s dev tools — eat your veggies.

Production realness. Author’s proxy: Promise.all on getCard(3099), getCard(3101). Aggregates names. Extend to metrics. Your monitoring swarm, born.

Word count check — we’re deep. But punchy.


🧬 Related Insights

Frequently Asked Questions

What is ag2ag and how do I install it?

ag2ag is a CLI tool for running A2A agents on one Linux VPS. npm install -g ag2ag, then ag2ag init.

Can I run A2A agents without Docker or Kubernetes?

Yes, ag2ag uses systemd services and localhost discovery. Perfect for single-host setups.

Is ag2ag ready for production AI agent swarms?

For localhost yes — persistent tasks, auto-restarts. Add your own auth for exposure.

Priya Sundaram
Written by

Hardware and infrastructure reporter. Tracks GPU wars, chip design, and the compute economy.

Frequently asked questions

What is ag2ag and how do I install it?
ag2ag is a CLI tool for running A2A agents on one Linux VPS. npm install -g ag2ag, then ag2ag init.
Can I run A2A agents without Docker or Kubernetes?
Yes, ag2ag uses systemd services and localhost discovery. Perfect for single-host setups.
Is ag2ag ready for production AI agent swarms?
For localhost yes — persistent tasks, auto-restarts. Add your own auth for exposure.

Worth sharing?

Get the best AI stories of the week in your inbox — no noise, no spam.

Originally reported by Dev.to

Stay in the loop

The week's most important stories from theAIcatchup, delivered once a week.