Crypto BYOK Boilerplate
Securely manage user API keys with Bring Your Own Key (BYOK) architecture. Launch your AI SaaS faster with pre-configured Supabase Auth, custom email templates, and production-ready encryption.
Why You Need This Boilerplate?
🛡️ Mitigate API Cost Overruns
BYOK architecture allows users to supply their own keys for OpenAI, Anthropic, and other services. This shifts the API usage cost directly to the user, eliminating your centralized billing liability as your SaaS scales.
🔒 Next.js Server Actions & Non-Plaintext Storage
User API keys are never stored in plaintext. By executing the core decryption and API call logic strictly inside Next.js Server Actions, credentials are never exposed to the client-side, heavily elevating your application's security posture.
⚡ Turnkey Authentication & Email Customization
Production-ready integration for Supabase Auth supporting both Google Sign-In and Magic Links. It includes pre-styled, beautiful HTML email templates for signups and logins, saving you days of tedious design and integration effort.
⏱️ Ship Your SaaS in Hours
Skip the complex cryptographic setup, database RLS architecture, and routing headaches. Focus immediately on building your core AI features and start generating revenue on day one.
Choose Your Blueprint
Secure your license on Polar.sh and fast-track your launch.
Single API Key Version
Perfect for standard SaaS handling a single primary key per user.
Multi API Key Version
Ideal for advanced SaaS allowing users to configure multiple keys (e.g., OpenAI + Claude).
Full Bundle Pack
Get complete access to both Single-Key and Multi-Key architectures with all future updates.