Skip to main content
Find complete step-by-step guide in your project: supabase.md in the repo

What You’ll Set Up

Authentication

User sign-up, sign-in, and session management

AI Proxy

Secure Edge Function for OpenRouter API calls

Quick Overview

1

Create Supabase Project

  • Sign up at supabase.com
  • Create new project
  • Get API credentials
2

Configure App

Update Config/Secrets.xcconfig:
SUPABASE_URL = https://your-project.supabase.co
SUPABASE_ANON_KEY = your-anon-key
3

Deploy Edge Function

supabase login
supabase link --project-ref your-ref
supabase secrets set OPENROUTER_API_KEY=your-key
supabase functions deploy ai
4

Update Proxy Config

PROXY_BASE_URL = https://your-project.supabase.co/functions/v1
PROXY_PATH = /ai

Prerequisites

What You Get

After setup:
  • ✅ Real email/password authentication
  • ✅ Sign in with Apple working
  • ✅ AI chat with 500+ models
  • ✅ Secure API key handling
  • ✅ Production-ready backend

Complete Guide

The full guide includes:
  • Detailed setup instructions
  • Exact commands to run
  • Troubleshooting steps
  • Testing procedures
  • Security best practices

View Complete Setup Guide

Find complete Supabase deployment guide with step-by-step instructions in your project

Need Help?

I