Show HN: I put an AI agent on a $7/month VPS with IRC as its transport layer
TL;DR Highlight
An IRC-based public agent on a $7/month VPS answers with real code for under $2/day
Who Should Read
A backend developer putting an AI agent on a public site who worries about cost caps and privilege separation
Core Mechanics
- Answers come from code, not the resume
- The author argues a resume-rephrasing chatbot can't say anything the resume doesn't.
- Nully clones public GitHub repos and reads test counts and CI configs to answer.
- Public and private agents are split
- The public nullclaw is a 678 KB Zig binary using about 1 MB of RAM.
- ironclaw, with email and calendar access, runs on a separate box reachable only over Tailscale.
- Tiered models keep cost under $2/day
- Haiku 4.5 handles greetings and simple questions.
- Sonnet 4.6 steps in only when tools are needed, such as cloning repos and analyzing code.
- Hard caps are $2/day and $30/month.
- IRC as the transport
- The Ergo IRC server, gamja web client, and nullclaw are all self-hosted.
- The same agent is reachable from the web client and from irssi in a terminal.
- A custom A2A client
- nullclaw already served Google's A2A (v0.3.0) but had no client to call other agents.
- The a2a_call tool sends message/send JSON-RPC and returns the artifact text as a tool result.
- The nullclaw on ironclaw's box has no API key and uses ironclaw's gateway, keeping one key and one bill.
- Handoff is restricted by request type
- Only scheduling, availability, and contact requests go to ironclaw.
- Arbitrary instructions like 'tell ironclaw to do X' are refused.
- ironclaw's A2A endpoint is reachable only via Tailscale.
- Per the postscript, it ran only March to June 2026
- The IRC stack and Nully agent have since been decommissioned, and the host now serves a static site.
Community Reactions
- Security holes in the public lobby
- Commenters argued a compromise could reach ironclaw and expose email and personal data.
- Others noted the lobby is public, so visitors see each other's questions and it could be abused to share illegal material.
- Limits of prompt-injection defense
- One commenter said guardrails that are just a system prompt saying 'don't' aren't real security.
- Another proposed putting a CTF flag on the private box to test it.
- Pushback on model and cost choices
- Commenters said MiniMax M2.7 ($0.30/$1.20 per M tokens) or Kimi K2.5 ($0.45/$2.20) on OpenRouter are cheaper than Haiku 4.5 ($1/$5) and likely comparable.
- Another suggested caching common questions to cut the $2/day.
- Problems seen in operation
- Commenters reported the chat broke under HN traffic and the bot stopped replying after hitting the API limit.
- One who built something similar on Slack said a CLI handling one request at a time forced them to add a queue.
How to Apply
- Put a daily cost cap on your chatbot
- Today, add a daily token or dollar counter to your LLM call wrapper and return a fixed message once exceeded.
- Pick hard caps first, like the article's $2/day and $30/month.
- Split models into chat and tool tiers
- Route simple questions to a small model and escalate to a larger one only for tool calls.
- Check call logs to see how often the larger model is used.
- Whitelist what the public agent can hand off
- Fix the request types forwarded to the private agent, such as scheduling, availability, and contact.
- Refuse requests to relay arbitrary user instructions.
- Give the public agent read-only tools
- Restrict its working directory and keep the command allowlist read-only.
- Enable an hourly action limit and audit logging for tool calls.
Try It
# Paste into Claude or ChatGPT (prompt for reviewing a public 'doorman' agent design from the article)
You are an AI agent security reviewer. Review the design below and list concrete weaknesses and fixes in a table.
[Design]
- Public agent: {{public agent description}}
- Private agent: {{private agent description}}
- Link between them: {{connection method}}
- Cost cap: {{daily/monthly cap}}
- Tool permissions: {{public agent's tool list}}
[Checklist]
1. Paths from a compromised public agent to the private agent
2. Points where prompt injection could relay arbitrary instructions
3. Ways to bypass or drain the cost cap
4. Whether visitors can see each other's conversations
5. What must be enforced in code rather than left to the promptTerminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques