> ## 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.

> ## Agent Instructions
> Orq.ai is the control plane for model and MCP traffic: one key reaches the workspace's enabled models, MCP servers, and resources. The setup depends on where the agent runs.
> Hosted assistant (ChatGPT, claude.ai, a hosted sandbox): install nothing. Tell the human to add https://my.orq.ai/v2/mcp as a remote MCP connector and finish the Orq.ai sign-in. With OAuth, send no Authorization header; otherwise send an API key as a bearer token.
> Local coding agent (Claude Code, Codex, Cursor, OpenCode): run `curl -fsSL https://cli.orq.ai/install.sh | sh`. It installs the CLI and runs `orq setup`, which signs in, writes a project-scoped key to `~/.orq/env`, and wires the detected agents through the AI Gateway. It can also add the Orq MCP server and Orq Skills, the workflows for agents, evaluations, and traces: https://docs.orq.ai/ai-studio/integrations/code-assistants/orq-skills.md. Cursor receives the Orq MCP server and Orq Skills only; its model calls are not routed through the AI Gateway. Verify with `orq status`.
> Headless or CI: read `ORQ_API_KEY` from the environment; a human creates the key at https://docs.orq.ai/ai-studio/organization/api-keys.md.
> Send model traffic to https://my.orq.ai/v3/router with `Authorization: Bearer $ORQ_API_KEY`; the Anthropic SDK uses https://my.orq.ai/v3/anthropic. New integrations go on `/v3/router`: `/v2/router` stays published for backward compatibility, and `orq.prompt` works only on `/v2/router/chat/completions`.
> To enable a model for the workspace, ask a human to enable it in the Model Garden, or call `POST /v2/workspace-models` with a Management Key that has `workspace-model` write; API keys are rejected with `403`. Use the model's exact `provider/model` id. A call fails while the workspace has neither credits nor a provider key.
> On `/chat/completions`, a reasoning model rejects `tools` with a `reasoning_effort` other than `none`; `/responses` keeps reasoning.
> On a failure, branch on `error.code` and follow `error.doc_url`; a budget rejection answers 429.

# Runners

> Configure the machines Sessions run on: machine type, repositories, Vaults and an install script, and use snapshots so Sessions start from a prepared disk.

Beta

> [!NOTE]
>
> **Factory** is in private preview and is enabled per workspace by the **Orq.ai** team.

A **Runner** is the machine setup a [Session](https://docs.orq.ai/factory/sessions.md) starts from. It defines the size of the machine, the repositories on it, the [Vaults](https://docs.orq.ai/factory/vaults.md) it receives and the script that installs the dependencies. Runners are managed in **Settings** > **Runners**.

## Default Runner

Every Factory has a default Runner, so a Session or a [Loop](https://docs.orq.ai/factory/loops.md) can start without any Runner setup. It is selected as **Default runner** in the composer and is used whenever no other Runner is picked.

To make a configured Runner the default, open its menu on the **Runners** page and click **Set as default**.

## Create a Runner

Click **New runner** in the Runner menu of the composer, or add one on the **Runners** page.

| Field | Description |
| - | - |
| **Name** | Shown in the Runner menu. |
| **Machine type** | The size of the machine. See [Machine types](#machine-types). |
| **Repositories** | Up to 8 repositories cloned on every Session of the Runner. |
| **Vaults** | Up to 32 Vaults whose secrets are set as environment variables. |
| **Install script** | Commands that install toolchains and dependencies. |
| **Run notes** | Notes the agent reads at the start of every Session, such as how to run the tests. |
| **Snapshot** | Keeps the prepared disk after setup. See [Snapshots](https://docs.orq.ai/factory/snapshots.md). |

### Machine types

| Type | vCPU | Memory | Disk |
| - | - | - | - |
| `micro` | 0.5 | 2 GiB | 5 GiB |
| `small` | 1 | 4 GiB | 5 GiB |
| `medium` | 2 | 8 GiB | 20 GiB |
| `large` | 4 | 16 GiB | 50 GiB |
| `xlarge` | 8 | 32 GiB | 200 GiB |

The default is `small`.

## Set up a Runner

Setup runs as a Session in which an agent prepares the machine.

1. Click **Run setup** on the Runner.
2. The agent explores the repositories and proposes an install script.
3. Review the install script and correct it in the conversation if needed.
4. Click **Finish setup**.

The Runner status shows where it stands.

| Status | Meaning |
| - | - |
| **Not set up** | Setup has not run yet. |
| **Setting up** | A setup Session is open. |
| **Snapshotting** | The prepared disk is being saved. |
| **Ready** | Sessions can start on the Runner. |
| **Needs setup** | No snapshot is usable, as after a smaller machine type or a removed repository. Run setup again. |

A Runner that is not **Ready** is disabled in the Runner menu and shows the reason.

## Snapshots

With **Snapshot** on, the disk prepared during setup is saved, and every Session on the Runner starts from a copy of it. See [Snapshots](https://docs.orq.ai/factory/snapshots.md) for versions and for what makes a snapshot unusable.


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