ClaireDocs

Ask Claire

Search the project, not the web.

Answers are grounded in Claire’s published documentation and include the source pages used.

⌘/Ctrl + J opens Ask Claire anywhere in docs.

Production setup

Public checklist for deploying Claire without exposing live infrastructure details.

CurrentReviewed 2026-08-17View source ↗

This is the public checklist for deploying Claire. Live hostnames, project IDs, database proxies, and operator runbooks belong in a private operations repository, not in this tree.

Required services#

  • The Claire API (server/)
  • Postgres, Auth, and Realtime — self-hosted Supabase or a managed project
  • Redis
  • Optional: Matrix (Synapse plus mautrix bridges) when PLATFORM_MODE=matrix

Server environment#

Copy .env.production.example and server/.env.example, then set real values in your host’s secret store.

VariablePurpose
SUPABASE_URLAPI gateway for Auth, PostgREST, and Realtime
SUPABASE_ANON_KEYPublic anon key
SUPABASE_SERVICE_KEYServer-only service-role key
DATABASE_URLPostgres connection string
JWT_SECRETSession signing secret
ENCRYPTION_KEYToken encryption at rest
OPENAI_API_KEYOptional; mock mode does not need it
PLATFORM_MODEmatrix or direct — must be explicit in production
REDIS_URLQueue and session cache

Mobile environment#

Stored in EAS or a local, never-committed `.env.production`.

VariablePurpose
EXPO_PUBLIC_SUPABASE_URLThe gateway the app itself can reach
EXPO_PUBLIC_SUPABASE_ANON_KEYPublic anon key
EXPO_PUBLIC_API_URLPublic Claire API origin
EXPO_PUBLIC_ENVproduction

Store them in EAS so CI machines never need a local file:

Terminal — mobile
bunx eas env:create --scope project --environment production \
  --name EXPO_PUBLIC_SUPABASE_URL \
  --value "$EXPO_PUBLIC_SUPABASE_URL" \
  --type plain

Repeat for the rest, then pull on a new machine with bunx eas env:pull --environment production.

Health checks#

Terminal
curl https://<claire-api-host>/health

curl https://<supabase-kong-host>/auth/v1/health \
  -H "apikey: $EXPO_PUBLIC_SUPABASE_ANON_KEY"

Builds#

Terminal — mobile
bunx eas build --profile preview --platform ios
bunx eas build --profile production --platform ios

Operator notes#