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

# Reference

> Protocol support, limits, errors, unsupported behavior, and the API, SDK, and CLI.

## Protocol support

The gateway serves tools, resources, resource templates, prompts, and skills, with per-link exposure.

## Protocol versions

| Peer | Revisions | Transport |
| - | - | - |
| MCP client to gateway | `2026-07-28`, `2025-11-25`, `2025-06-18`, `2025-03-26`, `2024-11-05` | Streamable HTTP: `POST https://my.orq.ai/v3/mcp/<gateway-key>`, the `--transport http` option in the examples in [Connect clients](https://docs.orq.ai/ai-gateway/mcp-portal/mcp-gateways/connect-clients.md) |
| Gateway to upstream **MCP Server** | Negotiated with each server from the same set | The server's connection type, **HTTP** or **SSE**. **STDIO** is rejected. |

## Extensions

The gateway advertises these extensions in the `extensions` capability of `initialize` and `server/discover`:

| Extension | Advertised when |
| - | - |
| `io.modelcontextprotocol/skills` | The gateway exposes skills |
| `io.modelcontextprotocol/oauth-client-credentials` | Always. See [Client credentials](https://docs.orq.ai/ai-gateway/mcp-portal/mcp-gateways/connect-clients.md#client-credentials) |
| `io.modelcontextprotocol/enterprise-managed-authorization` | Always. See [Enterprise-managed authorization](https://docs.orq.ai/ai-gateway/mcp-portal/mcp-gateways/connect-clients.md#enterprise-managed-authorization) |

A client that sends no revision, or one older than the list, is served `2024-11-05`: `initialize` replies with that revision, and the gateway answers notifications with `200` instead of the `202` that Streamable HTTP requires. A revision newer than the newest supported one returns `UnsupportedProtocolVersion` with the accepted revisions in `supported`.

## Limits and defaults

Gateway request, response, timeout, rate, and tool caps are on [MCP Gateways](https://docs.orq.ai/ai-gateway/mcp-portal/mcp-gateways/security.md#runtime-limits). Server schema limits and health-check intervals are on [MCP Servers](https://docs.orq.ai/ai-gateway/mcp-portal/mcp-servers.md#tool-schemas) and [MCP Servers](https://docs.orq.ai/ai-gateway/mcp-portal/mcp-servers.md#health-checks).

## Errors

Common MCP Gateway errors and their fixes are in [Troubleshooting](https://docs.orq.ai/ai-gateway/mcp-portal/troubleshooting.md). The [API error reference](https://docs.orq.ai/reference/errors.md) covers the Orq.ai API error envelope.

## Not supported

* Per-user tool scoping: a gateway serves one tool surface to every project it is shared with.
* STDIO upstream servers: use HTTP or SSE.
* Gateway sessions: each MCP request stands on its own.
* Per-call approval in the MCP client: expose or hide tools on the gateway instead.

## API, SDK, and CLI

* [MCP Gateway API](https://docs.orq.ai/reference/mcp-gateway/list-mcp-gateways.md)
* [MCP Servers API](https://docs.orq.ai/reference/mcp-gateway/list-mcp-servers.md)
* [CLI reference](https://docs.orq.ai/reference/cli.md)


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