Project Configuration
Everything you can put in omnibase.toml and omnibase/.env.* — deployments, auth, OIDC, local secrets, and version pinning
Project Configuration
Your project's behavior is defined by a single config file in the omnibase/ directory — omnibase.toml — plus a set of gitignored environment files. The same file drives local development (omnibase start), the CLI, and managed hosting deploys.
omnibase init scaffolds a commented omnibase/omnibase.toml with every section below. TOML is the default, but .jsonc, .json, .yaml, and .yml are also supported.
Full Example
# omnibase/omnibase.toml
project_id = "69df45c1-2580-4781-915f-b6ecdc792683"
# Apps to run locally and deploy. Each is a directory with a wrangler
# config and a `bun run dev` script.
[[deployments]]
name = "dashboard"
path = "../apps/dashboard"
[[deployments]]
name = "api"
path = "../apps/api"
port = 8788
[auth]
website_url = "{WEBSITE_URL}"
allowed_return_urls = ["{ALLOWED_RETURN_URLS}"]
cookie_secret = "{COOKIE_SECRET}"
log_level = "info"
[[auth.oidc]]
provider = "google"
client_id = "{GOOGLE_CLIENT_ID}"
client_secret = "{GOOGLE_CLIENT_SECRET}"
# Local-only settings. Never pushed to the cloud.
# [local]
# Version pins for the OmniBase control-plane images.
# Omitted services use "latest". Must be exact published tags.
[versions]
auth = "0.4.1"
api = "0.20.3"
perm = "0.4.0"Sections
project_id
Your Omnibase Cloud project ID, created when you set up managed hosting. Not needed for purely local development.
[[deployments]]
The apps you're building. Each entry points at a directory containing a Cloudflare Wrangler app (a wrangler.toml/wrangler.jsonc plus a bun run dev script) — the same app you'd deploy to the edge.
name— a label used in CLI output and cloud deploy namingpath— directory relative toomnibase/port— local dev port; defaults to8787 + deployment index
omnibase start spawns bun run dev in every deployment directory and passes each the resolved environment (see below). If no deployments are configured, it falls back to a bundled sample omnibase/workers/.
[auth]
Controls the authentication service (Ory Kratos):
website_url— your app's URL; used to build auth flow redirectsallowed_return_urls— URLs Kratos will redirect back to after a flowcookie_secret— secret used to sign session cookieslog_level— Kratos log level (trace,debug,info,warn,error)
[[auth.oidc]]
Enables social login. One block per provider:
provider— the provider key (e.g.google)client_id/client_secret— OAuth app credentials
The CLI maps these to OIDC_<PROVIDER>_ENABLED, <PROVIDER>_CLIENT_ID, and <PROVIDER>_CLIENT_SECRET env vars for the auth container.
[local]
Local-development-only settings that are never sent to the cloud. Any key placed here stays on your machine; dev secrets and Stripe keys for local dev live in omnibase/.env.local (see Environment Files).
[env]
Extra KEY=VALUE pairs applied to the local control-plane containers (merged into the same env the auth/API images receive).
[versions]
Pins the Docker image tags for the control plane. Valid keys are auth, api, and perm. Values must be exact published tags (checked against Docker Hub before applying); omitted services use latest.
omnibase init writes this block with the latest published versions, so a new project stays on those versions until you change them. The CLI version does not decide which service versions run: upgrade a service by editing its tag here, or remove the key to follow latest.
Environment Files
Secrets and per-environment values live in gitignored files next to the config:
omnibase/
├── omnibase.toml # structure, committed
├── .env.local # local secrets & defaults, gitignored
└── .env.<branch> # per-environment overrides, gitignoredFor example omnibase/.env.local for local dev, omnibase/.env.staging for staging, or omnibase/.env.<branch_name> for a cloud branch. Select one with omnibase --env <name>.
Values resolve per key, first non-empty wins:
process.env → omnibase/.env.<branch> (from --env or the interactive picker) → the literal {VAR} left in place.
{VAR} references in omnibase.toml are interpolated from these sources. Unresolved references are left literal and the CLI warns. Secrets belong in .env.* files or wrangler secret — never in [[deployments]] wrangler [vars], which are visible in the deployed worker.
What Goes to the Cloud
When you run omnibase cloud env push, everything is sent except project_id, [[deployments]], and [local] — those stay local. Managed hosting applies the sections it understands ([auth], [versions], [env], etc.) and reports the rest.