> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orq.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Environments for dev, staging, and production

> Manage environments in Orq.ai workspaces to tag Agent and Evaluator versions and route invocations by environment instead of pinning a version number.

Environments are named tags assigned to published **Agent** and **Evaluator** versions. Instead of pinning a fixed version number, invoke a resource with `@environment-name` and always reach whichever version currently carries that tag. Typical environments are `develop`, `staging`, and `production`.

> [!NOTE]
>
> For hard isolation between environments, on-premise deployments run each environment as a separate **Orq.ai** install. See [Isolated environments](https://docs.orq.ai/enterprise/on-prem-requirements.md#isolated-environments).

## Where environments live

Every environment in the workspace is managed centrally from **Settings** → **Organization** → **Environments**.

![Organization Environments page listing environments such as acceptance, beta, canary, develop, production, and staging, with an Environment button.](https://mintcdn.com/orqai/Rcl-S4hCbSeanOMn/images/environments-organization.png?fit=max\&auto=format\&n=Rcl-S4hCbSeanOMn\&q=85\&s=0e3bb0a01cabcd3515ffe82272623e60)

The Environments page lists every environment in the workspace.

From this page:

* <kbd> Environment</kbd>: create a new environment.
* Use the per-row menu to rename or delete an existing environment.

## Assigning a version to an environment

Assign an environment from the **Versions** tab of an Agent or Evaluator. Open a published version's environment menu to tag it with any existing environment. The same menu can also **Create environment** inline, without leaving the version, and **Manage environments** to jump to the central page.

![Agent Versions tab with a version environment menu open, listing environments to assign plus Create environment and Manage environments options.](https://mintcdn.com/orqai/Rcl-S4hCbSeanOMn/images/environments-version-dropdown.png?fit=max\&auto=format\&n=Rcl-S4hCbSeanOMn\&q=85\&s=5432d71c715a610d1fd2d86c1faef012)

Tag a version with an environment, or create one inline, from the version environment menu.

A version can be assigned to multiple environments, and the assigned badges appear on the version row. For the full per-resource steps, see [Assigning Environments](https://docs.orq.ai/ai-studio/ai-engineering/build-agents.md#assigning-environments) for Agents and the [Versions tab](https://docs.orq.ai/ai-studio/optimize/evaluators.md#versions) for Evaluators.

## Routing by environment

Append `@environment-name` to a resource key to route to whichever version is currently assigned to that environment:

```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X POST https://my.orq.ai/v3/router/responses \
  -H "Authorization: Bearer $ORQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "model": "agent/my-agent@production", "input": "..." }'
```

Reference an environment the same way for Evaluators (e.g. `my-evaluator@production`). Without a suffix, the latest published version is used.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.