Back to browse
GitHub Repository

🐴 Auth + Billing + Gating in one YAML file. Embedded library, not a service.

13 starsTypeScript

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

by rgthelen·Feb 17, 2026·5 points·9 comments

AI Analysis

●●●BangerBig BrainShip ItSolve My Problem

Gives AI agents a spec to read instead of hallucinating auth+billing code.

Strengths
  • Detects 13+ frameworks and embeds into existing servers without creating new services or Docker overhead.
  • Agent workflow JSON output and "fix" field in errors means Claude/GPT can iterate autonomously without human debugging.
  • One YAML config controls auth, plans, Stripe webhooks, feature gating, and usage metering—no scattered config files.
Weaknesses
  • Early-stage project (3 stars, minimal GitHub activity) raises durability questions for production billing integrations.
  • YAML-based approach may struggle with complex multi-tenant or non-standard billing models beyond flat tiers.
Target Audience

Full-stack developers using AI coding agents (Claude Code, Cursor, etc.)

Similar To

Clerk · Auth0 · Supabase

Post Description

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/

Similar Projects

Developer Tools●●Solid

Meto – Methodology backbone for AI agentic coding

Opinionated scaffolding for Claude Code projects with Agent Teams, but competes with create-react-app and similar boilerplate generators.

Ship ItNiche Gem
ilom
203mo ago