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 Variables tab. Every workspace, deployment, and local setup inherits them.
  • Deployment variables: Set in a deployment's Variables 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.

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: Editing a full deployment's variables starts an update that applies infrastructure and, for frontend values, rebuilds the frontend. Treat it like shipping a change.
  • 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