A free guide by Marino Merlini (@marinoautomates)
Founder of Meet Blaine
The $20/Month AI App Stack Blueprint
Every tool, direct link, free tier limit, and wiring step to build and ship a live software app for around $20 a month.
Running a business? We set this up for you. Book a 30-min call
Part 1: The Coding & Deployment Pipeline ($20/mo)
Claude Code writes your application from plain English for $20 a month, while GitHub and Vercel store and host it on the internet for free. Every time you save a change to GitHub, Vercel automatically updates your live website.
Install Claude Code ($20/mo)
Sign up for Claude Pro at $20/mo on claude.ai, which includes access to Claude 3.5 Sonnet and the Claude Code CLI tool. Per Anthropic's Claude Code documentation, you can run Claude Code directly via your terminal CLI or inside the VS Code extension to write and fix code from plain English.
Create a Free GitHub Repository ($0/mo)
Open a free account on GitHub to store your source code and track changes. GitHub's free tier includes unlimited public and private repositories plus 2,000 CI/CD Action minutes per month.
Connect Vercel for Live Hosting ($0/mo)
Log into Vercel with your GitHub account and select your new repository. Vercel's Hobby tier provides free edge network hosting and automatic git push deployments, meaning your site updates live on the internet every time Claude Code pushes a commit.
Initialize a new Next.js project with TypeScript and Tailwind CSS in this directory. Set up a clean folder structure for an app that will use Supabase for the database and Clerk for user authentication. Then create an initial commit and push it to my connected GitHub repository.
Related guide: 8 Free Design Skills for Claude Code and Cursor
Part 2: The Backend Database & User Logins ($0/mo)
Supabase stores your customer data and Clerk handles user sign-ups and logins, both on their $0/month starter tiers. Pairing these two tools saves you from building authentication screens or managing database servers by hand.
Spin Up a Supabase Database ($0/mo)
Create a new project on Supabase to hold your application tables and files. On its website, Supabase's free tier includes a 500MB database, 1GB of file storage, and up to 2 active projects.
Add Clerk for Sign-Ups and Logins ($0/mo)
Create an application in Clerk and copy your API keys into your project's environment file. Per Clerk's pricing page, the free tier includes pre-built authentication components and supports up to 10,000 monthly active users at $0/mo.
Wire Clerk User IDs into Supabase
Ask Claude Code to connect Clerk's session token to your Supabase client. This ensures that when a user logs in through Clerk, they can only read and write their own rows inside your Supabase database.
Install the Clerk and Supabase client packages. Add Clerk's <SignIn /> and <UserButton /> components to the top navigation bar, and write a helper function that syncs the logged-in Clerk user ID to a 'users' table in Supabase.
Part 3: The AI Brain & Vector Memory (Pay-Per-Use + $0/mo)
The Anthropic API Console or OpenAI API Platform gives your app an AI brain with no monthly platform fee, while Pinecone stores long-term AI memory for free. You only pay pennies for the exact tokens your users consume.
Generate an LLM API Key ($0/mo base fee)
Create an account on either the Anthropic API Console or the OpenAI API Platform and generate a secret API key. Both platforms use pay-as-you-go pricing per million tokens with no monthly recurring subscription fee.
Create a Serverless Index in Pinecone ($0/mo)
Sign up for Pinecone to store vector embeddings if your app needs to search uploaded documents or remember past conversations. Per Pinecone's site, the Starter plan is $0/mo on serverless infrastructure.
Store Keys in Server Environment Variables
Put your API keys into a local .env.local file and into your Vercel project settings. Never put Anthropic API Console, OpenAI API Platform, or Pinecone keys inside front-end browser code where visitors can inspect them.
Create a secure server-side API route at /api/ai that takes a user's question, searches our Pinecone index for relevant context, sends the context and question to the LLM API using our environment variable key, and streams the answer back to the UI.
Related guide: The AI Token & Cost Cheat Sheet
Part 4: Transactional Emails & User Analytics ($0/mo)
Resend delivers up to 3,000 transactional emails a month for free, and PostHog tracks up to 1,000,000 analytics events a month for free. Together they let you message users and watch how people actually use your app from day one.
Connect Resend for App Emails ($0/mo)
Sign up for Resend to send welcome emails, password resets, and alerts from your app. Per Resend's pricing page, the free tier includes 3,000 emails per month (with a 100 emails per day cap) and supports up to 3 custom domains.
Install PostHog for Product Analytics ($0/mo)
Create a PostHog project and drop its tracking snippet into your app's root layout. Per PostHog's pricing page, the free tier gives you 1,000,000 analytics events and 5,000 session recordings monthly for $0/mo.
Integrate Resend to send a welcome email whenever a new user completes sign-up via Clerk, and add PostHog to our root layout so we automatically track page views and button clicks.
Part 5: Custom Domain & Customer Payments (~$12/yr + Pay-Per-Sale)
Cloudflare Registrar sells standard domains at wholesale cost (around $12 a year for a .com), and Stripe processes customer credit cards with no monthly fee. You only pay Stripe when a customer actually buys.
Buy Your Domain on Cloudflare Registrar (~$12/year)
Register your domain name through Cloudflare Registrar instead of a markup registrar. Per Cloudflare Registrar's product page, Cloudflare sells standard domains at zero wholesale markup, putting a .com domain at around $12/year.
Point Your Domain to Vercel ($0/mo)
Inside your Vercel project settings, add your new domain name and copy the DNS records into Cloudflare. Your app will now load on your custom domain with automatic SSL security.
Set Up Stripe Checkout (2.9% + 30¢ per sale)
Create a Stripe account, define your product price, and let Claude Code wire up a checkout session and webhook. Per Stripe's pricing page, the standard US rate is 2.9% + 30¢ per successful card transaction with a $0 monthly fee.
Create a Stripe Checkout session endpoint and a webhook route at /api/webhooks/stripe. When Stripe confirms a successful payment, update the user's status to 'pro' in our Supabase database.
Related guide: The Weekend Claude Builder Pack: 6 Complete AI Agent Blueprints
Mistakes to avoid
- Using your Claude Pro subscription instead of an API key inside your app code. Claude Pro ($20/mo) is for you to run Claude Code while building; if your live app needs an AI feature for users, connect the Anthropic API Console or OpenAI API Platform on pay-as-you-go pricing.
- Hitting Resend's 100 emails/day cap during a launch spike. Even though Resend gives you 3,000 free emails a month, the daily limit is 100 emails per day on the free tier.
- Putting secret API keys in front-end code. Always keep Supabase service role keys, Stripe secret keys, and LLM API keys inside server-side environment variables in Vercel.
- Staying on Vercel's Hobby tier after monetizing. Vercel's free Hobby tier is for personal and non-commercial testing; once you start taking real Stripe payments for a commercial SaaS, move to a commercial plan.
Questions people ask
Is the total monthly cost really around $20 a month?
Yes, your fixed monthly software subscription is $20/mo for Claude Pro (per claude.ai), because GitHub, Vercel, Supabase, Clerk, Pinecone, Resend, PostHog, and Stripe all have $0/mo starter tiers or pay-per-sale pricing. You will only pay ~ $12/year for a domain on Cloudflare Registrar and pennies for usage if your app calls the Anthropic API Console or OpenAI API Platform.
When will I have to start paying for the free-tier tools?
You only upgrade when your app gets real traction or commercial revenue. For example, Clerk's free tier covers at least 10,000 monthly active users, Supabase gives you 500MB of database space across 2 active projects, Resend covers 3,000 emails/month (up to 100/day), and PostHog includes 1,000,000 events/month.
Do I need to know how to code from scratch to use this stack?
No, you use Claude Code via the terminal CLI or VS Code extension to write the code, create the files, and fix errors from plain English prompts. You still need to create the accounts on each service and paste your API keys into your project settings.
Should I use the Anthropic API Console or the OpenAI API Platform inside my app?
Either works well, and both use pay-as-you-go pricing per million tokens with no monthly recurring fee. Pick whichever model performs best on the specific task your app does, and set a monthly spending cap in the dashboard.
Watch the video
Watch on Instagram
Want this built for you?
If you run an established 7, 8, or 9-figure company and want custom AI employees and internal tools built, plugged into your existing software, and supported by our team, Meet Blaine handles the entire implementation for you. Book a demo call at meetblaine.com and we will map out the highest-ROI workflows for your business.
- You walk us through your week. Where the hours go and what keeps falling through.
- We show you what to hand off first. Which jobs an AI employee can take over, and what stays with you.
- You leave with a clear next step. Whether or not we end up working together.
Calendar not loading? Open it in a new page
Book a 30-min call: api.leadconnectorhq.com