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

# Access and permissions

> What admins and members can open in a Factory, who sees a Session or a Plan, and how agents get access to repositories and secrets.

Beta

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

Access in a **Factory** has two sides: what a person can open, and what an agent can reach while it works. This page covers both.

## What people can open

| Area | Who |
| - | - |
| [Overview](https://docs.orq.ai/factory/usage.md) | Workspace admins. |
| Organization settings, including Budgets and Integrations | Workspace admins. |
| [Sessions](https://docs.orq.ai/factory/sessions.md) | The person who started the Session. |
| [Plans](https://docs.orq.ai/factory/plans.md) | Members with access to the Factory. |
| Loops, Toolkit and Factory settings | Members with the matching permission. |

Permissions exist per resource: Factories, Loops, Plans, Runners, Vaults, Agents, connections and models. See [Members and teams](https://docs.orq.ai/ai-studio/organization/members-teams.md).

## Sessions are private

Only the person who started a Session can open it. To work on a change with others, use a [Plan](https://docs.orq.ai/factory/plans.md): teammates comment and answer decisions, and the owner implements the Plan in its Session.

## What agents can reach

An agent works with what its Session was given.

| Resource | How the agent gets it |
| - | - |
| Repositories | The repositories picked for the Session, the Loop or the [Runner](https://docs.orq.ai/factory/runners.md). |
| Secrets | The [Vaults](https://docs.orq.ai/factory/vaults.md) attached to the Runner, as environment variables. |
| External systems | The [MCP servers](https://docs.orq.ai/factory/mcps.md) selected on the Agent or the Loop. |
| Models | The [models](https://docs.orq.ai/factory/models.md) enabled for the Factory. |

## Repository access requests

An agent that needs a repository outside its Session asks for it. The **Repository access** card shows the request.

| Field | Shows |
| - | - |
| Repository | The repository the agent asks for. |
| Access | **Read** or **Write**. |
| Connection | The connection that would be used. |
| Reason | Why the agent needs it. |

Click **Approve** or **Deny**. An approved request expires at the time shown on the card.

## Repositories named by an event

A [Loop](https://docs.orq.ai/factory/loops.md) started by a GitHub event also clones the repository the event names. The Loop sets how much that repository is trusted.

| Setting | Options |
| - | - |
| Access | **Read** or **Write**. Read by default. |
| Trust | **Trusted** or **Not trusted**. Not trusted by default. |

## Secrets in output

A secret of kind **Secret** is redacted from run output and transcripts. A **Variable** is not. See [Vaults](https://docs.orq.ai/factory/vaults.md#secrets).


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