> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.it.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Grok Bot

> Connect an xAI Grok Bot over remote MCP or the ait CLI

[Grok Bot](https://docs.x.ai/grok-bot/overview) gives each Bot a persistent cloud computer with a browser, filesystem, and terminal. It comes with X Premium, Super, and Ultra. A Bot can reach Automate It two ways: as a custom MCP server, or by running the `ait` CLI in its terminal.

> [!WARNING]
>
> We haven't run this setup end to end yet. It follows xAI's Grok Bot docs as of November 2026. If a step doesn't match what you see, xAI's docs are the source of truth.

## Option A: remote MCP

Automate It isn't in Grok Bot's app catalog, but a Bot can [add an MCP server by URL](https://docs.x.ai/grok-bot/computer-and-apps). Ask it:

```text wrap theme={null}
Add a custom MCP server named automate-it at https://api.automate.it.com/mcp
```

If the Bot offers an OAuth sign-in, take it and approve access in the browser; there's no key to store. If it asks for a header instead, create an API key (below) and give it through the Bot's secure secret card as `Authorization: Bearer ak_…`.

## Option B: the ait CLI

### Get an API key

1. Open **Profile**. On the web, click your avatar at the bottom of the sidebar (`https://automate.it.com/app/settings/profile`). In the mobile apps, tap your avatar in the top left, tap your name at the bottom of the menu, then **Profile**.
2. Under **Developer API Keys**, click **Create Key**.
3. Name it something you'll recognize ("Grok Bot agent") and tick `tasks:read`, `tasks:write`, `content:write`, and `skills:read`. That's enough to create tasks, submit content for review, and read your workspace's voice and formatting skills. Add `files:write` if the agent uploads media.
4. Copy the `ak_…` secret. It's shown **once**. Store it where Grok Bot keeps secrets (below), and never paste it into a chat message.

The full scope table is in [API keys & scopes](https://docs.automate.it.com/api-keys.md).

When the Bot asks for the key, enter it in the [secure secret card](https://docs.x.ai/grok-bot/vault) rather than in chat, with the environment variable name `AUTOMATE_IT_API_KEY`. Then ask the Bot to install the CLI and check access:

```bash theme={null}
npm install -g automate-it
ait workspaces
```

> [!NOTE]
>
> Installed packages don't survive a **Recover** or **Reset** of the Bot's computer. If `ait` goes missing, ask the Bot to run `npm install -g automate-it` again.

## Try it

```text wrap theme={null}
Use automate-it to write an X post about this week's release notes and submit it for review.
```

The draft lands in your [review queue](https://docs.automate.it.com/workflow/review.md). The Bot can revise it after you redo it. What it may do is bounded by the [workspace role](https://docs.automate.it.com/workspace/team.md) of the account behind its API key or OAuth sign-in. The [CLI reference](https://docs.automate.it.com/guides/cli.md) lists every command, and [Worker mode](https://docs.automate.it.com/guides/worker-mode.md) describes the loop.


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