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

# Factory overview

> Delegate engineering work to coding agents that run in cloud Sessions, agree on Plans before code is written, and automate recurring work with Loops.

Beta

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

**Factory** is where a team hands engineering work to coding agents. An agent works in a **Session**: an isolated cloud machine with the repositories, tools and credentials the task needs. Teams agree on the approach in a **Plan** before code is written, and **Loops** start Sessions on a schedule or when a connected system reports an event. Every model call goes through the **AI Gateway**, so models, budgets and usage are managed in one place.

## How work flows

Each page in this section covers one stage of the flow.

> [card] [Sessions](https://docs.orq.ai/factory/sessions.md)
>
> Describe a task, pick the repositories, and follow the agent until it opens a pull request.

> [card] [Plans](https://docs.orq.ai/factory/plans.md)
>
> Agree on scope and approach with the team before a pull request exists.

> [card] [Loops](https://docs.orq.ai/factory/loops.md)
>
> Run repetitive work on a schedule, or react to events from GitHub and Linear.

> [card] [Integrations](https://docs.orq.ai/factory/integrations.md)
>
> Connect GitHub, Linear and Slack so work starts where the team already is.

## Set up the Factory

These pages cover what an admin configures so Sessions have the right tools, machines and limits.

> [card] [Vaults](https://docs.orq.ai/factory/vaults.md)
>
> Store credentials once and expose them to Sessions as environment variables.

> [card] [Agents, MCPs and Skills](https://docs.orq.ai/factory/agents.md)
>
> Define specialized Agents and give them MCP servers and Skills.

> [card] [Models](https://docs.orq.ai/factory/models.md)
>
> Choose which models the Factory can use and which one is the default.

> [card] [Runners](https://docs.orq.ai/factory/runners.md)
>
> Prepare machines with repositories and dependencies, and start from a snapshot.

> [card] [Budgets](https://docs.orq.ai/factory/budgets.md)
>
> Cap what a Factory spends per period.

> [card] [Usage](https://docs.orq.ai/factory/usage.md)
>
> Track Sessions, cost and pull request outcomes on the Factory **Overview**.

## Get started

> [card] [Quickstart](https://docs.orq.ai/factory/quickstart.md)
>
> Set up a Factory as an admin, or ship a first change as a developer.

> [card] [Concepts](https://docs.orq.ai/factory/concepts.md)
>
> See how Sessions, Plans, Loops, Agents and Runners relate.


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