Respos·ai← Back to journal
§ Docs · Self-hosting

Self-hosting.

Run Resposai on your own infrastructure with full control over your data.

Overview

Resposai is an open-source Next.js application backed by Supabase and the Anthropic API. You can self-host it on any server that runs Node.js 20+ and has outbound HTTPS access to Supabase and Anthropic.

Requirements

  • Node.js 20 or later
  • A Supabase project (free tier works)
  • An Anthropic API key
  • A hosting environment (Vercel, Railway, Fly.io, a VPS, etc.)

Environment variables

Copy .env.example to .env.local and fill in:

NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
ANTHROPIC_API_KEY=your-anthropic-key

Database setup

Run the SQL migrations in /supabase/migrations/ against your Supabase project using the Supabase CLI:

npx supabase db push

Running locally

npm install
npm run dev

Open http://localhost:3000.

Deploying to production

The project is a standard Next.js app. Deploy to Vercel with one command:

npx vercel --prod

Or build and start manually on any Node.js host:

npm run build
npm start

Support

Self-hosting support is community-based. Open an issue on GitHub or email hello@resposai.com for commercial self-hosting assistance.


Back to documentation index.