Hey r/Supabase,
I've seen a lot of posts about Clerk's pricing getting painful at scale, so I wrote a detailed migration guide.
The problem: Clerk charges ~$0.02/MAU after 10k users. At 25k users, you're paying $300-500/month just for auth.
The guide covers:
- Exporting users from Clerk (via dashboard + API)
- Setting up Supabase Auth with the same providers
- The password hash problem (Clerk uses bcrypt, Supabase doesn't import it directly)
- Migration script (TypeScript/Bun)
- Updating your Next.js frontend & middleware
- RLS policies for user data
Link: https://dev.to/depfixer/how-to-migrate-from-clerk-to-supabase-auth-save-200month-2j4p
---
I'm also building the switchkit CLI to automate this entire migration:
npx switchkit/cli migrate --from clerk --to supabase
Waitlist if interested: https://tally.so/r/LZP49j
Would love feedback on the guide. What did I miss? Anyone else gone through this migration?
A user shared a guide for migrating from Clerk to Supabase Auth due to Clerk's high pricing at scale. The guide includes steps for exporting users, setting up Supabase Auth, handling password hashes, and updating Next.js applications. The user also introduced a CLI tool to automate the migration process and is seeking feedback.
Thanks. The first 10 k active users are free with Clerk. That's a lot of users. In comparison, how much less expensive is Supabase in percentage?
This should give you a good idea on prices:
Disclaimer: (not maintained by me or Supabase or affiliated with us in any manner)
Thanks for sharing! That pricing comparison is really helpful for anyone evaluating the switch.