Crucible Docs

Environment variables

Configure each runtime without passing provider credentials and production secrets around by hand.

What Crucible manages

Crucible generates or resolves the platform values required by Auth, model access, databases, workers, and managed integrations. Add only the application-specific values; Crucible assembles the right configuration for each workspace, deployment, and local machine before it starts.

  • Project variables: Shared defaults in the project's Project Env Vars tab. Every workspace, deployment, and local setup inherits them.
  • Deployment variables: Set in a deployment's Deployment Env Vars tab. They override project defaults for that deployment only.
  • Managed variables: Generated by Crucible and its integrations. They appear alongside your variables as read-only rows.

A deployment's Deployment Env Vars tab lists all three in one table. The Provenance column shows Deployment or Project for your variables, and Standard API integration or Terraform for managed ones. A lite deployment has no Terraform, so its other managed variables show Crucible. Filter narrows the table by provenance or type. Project rows link to the Project Env Vars tab, where they are edited.

Rules that matter

  • Secrets stay on the backend: Frontend keys must start with VITE_, and only backend values can be secret. Provider keys stay server-side or behind managed integrations.
  • Changing a full deployment is a release: Adds, edits and deletes on the Deployment Env Vars tab are staged in the table as Added, Changed or Removed, each with Undo, and nothing is sent until you choose Save 1 change or Save N changes; the button counts what is staged. One save sends every staged change as one update that applies infrastructure and, for frontend values, rebuilds the frontend. A save that changes only notes deploys nothing. Staged changes survive switching tabs but not a page reload. The Status column shows Queued, Deploying, or Removing beside affected variables, including new variables that are not deployed yet. Failed updates show Failed; confirmed values remain visible until the update finishes.
  • Local development is already wired: Use Work locally on the project overview to copy the values resolved for you instead of rebuilding the environment by hand.
  • Prefer managed keys: With the LLM Gateway and other managed integrations, you never handle provider credentials at all.

On this page