answerLoopsanswerLoops Docs
Self-Hosting

Prerequisites

What you need before running answerLoops on your own infrastructure.

Gather these before you start the self-host quickstart — nothing below takes long to get, but bouncing between OAuth app dashboards mid-setup is the most common source of "why isn't this working."

Required

RequirementVersionNotes
Node.js22+Required by Next.js 16 and pnpm
DockerLatest stableIncludes Docker Compose v2
pnpm11+Used for package management
GitAnyFor cloning the repo
Postgres with the pgvector extension15+docker-compose.yml already runs pgvector/pgvector:pg16, so nothing to do for the Docker path. Bringing your own Postgres (Neon, Supabase, RDS, a bare install) instead of the provided compose file? Run CREATE EXTENSION vector; once before starting the app — every major managed provider supports this natively. Powers KB search's vector index.

Required accounts / keys

ServicePurposeFree tier?
GitHub or GoogleOAuth login for your teamYes
OpenAI (or other AI provider)AI deflection + KB embeddingsPay per use

Optional (add channels as you need them)

You don't need all of these to get started — connect one channel first, confirm it works, then add the rest.

ServicePurpose
DiscordCommunity bot integration
SlackCommunity bot integration
GitHub AppIssue/Discussion ingestion + KB sync

Generating secrets

Several env vars require random secrets. Generate them with:

# AUTH_SECRET and ENCRYPTION_KEY
openssl rand -hex 32

Run this twice — once for each secret. Never reuse the same value for both.

ENCRYPTION_KEY encrypts API keys stored in the database. If you change it after setup, all stored API keys become unreadable and users will need to re-enter them.

On this page