PORT | No | 3001 | API HTTP port. |
DATABASE_URL | Yes | None | PostgreSQL connection string for application data and worker jobs. |
BETTER_AUTH_SECRET | Yes | None | Long random secret for auth signing. |
BETTER_AUTH_URL | Yes | None | Public API auth origin, for example https://api.example.com. |
FRONTEND_URL | Yes | None | Public web app origin used for CORS and redirects. |
GOOGLE_CLIENT_ID | Yes | None | Google OAuth client id for sign-in. |
GOOGLE_CLIENT_SECRET | Yes | None | Google OAuth client secret for sign-in. |
CREEM_API_KEY | Yes | None | Creem billing API key. |
CREEM_WEBHOOK_SECRET | Yes | None | Creem webhook signature secret. |
CREEM_TEST_MODE | No | true | Enables Creem test mode when set to true. |
CREEM_PREMIUM_PRODUCT_ID | Yes | None | Premium billing product id. |
CREEM_ULTRA_PRODUCT_ID | Yes | None | Ultra billing product id. |
CREEM_CREDIT_TOPUP_PRODUCT_ID | No | None | Product id used for buying additional review credits. |
SIGNUP_REVIEW_CREDITS | No | 0 | Review credits granted to newly onboarded workspaces. |
GITHUB_APP_ID | No | None | GitHub App id. |
GITHUB_APP_SLUG | No | None | GitHub App slug used for install URLs. |
GITHUB_APP_CLIENT_ID | No | None | GitHub App OAuth client id. |
GITHUB_APP_CLIENT_SECRET | No | None | GitHub App OAuth client secret. |
GITHUB_APP_PRIVATE_KEY | No | None | GitHub App private key. |
GITHUB_APP_WEBHOOK_SECRET | No | None | GitHub webhook signing secret. |
OPENROUTER_API_KEY | No | None | Preferred provider key for AI review model calls. |
AI_GATEWAY_API_KEY | No | None | Vercel AI Gateway fallback key when OpenRouter is not configured. |
MASTER_ENCRYPTION_KEY | No | None | Base64 of 32 random bytes. Required only to store bring-your-own-key provider keys; encrypts them at rest. |
SECRETS_PROVIDER | No | env | Backend that protects the encryption key. Only env is supported today. |
REVIEW_MODEL | No | z-ai/glm-5.1 | Main reviewer model id passed to the selected AI provider. |
REVIEW_VERIFIER_MODEL | No | openai/gpt-5.4-mini | Verifier model id passed to the selected AI provider. |
REVIEW_WORKDIR | No | .data/reviews | Working directory for checked-out review repositories. |
REVIEW_RUNS_DIR | No | .runs | Directory for review debug artifacts. |
DOCS_LIBRARIAN_MODEL | No | REVIEW_VERIFIER_MODEL | Model id used to answer documentation lookups during review. |
DOCS_RECRAWL_INTERVAL_HOURS | No | 168 | How often crawled documentation sources are refreshed, in hours. |
QDRANT_URL | No | None | Enables semantic code search when set. |
QDRANT_API_KEY | No | None | Qdrant API key. |
QDRANT_COLLECTION | No | review_code_chunks | Qdrant collection name. |
QDRANT_INFERENCE_MODEL | No | sentence-transformers/all-minilm-l6-v2 | Embedding model name for Qdrant inference. |
QDRANT_VECTOR_SIZE | No | 384 | Vector size expected by the collection. |
VECTOR_WRITE_MICROUSD_PER_GIB | No | 2500000 | Vector write cost model for usage accounting. |
VECTOR_QUERY_MICROUSD_PER_TIB | No | 7500 | Vector query cost model for usage accounting. |
VECTOR_NETWORK_MICROUSD_PER_GIB | No | 90000 | Vector network cost model for usage accounting. |
TELEGRAM_BOT_TOKEN | No | None | Optional feedback notification bot token. |
TELEGRAM_FEEDBACK_CHAT_ID | No | None | Optional Telegram chat id for feedback notifications. |