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.

Environment variables

Public reference for Claire’s environment variables. No live values.

CurrentReviewed 2026-08-15View source ↗

Copy the example files and set your own values. This page lists which variables exist and what they are for — it never contains a real value.

Server#

See server/.env.example. A real (non-mock) stack requires:

VariablePurpose
SUPABASE_URLOrigin of your Supabase gateway.
SUPABASE_ANON_KEYPublic client key.
SUPABASE_SERVICE_KEYServer-side key. Never ship this to a client.
DATABASE_URLDirect Postgres connection string.
JWT_SECRETSigns Claire session tokens.
ENCRYPTION_KEYEncrypts stored platform session material.

Matrix mode additionally needs:

VariablePurpose
MATRIX_HOMESERVER_URLSynapse origin.
MATRIX_SERVER_NAMEThe server name in user IDs, e.g. claire.local.
MATRIX_ADMIN_TOKENAdmin access token used to provision users and rooms.

Mobile#

See mobile/.env.example. Everything prefixed EXPO_PUBLIC_ is embedded in the app bundle and is therefore public by construction — never put a secret behind that prefix.

VariablePurpose
EXPO_PUBLIC_SUPABASE_URLSupabase origin the client talks to.
EXPO_PUBLIC_SUPABASE_ANON_KEYPublic anon key.
EXPO_PUBLIC_API_URLClaire API origin.

Website and Ask Claire#

VariablePurpose
OPENAI_API_KEYEnables POST /api/docs/ask. Without it the route falls back to search.
CLAIRE_DOCS_ASK_MODELDefaults to gpt-5.4-mini.
CLAIRE_DOCS_ASK_MONTHLY_BUDGET_USDDefaults to 50.