Skip to main content

Starter Kit

Complete Boilerplate for AI Applications

A complete agentic coding boilerplate with authentication, database, AI integration, and modern tooling for building AI-powered applications

Video Tutorial

Watch the complete walkthrough of this agentic coding boilerplate:

Authentication

Better Auth with email & password (OAuth optional)

Database

Drizzle ORM with PostgreSQL setup

AI Ready

Vercel AI SDK with OpenRouter integration

UI Components

shadcn/ui with Tailwind CSS

Setup checklist

2/6 completed

  • Environment variables
    Requires POSTGRES_URL (auto-set by docker compose) and BETTER_AUTH_SECRET
  • Google OAuth (optional)
    Not configured — email & password login is active
  • Database connected & schema
  • Auth configured
  • AI integration (optional)
    Set OPENROUTER_API_KEY for AI chat
  • File storage (optional)

Next Steps

1. Configure environment variables

Only BETTER_AUTH_SECRET is required — set it in .env (local Docker) or in the Coolify environment variables:

  • BETTER_AUTH_SECRET (required — openssl rand -base64 32)
  • POSTGRES_URL (auto-configured by docker compose)
  • OPENROUTER_API_KEY (optional — enables AI chat)
  • GOOGLE_CLIENT_ID / GOOGLE_CLIENT_SECRET (optional — OAuth)

2. Set up your database

Migrations run automatically on every container start (Docker & Coolify). After schema changes, generate and test migrations locally:

pnpm db:generatepnpm db:migrate

3. Try the features

4. Start building

Customize the components, add your own pages, and build your application on top of this solid foundation.