The archive · Developer & Business Tools · Product decision · 2024–2025
Better Auth: Ethiopian solo dev's open-source auth library raises $5M from Peak XV, YC
Solo-built open-source auth framework keeps user data in developers' own databases; 150k+ weekly downloads, $5M seed from Peak XV, YC
Better Auth
What the business is
Better Auth is an open-source TypeScript authentication framework developers embed on the back end, keeping sign-ins, passwords and user data in their own database, with orgs, teams and roles built in and plug-ins to scale.
How it started
Bereket Engida, a self-taught programmer in Ethiopia, started coding at 18 after a friend refused to help him build an e-commerce search app. Through remote jobs and a web-analytics product he kept hitting the same pain: every SaaS app needs sign-in, teams, roles and permissions, but Auth0, Firebase and NextAuth were too limited, stored user data externally, and got expensive at scale. When he needed an organization feature none of them offered, he built it from scratch in about two weeks — then scrapped that project to build a better way.
What happened
Working mostly from his bedroom in Ethiopia over six months, Engida built the TypeScript framework that became Better Auth and posted it to GitHub in September 2024. Adoption followed quickly: 150,000+ weekly downloads, 15,000+ GitHub stars and 6,000+ Discord members. Better Auth graduated YC's spring 2025 batch and raised about $5M in seed funding from Peak XV (its first direct investment in an African founder), Y Combinator, P1 Ventures and Chapter One. Peak XV said adoption was strong among AI startups needing custom flows tied to proprietary APIs, secure token handling and low cost at scale.
No ending yet — it is still running.
Background
Better Auth is an open-source TypeScript authentication framework built by Bereket Engida, a self-taught programmer from Ethiopia. Unlike hosted services such as Auth0, Firebase or NextAuth, it is a library developers embed on the back end, so user data stays in their own database; orgs, teams, roles and advanced features are meant to be added in two or three lines of code, scaling through plug-ins.
Engida's bet was that the managed-auth model itself was wrong for a large share of developers: existing tools stored user data externally, limited customization and grew expensive at scale, and every SaaS app still had to re-build common cases like organizations and permissions. When he needed an org feature no provider offered, he built it in two weeks, then spent six months in his bedroom in Ethiopia writing the framework that would become Better Auth, posting it to GitHub in September 2024.
The bet looked right in practice: by mid-2025 Better Auth claimed 150,000+ weekly downloads, 15,000+ GitHub stars and 6,000+ Discord members, with early AI startups adopting it for custom authentication flows around proprietary APIs. It graduated YC's spring 2025 batch and raised about $5M in seed funding from Peak XV, Y Combinator, P1 Ventures and Chapter One — Peak XV's first direct investment in an African founder.
As of the 2025-06-25 TechCrunch report the core was free; the roadmap was a paid enterprise infrastructure layered on the open-source base, optional cloud add-ons for those who did not want to self-host, and a small team for maintenance, documentation and enterprise support. Engida was still writing most of the code himself.
What has to be true
- The bet inverted the hosted-auth pitch: instead of outsourcing auth, developers keep user data in their own database, which privacy-conscious teams and AI startups explicitly wanted.
- Traction came before capital — 150k+ weekly downloads and 15k+ GitHub stars made the $5M seed an obvious follow-on rather than a leap of faith.
- A solo Ethiopian founder building a global developer-infrastructure tool proved the founder-market priors wrong, and Peak XV's first African-founder investment carried symbolic weight.
- The wedge was precise: orgs, roles and permissions in a few lines of code solved the exact common case Auth0, Firebase and NextAuth handled rigidly or not at all.
What can be applied
A solo developer can beat entrenched managed vendors by handing users back ownership of their data and letting open-source distribution do the selling.
Aftermath
As of 2025-06-25, Better Auth was live and free, with 150,000+ weekly downloads, 15,000+ GitHub stars and a 6,000+ member Discord; Engida planned a paid enterprise layer plus cloud add-ons on top of the open-source core and was hiring a small team for codebase maintenance, documentation and enterprise support. It was the third Ethiopian startup to pass through Y Combinator, after drone-health platform Avion and food delivery startup BeU Delivery.
Sources
- Better Auth, an authentication tool by a self-taught Ethiopian dev, raises $5M from Peak XV, YC
- Better Auth, by a self-taught Ethiopian dev, raises $5M from Peak XV, YC
spotted an error? The archive wants to know.
Your turn
You just read one. Describe what you are building, and see who is betting on the same thing.
Free account · 3 free questions · no card