Support Ignitra
Ignitra
DocsBlog
Log in
Documentation

Getting Started

  • Quick Start
  • Installation
  • Configuration

Features

  • Authentication
  • AI Providers
  • Payments & Billing
  • Token Tracking

Going Live

  • Deployment
  • Customization

Reference

  • API Reference

Configuration

All configuration is done through environment variables in the .env file.

Environment Variables

Copy the example file:

cp .env.example .env

Required Variables

VariableDescriptionWhere to get it
NEXT_PUBLIC_SUPABASE_URLSupabase project URLSupabase Dashboard → Settings → API
NEXT_PUBLIC_SUPABASE_ANON_KEYSupabase anonymous keySame location
SUPABASE_SERVICE_ROLE_KEYSupabase service key (server-side only)Same location
DATABASE_URLPostgreSQL connection stringSupabase → Settings → Database

AI Provider Variables

VariableDescriptionOptions
AI_PROVIDERWhich AI provider to useopenai, anthropic, google
AI_MODELWhich model to usegpt-4o-mini, claude-sonnet-4-20250514, etc.
OPENAI_API_KEYOpenAI API keyplatform.openai.com
ANTHROPIC_API_KEYAnthropic API keyconsole.anthropic.com
GOOGLE_GENERATIVE_AI_API_KEYGoogle AI (Gemini) API keyaistudio.google.com

Only set the API key for the provider you're using.

Stripe Variables

VariableDescription
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEYStripe publishable key
STRIPE_SECRET_KEYStripe secret key
STRIPE_WEBHOOK_SECRETStripe webhook signing secret

Optional Variables

VariableDefaultDescription
NEXT_PUBLIC_APP_URLhttp://localhost:3000Your app's public URL
SYSTEM_PROMPT"You are a helpful assistant."The AI system prompt
RESEND_API_KEY—Resend email API key

Customizing the System Prompt

The system prompt defines your AI's personality. Change it in .env:

SYSTEM_PROMPT="You are a professional copywriter. Help users write engaging blog posts, social media captions, and marketing copy."

This single change transforms Ignitra from a generic AI chat into a specialized product.