Environment Variables

Complete reference for all environment variables across platform and CLI.

Platform (Backend)

These variables configure the self-hosted Reviewate platform.

Core Infrastructure

VariableRequiredDefaultDescription
DATABASE_URLYesPostgreSQL connection string (e.g., postgresql://user:pass@localhost:5432/reviewate)
ENCRYPTION_KEYYesAES-256-GCM key for encrypting sensitive data. Generate with: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
JWT_SECRET_KEYYesSecret key for JWT tokens. Generate with: openssl rand -hex 32
REDIS_URLNoredis://localhost:6379Redis connection URL
REDIS_DBNo0Redis database number
FRONTEND_URLNohttp://localhost:3000Frontend URL for redirects and CORS

Plugin Enablement

VariableRequiredDefaultDescription
GITHUB_ENABLEDNotrueEnable GitHub OAuth and integration
GITLAB_ENABLEDNotrueEnable GitLab OAuth and integration
GOOGLE_ENABLEDNotrueEnable Google OAuth
At least one of GitHub or GitLab must be enabled.

GitHub Integration

VariableRequiredDefaultDescription
GITHUB_CLIENT_IDYesGitHub App client ID
GITHUB_CLIENT_SECRETYesGitHub App client secret
GITHUB_APP_IDYesGitHub App ID
GITHUB_APP_NAMEYesGitHub App name
GITHUB_APP_PRIVATE_KEY_PATHYesPath to GitHub App private key (.pem file)
GITHUB_WEBHOOK_SECRETYesSecret for verifying GitHub webhooks
GITHUB_API_URLNohttps://api.github.comGitHub Enterprise API URL
GITHUB_AUTHORIZE_URLNohttps://github.com/login/oauth/authorizeOAuth authorization URL
GITHUB_TOKEN_URLNohttps://github.com/login/oauth/access_tokenOAuth token URL
GitHub variables are only required when GITHUB_ENABLED=true (the default).

GitLab Integration

VariableRequiredDefaultDescription
GITLAB_CLIENT_IDYesGitLab OAuth application ID
GITLAB_CLIENT_SECRETYesGitLab OAuth application secret
GITLAB_WEBHOOK_SECRETYesSecret for verifying GitLab webhooks
GITLAB_INSTANCE_URLNohttps://gitlab.comGitLab instance URL
GITLAB_API_URLNo{instance_url}/api/v4GitLab API URL
GitLab variables are only required when GITLAB_ENABLED=true (the default).

Google OAuth

VariableRequiredDefaultDescription
GOOGLE_CLIENT_IDYesGoogle OAuth client ID
GOOGLE_CLIENT_SECRETYesGoogle OAuth client secret
Google variables are only required when GOOGLE_ENABLED=true (the default).

Kubernetes Container Backend

VariableRequiredDefaultDescription
KUBE_NAMESPACENoreviewateNamespace for code reviewer jobs
KUBE_SERVICE_ACCOUNTNoreviewateService account for reviewer pods
KUBE_CLEANUP_JOBSNotrueDelete completed Kubernetes jobs
KUBE_TMP_SIZE_LIMITNo1GiSize limit for /tmp emptyDir volume (scratch space for repo cloning)

Development

VariableRequiredDefaultDescription
REVIEWATE_CONFIGNoconfigs/api.yamlPath to config file
LOG_LEVELNoINFOLogging level (DEBUG, INFO, WARNING, ERROR)
ENVIRONMENTNodevelopmentEnvironment name
EXPOSE_ERROR_DETAILSNotrueExpose technical error details in API responses (disable in production)

LLM Configuration

These variables apply to the self-hosted platform deployment and CI integration. They are passed to the code reviewer container at runtime.

Authentication

VariableRequiredDefaultDescription
ANTHROPIC_API_KEYYesAnthropic API key or proxy API key
CLAUDE_CODE_OAUTH_TOKENYesOAuth token for headless/container use (generate with claude setup-token)
Only one of ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN is required, depending on your auth mode.

Model Configuration

VariableRequiredDefaultDescription
REVIEWATE_REVIEW_MODELNosonnetReview tier model — AnalyzeAgent, FactCheckAgent
REVIEWATE_UTILITY_MODELNohaikuUtility tier model — Synthesizer, Dedup, Style, etc.
REVIEWATE_BASE_URLNoCustom base URL (e.g., LiteLLM proxy at http://proxy:4000)

See Model Configuration for the two-tier model system.