frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Corral – Auth and Stripe billing that AI coding agents can set up

https://github.com/llama-farm/corral
4•rgthelen•1h ago
Hey HN. I built Corral because every time I asked an AI coding agent to "add auth and payments," it hallucinated for an hour and produced broken code. Wrong imports, phantom endpoints, a login page wired to nothing.

The problem isn't the agent. It's that auth-to-billing-to-gating is genuinely hard to wire, and there's no machine-readable spec for how to do it.

Corral is an open-source CLI (MIT) that gives your agent a spec it can read (llms.txt), then scaffolds auth + Stripe billing into your existing project. It detects your framework (Express, Next.js, Hono, Fastify, and 13+ more), embeds into your existing server (doesn't create a new one), and generates working components: profile page, admin dashboard, plan gating, Stripe checkout, usage metering. One YAML config file controls everything.

The agent workflow is 9 commands. Every command supports --json. Errors include a "fix" field. Exit 0 means deploy-ready.

I hardened this across 10 framework/DB combos with blind agent tests: 3 AI models, 3 rounds each, then a 10-agent fleet. Found and fixed real edge cases like Express 4 vs 5 route patterns, Vite proxy ordering, and agents creating duplicate servers instead of embedding into existing ones.

To try it, paste this into any AI coding agent:

  Read: https://llama-farm.github.io/corral/llms.txt
  Add auth and Stripe billing to my app.
Built on Better Auth + Stripe. 18 CLI commands, 30+ templates.

GitHub: https://github.com/llama-farm/corral npm: npx create-corral init Docs: https://llama-farm.github.io/corral/

Comments

rgthelen•1h ago
It 100% runs locally, is easy to deploy, and it wires it right into your app - even cooler, if you have a JS backend, no extra server, if you have python, go, ruby, etc, it will have your agent create a tiny side-car so you don't need an extra container, etc.

Let me know what you think!

rachelradulo•1h ago
This validates something we keep seeing-the bottleneck for AI agents isn't intelligence, it's that tooling isn't yet built for how they actually work. Structured specs and parseable errors > docs written for humans. Really cool to see this ship.
rgthelen•42m ago
Thanks for following along since day 1!
rachelradulo•1h ago
How do agents handle the Stripe webhook setup? That's always been the gnarliest part for me manually.
rgthelen•43m ago
webhooks are the part where most agent-built auth falls apart. Here's how Corral handles it:

The server-express.ts template generates the webhook route with the raw body parser before express.json() (Stripe requires the raw body for signature verification — agents almost always get this wrong). The route handles checkout.session.completed, customer.subscription.updated, and customer.subscription.deleted events and auto-updates the user's plan in your database.

So when your agent runs corral init, the webhook endpoint is already in your server at /api/corral/webhook, with Stripe signature verification wired in. Your agent just needs to:

corral stripe sync — creates the products/prices in Stripe Set STRIPE_WEBHOOK_SECRET in .env For local dev: stripe listen --forward-to localhost:3000/api/corral/webhook That's it. The agent doesn't have to figure out raw body parsing, event routing, or idempotency — the template handles all of it. And since corral doctor checks for the webhook secret in your env, the agent gets told if it's missing.

The worst Stripe webhook bugs I found during testing were (1) express.json() parsing the body before the webhook route sees it, and (2) agents putting the webhook route after auth middleware that rejects unsigned requests. Both are baked into the template ordering now.

rachelradulo•35m ago
ah makes sense, excited to hook it up to a project
mhamann•1h ago
Super interesting. Auth and Payments seem like things you don't want to or can't build yourself. (I'm waiting for the day when I can just use BTC or UDSC for everything.)

Have you thought about supporting additional auth providers? Or providing a way for other auth services to add support for their products?

rgthelen•44m ago
Thanks! On auth providers — Corral already supports 9 OAuth providers out of the box (Google, GitHub, Apple, Discord, Microsoft, Twitter, Facebook, GitLab, LinkedIn) plus email/password, magic links, and email OTP. Adding a new one is one command:

corral add provider github Under the hood, Corral is built on Better Auth, which has a plugin architecture. Any Better Auth plugin works with Corral — so if someone builds a provider plugin for Better Auth, it automatically works here too. We're not reinventing auth crypto, just making it agent-installable.

On the crypto payments front — that's actually a great use case for Corral's plugin model. The billing layer is modular (Stripe today, but the gating/metering layer doesn't care where the payment event comes from). A BTC/USDC payment plugin that fires the same "user upgraded to plan X" event would slot right in. Interesting idea.

bobbyradford•50m ago
That is pretty cool. Simple and useful.

I Use Obsidian

https://stephango.com/vault
1•hisamafahri•1m ago•0 comments

Ask HN: Are compiler errors for unused code necessary?

1•qwool•2m ago•0 comments

Memories Family

https://familymemories.video
1•tareq_•3m ago•0 comments

Book a Meeting with a YC Founder

https://y-cal.vercel.app/
1•abrarmurad416•7m ago•0 comments

Ask HN: Can AI replace apps, or will economics keep the app market alive?

1•maccraft•7m ago•0 comments

Show HN: Preference-aware routing for OpenClaw via Plano

https://github.com/katanemo/plano/tree/main/demos/llm_routing/openclaw_routing
1•sparacha•11m ago•0 comments

The Servo project and its impact on the web platform ecosystem

https://servo.org/slides/2026-02-fosdem-servo-web-platform/
1•mmphosis•11m ago•0 comments

Mira: An agent that never forgets anything. Persistent, shared memory

https://www.co-span.com/
2•dvt•13m ago•0 comments

Python HTTP server using Erlang and BEAM

https://hornbeam.dev/
1•polyrand•13m ago•0 comments

Dual nationals face scramble for UK passports as new rules come into force

https://www.bbc.com/news/articles/cx2d9yk2kpjo
2•tartoran•14m ago•0 comments

GraphQLite: SQLite graph extension supporting Cypher

https://colliery-io.github.io/graphqlite/latest/
2•dude01•15m ago•0 comments

Show HN: AccessLint – Static accessibility analysis for iOS/Swift

https://accesslint.app
1•synctek•17m ago•0 comments

The Problem with Left Nationalism

https://jacobin.com/2026/01/left-nationalism-universalism-populism-melenchon/
1•PaulHoule•17m ago•1 comments

We're Measuring Data Center Sustainability Wrong

https://spectrum.ieee.org/data-center-sustainability-metrics
1•defrost•19m ago•0 comments

Ask HN: How can a non-technical founder prove they're more than an "idea guy"?

1•timsein•20m ago•4 comments

I swear the UFO is coming any minute

https://www.experimental-history.com/p/i-swear-the-ufo-is-coming-any-minute
3•Ariarule•21m ago•0 comments

What Neptune.ai Got Right (and How to Keep It)

https://www.trainy.ai/blog/what-neptune-got-right-and-how-to-keep-it
2•roanakb•22m ago•0 comments

Show HN: Turn Claude Code or Codex into proactive, autonomous 24/7 AI agents

https://github.com/suitedaces/dorabot
2•alternateman•24m ago•0 comments

The Case for Duolingo

https://josephblumenfeld.substack.com/p/the-case-for-duolingo
1•AzariaK•24m ago•1 comments

The 24-Day Notice That Was a 7-Month Signal

https://medium.com/@platformpolicy/the-24-day-notice-that-was-actually-a-7-month-signal-55c4b3726fce
1•ppolicyco•24m ago•1 comments

Space Station returns to a full crew complement after a month

https://arstechnica.com/space/2026/02/space-station-returns-to-a-full-crew-complement-after-a-month/
1•rbanffy•25m ago•0 comments

Can Opus 4.6 Do Category Theory in Lean?

https://www.stephendiehl.com/posts/lean-opus-blog/
1•macleginn•26m ago•0 comments

Bankruptsy

https://lightward.com/bankruptsy
2•isaacbowen•26m ago•0 comments

Architecture of Consoles

https://www.copetti.org/writings/consoles/
2•lopespm•29m ago•0 comments

Updated Thoughts on AI Risk

https://www.noahpinion.blog/p/updated-thoughts-on-ai-risk
1•paulpauper•29m ago•0 comments

Show HN: ChessGrammar – API that detects tactical patterns in chess positions

1•stevejvv•29m ago•0 comments

AI Eats the World, and Most of Its Flash Storage

https://www.nextplatform.com/2026/02/17/ai-eats-the-world-and-most-of-its-flash-storage/
3•rbanffy•32m ago•0 comments

Diagnosing a PET Video Fault from One Photograph

http://blog.tynemouthsoftware.co.uk/2026/02/diagnosing-a-pet-video-fault-from-one-photo.html
1•WaluigiBSOD•33m ago•0 comments

Show HN: FolioDoc – I built a tool to stop chasing clients for documents

3•Foliodoc•35m ago•0 comments

Phishing Detection NLP Heuristic: Prototype Achieves 60% Detection Rate

https://horeszko.ca/blog/phishing-detection.html
1•horeszko•36m ago•0 comments