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

# Sessions

> Start a coding Session in a Factory, pick its model, Runner and repositories, follow the agent, review the changes and open a pull request.

Beta

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

A **Session** is one piece of work handed to a coding agent. The agent runs on an isolated cloud machine with the selected repositories checked out, and the conversation stays open for follow-up instructions. A Session ends with reviewable output: a diff, files, artifacts such as a [Plan](https://docs.orq.ai/factory/plans.md), and usually a pull request.

Sessions are private: only the person who started a Session can open it. To work on a change with the team, use a [Plan](https://docs.orq.ai/factory/plans.md).

## Start a Session

Click **New session** in the Factory sidebar.

**1. Describe the task**

Write the task in the composer. Attach files when the agent needs them.

Type `@` to mention tools or [Agents](https://docs.orq.ai/factory/agents.md). A message can mention up to 8 Agents.

**2. Pick the model**

The model menu lists the [models](https://docs.orq.ai/factory/models.md) enabled for the Factory. Depending on the model, it also offers an **Effort** level and a **Service tier**.

**3. Pick the Runner**

Keep **Default runner** or select another [Runner](https://docs.orq.ai/factory/runners.md). A Runner that is still being set up is disabled and shows the reason.

**4. Pick the repositories**

Select up to 8 repositories from the connected [GitHub](https://docs.orq.ai/factory/integrations.md) accounts. The repositories of the selected Runner are already checked and cannot be removed.

A Session can also run with **No repository**.

**5. Start**

Click **Start session**.

## Follow the work

The conversation shows what the agent does as it works. The side panel has one tab per kind of output.

| Tab | Shows |
| - | - |
| **Changes** | The diff of everything the agent changed. |
| **Files** | The files in the Session workspace. |
| **Terminal** | A terminal on the Session machine. |
| **Artifacts** | Documents the agent published, such as a Plan. |
| **Background tasks** | Long-running commands the agent started. |

**Changes** and **Files** appear only when the Session has repositories.

## Session status

The status pill tells whether the Session needs a person.

| Status | Meaning |
| - | - |
| **Running** | The agent is working on a turn. |
| **Needs attention** | The agent is waiting, for example on an answer to its questions, or the last turn failed. |
| **Idle** | The agent finished its turn and waits for the next message. |

The machine behind an idle Session is suspended after the Factory idle timeout. The next message resumes it.

## Steer the agent

Use the composer under the conversation to keep working in the same Session.

While a turn is running, the send button changes with the composer content.

| Action | When | Result |
| - | - | - |
| **Steer** | The composer has text. | The message is sent right away and reaches the agent during the running turn. |
| **Queue** | <kbd>Ctrl</kbd> + <kbd>Enter</kbd>, or <kbd>⌘</kbd> + <kbd>Enter</kbd> on macOS. | The message is held and sent automatically when the turn ends. |
| **Stop** | The composer is empty. | The running turn ends. |

Queued messages are listed above the composer, where each can be edited, removed or sent right away. They are kept in the browser, so they are sent only while the Session is open there.

Switching the model or effort in the middle of a Session asks for confirmation. The next message re-reads the conversation without the prompt cache.

## Approve repository access

An agent that needs a repository outside the Session asks for it. The **Repository access** card shows the repository, the access level (**Read** or **Write**), the connection and the reason the agent gave.

Click **Approve** or **Deny**.

## Open a pull request

The result card summarizes the changes when a turn ends.

1. Review the diff in **Changes**.
2. Click **Open PR**. The agent opens a pull request through the GitHub connection.

The card then shows the pull request with its state: **Open**, **Draft**, **Merged** or **Closed**.

## Manage a Session

Recent Sessions are listed under **Sessions** in the Factory sidebar. The Session menu has these actions.

| Action | Result |
| - | - |
| **Rename** | Changes the Session title. |
| **Copy link** | Copies the link to the Session. |
| **Export** | Downloads the conversation as Markdown or JSON. |
| **Delete** | Deletes the Session. |


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