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

# Runner snapshots

> Save the prepared disk of a Runner so every Session starts with toolchains and dependencies installed, and manage snapshot versions.

Beta

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

A snapshot is a saved copy of a [Runner](https://docs.orq.ai/factory/runners.md) disk, taken when setup finishes. With snapshots on, every Session on the Runner starts from a copy of that disk instead of an empty one. The agent spends its time on the task, not on installing the project again.

## What snapshots enable

| Benefit | How |
| - | - |
| Faster start of real work | Toolchains, dependencies and service images are already installed. |
| Identical environments | Every Session and every Loop run starts from the same prepared disk. |
| Safe changes to the setup | The previous version is kept, and **Restore previous** returns to it. |

## Turn on snapshots

1. Open **Settings** > **Runners** and edit the Runner.
2. Turn on **Snapshot**.
3. Click **Run setup**, review the install script and click **Finish setup**.

The setup Session ends and its disk is snapshotted. The Runner shows **Snapshotting**, then **Ready**.

## Manage versions

Saving setup again creates a new version. Sessions keep using the current snapshot until the new one is ready.

| Action | Result |
| - | - |
| **Restore previous** | The previous version becomes the current one. |
| **Rerun from scratch** | Setup runs again on an empty disk. |

## When a snapshot stops being usable

Some changes to the Runner invalidate its snapshot. The Runner then shows **Needs setup** and cannot start Sessions until setup runs again.

| Change | Result |
| - | - |
| A smaller machine type | The snapshot is unusable. Run setup again. |
| A repository removed | The snapshot is unusable. Run setup again. |
| Snapshots turned off | The snapshots of the Runner are deleted. |


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