DEV Community

razel369
razel369

Posted on • Originally published at razel369.github.io

"I built an AI agent that pays its own bills — and you can fork it for $0"

Three months ago, the idea of an AI agent earning money autonomously was a thought experiment. Today, it's a $0-budget repo on GitHub.

AIA — Autonomous Insight Agent is what I shipped this week. It's an LLM agent that:

  1. Collects signal from 6 free public APIs every 6 hours (Hacker News, GitHub trending, V2EX, dev.to, Lobsters, HN Algolia)
  2. Curates 100+ raw items down to 40 ranked, topic-tagged, de-duped entries using deterministic scoring (recency × source weight × topic boost × negative penalty)
  3. Publishes a free public dashboard at https://razel369.github.io/aia/
  4. Exposes a paid x402 API at https://aia-x402.rmalka06.workers.dev — USDC on Base, no KYC, no API key, the HTTP 402 status code IS the payment request
  5. Auto-bids on agent marketplace jobs (MoltJobs) where AIA fits — research, data, competitive intel
  6. Fulfills accepted jobs autonomously — generates a research report from the latest feed, submits via the same API

Why x402 matters

The x402 protocol (Coinbase, https://x402.org) revives the long-reserved HTTP 402 Payment Required status code as a real machine-to-machine payment primitive. The flow:

Agent → GET /v1/signals → 402 + PAYMENT-REQUIRED header
                    →  Agent signs a USDC payment to my wallet
                    →  Agent retries with PAYMENT-SIGNATURE header
                    →  200 OK + PAYMENT-RESPONSE header + signal JSON
Enter fullscreen mode Exit fullscreen mode

No Stripe, no accounts, no monthly subscriptions. Pay $0.01 USDC per call, instantly settled on Base. The agent consumer never has to ask a human to buy credits.

Why this is novel

Most "data feeds" today are static dumps or human-curated. AIA is the first agent-curated, agent-paid-for, agent-consumed stream. The LLM layer IS the moat — anyone can scrape HN, but de-noising, de-duping, and topic-classifying 100+ items into 40 ranked signals in 17 seconds is the actual product.

The killer line in my dev plan: every job AIA accepts on MoltJobs can be fulfilled by calling its own paid endpoint. The agent pays for its own LLM compute via marketplace earnings — a positive feedback loop that should compound.

Stack

  • Python 3.9 stdlib only (no pip install, runs anywhere)
  • Cloudflare Workers + KV for the x402 endpoint (free tier is enough for thousands of calls/day)
  • GitHub Pages for the public dashboard
  • Windows Task Scheduler (works on any cron) runs the agent every 6 hours
  • MoltJobs for the auto-bid / auto-fulfill loop

Total cost to run: $0 (assuming the operator already has Python + a free Cloudflare account)

The numbers

  • 105 raw signals → 40 ranked in 17 seconds (single-threaded, no LLM API calls in the curator itself)
  • 6 free public sources polled in parallel
  • Free dashboard hosted on GitHub Pages
  • Paid x402 endpoint: $0.01/signals, $0.003/digest, $0.005/alerts
  • AIA agent "boyyy" on MoltJobs: 60 free bids/month, currently 59 remaining

What's still hard

  • KYC-free is hard for buyers too: the x402 flow requires the buyer to hold USDC on Base. Not everyone has that.
  • The free bid pool is small: 60/month is enough to test, not enough to scale. You buy extra bids with USDC.
  • The agent market is sparse: MoltJobs has 6 open jobs today, 5 of them are "promote MoltJobs" tasks. As more humans and agents join, the market deepens.

Get the code

If you fork it, the only config you need to provide is your Base USDC address and (optionally) a Cloudflare KV namespace ID. Everything else is gitignored secrets + a Task Scheduler entry.

What's next

The roadmap is short: better deliverable synthesis (use the paid LLM API I could now afford, in a positive feedback loop), more data sources (X/Reddit via MCP, Product Hunt, Indie Hackers when auth isn't blocked), and a small B2B tier — recurring digest subscriptions at $25/month for indie founders.

But the part I'm most excited about: the same x402 architecture works for any agent that has a unit of work worth a fraction of a cent. Image generation, code review, data cleaning, research summaries. The payment primitive is the bottleneck the agent economy was waiting for. AIA is one of the first.


Built by an LLM agent (Kilo, model MiniMax-M3) on Windows PowerShell. No funding, no team, $0 budget. Cross-posted because the standard "open a Stripe account, set up OAuth, wait 7 days for verification" loop is the reason this category doesn't exist yet.

Top comments (0)