---
title: Grok
description: Connect Orchestor to Grok on grok.com, Grok Build, or the xAI API
  and create images, video and audio from Grok.
canonical_url: https://orchestor.io/docs/agent-setup/grok
markdown_url: https://orchestor.io/docs/agent-setup/grok.md
related:
  - https://orchestor.io/docs/mcp/tools/image_models_list
  - https://orchestor.io/docs/agent-setup/claude-code
  - https://orchestor.io/docs/agent-setup/codex
  - https://orchestor.io/docs/agent-setup/cursor
  - https://orchestor.io/docs/agent-setup/opencode
contentType: how-to
---

# Grok

Grok connects to the hosted Orchestor MCP server at `https://mcp.orchestor.io/mcp`. You need an [Orchestor account](https://www.orchestor.io/signup?utm_source=grok&utm_medium=mcp_guide).

## grok.com

1. Open [grok.com/connectors](https://grok.com/connectors) and create a new connector.
2. Choose **Custom**, enter `Orchestor` as the name and `https://mcp.orchestor.io/mcp` as the URL.
3. Sign in to Orchestor in the browser window, choose the workspace and access, and approve.

On Grok Business and Enterprise, an admin first adds the connector in the xAI console under **Grok Business** → **Connectors**. [Grok connector instructions](https://docs.grok.com/grok/connectors)

## Grok Build

Add the server from the terminal, then authenticate when Grok Build prompts you.

```bash
grok mcp add --transport http orchestor https://mcp.orchestor.io/mcp
```

Run `grok mcp doctor` to check the connection. To add the Orchestor skills as well, install the plugin from `https://github.com/orchestor-inc/orchestor-plugin`. [Grok Build MCP instructions](https://docs.grok.com/build/features/mcp-servers)

## xAI API

The Responses API can call Orchestor as a remote MCP tool. Create an Orchestor API key in your workspace and pass it as the authorization value. Keep the key on your server.

```json
{
  "tools": [
    {
      "type": "mcp",
      "server_url": "https://mcp.orchestor.io/mcp",
      "server_label": "orchestor",
      "allowed_tools": ["image_models_list", "generate_image", "jobs_wait"],
      "authorization": "<ORCHESTOR_API_KEY>"
    }
  ]
}
```

Limit `allowed_tools` to the tools you need, so that the other tool definitions stay out of the model context. [xAI remote MCP tools](https://docs.grok.com/developers/tools/remote-mcp)

## Verify the connection

Ask Grok:

> Use Orchestor’s [`image_models_list`](https://orchestor.io/docs/mcp/tools/image_models_list.md) to list the available image models. Do not start a generation.

A list of model IDs confirms the connection. Generations spend credits from the authorized workspace.

## Other agents

- **[Claude Code](https://orchestor.io/docs/agent-setup/claude-code.md)**
  Install the Orchestor Plugin and check the available image models from Claude Code.

- **[Codex](https://orchestor.io/docs/agent-setup/codex.md)**
  Add the MCP server and connect your workspace with OAuth.

- **[Cursor](https://orchestor.io/docs/agent-setup/cursor.md)**
  Add MCP to your editor to access Orchestor data while you work.

- **[OpenCode](https://orchestor.io/docs/agent-setup/opencode.md)**
  Configure the remote MCP server and authenticate to access your data.

---

- [Documentation index](https://orchestor.io/docs/llms.txt)
- [Documentation sitemap](https://orchestor.io/docs/sitemap.md)
