modelforge-backend / backend /.env.example
ModelForge CI
deploy: 2026-06-19 19:24 UTC
6761f70
Raw
History Blame Contribute Delete
1.51 kB
# Required
ANTHROPIC_API_KEY=sk-ant-...
# CORS β€” comma-separated list of exact allowed origins
CORS_ORIGIN=https://no-code-model-trainer.vercel.app,http://localhost:3000
# Optional override for the project-scoped Vercel-preview regex (defaults to
# this project's *.vercel.app preview deployments only)
# CORS_ORIGIN_REGEX=https://no-code-model-trainer[a-z0-9-]*\.vercel\.app
# Per-user run quotas (issue #29) β€” enforced only for authenticated requests
MAX_CONCURRENT_RUNS=2
MAX_DAILY_RUNS=25
# Optional β€” HF Hub push from DeployAgent
HUGGINGFACE_TOKEN=hf_...
# ── Authentication (Supabase) ────────────────────────────────────────────────
# Used to verify the caller's Supabase login token against /auth/v1/user.
# SUPABASE_URL + SUPABASE_ANON_KEY are required for token verification.
# SUPABASE_SERVICE_ROLE_KEY is used for run-ownership checks + sweep row writes.
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_ANON_KEY=ey...
SUPABASE_SERVICE_ROLE_KEY=ey...
# Staged rollout switch. Leave false until the frontend (which now sends the
# Authorization: Bearer <token> header) is deployed, THEN set to true to start
# rejecting unauthenticated requests.
# false β†’ tokens verified when present, anonymous requests still allowed
# true β†’ missing/invalid token β†’ 401
REQUIRE_AUTH=false
# Optional β€” override upload/runs directories
# UPLOAD_DIR=uploads
# RUNS_DIR=../agents/runs