What every project starts with
| Environment | Slug | Role |
|---|---|---|
| Production | prod | The default publish target and the environment the gateway falls back to. |
| Staging | staging | A pre-production environment for validating changes before promotion. |
prod and staging slugs are reserved — you can rename the display name, but you can’t create new environments using those slugs.
You can add more environments — a qa or canary environment, for example — to fit how your team ships.
What an environment owns
- Version pointers — which prompt version, which routing-rule release, and which provider activation serve traffic in that environment.
- A promotion policy — the rules that govern how changes move into it. See Promotion policies.
- Display settings — a name, a color, and an optional description.
- Role flags — whether it’s the default publish target, the gateway fallback environment, or marked as production.
Managing environments
Environments live in the dashboard at Project → Settings → Environments, where you can add, edit, and reorder them. An environment is described by:- Name — the display label (up to 64 characters).
- Slug — the stable identifier used in the API and in promotion rules. The slug is set when you create the environment and is immutable afterward, so pick it deliberately.
- Description — optional, up to 280 characters.
- Color — a label color to tell environments apart at a glance.
- Default publish target — where new versions publish unless you choose otherwise.
- Production — marks the environment as production for reporting and policy.
- Gateway fallback — the environment the gateway serves when a request doesn’t resolve to a more specific one. Exactly one environment holds this at a time.
Editing environments requires the
project:manage_environments permission. Changing the gateway fallback environment additionally requires project:manage_default_environment. See Roles & permissions.Next steps
Promotion policies
Control how changes move between environments.
Release approvals
Require sign-off before a change goes live.