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

# Grok

> Automatic capture in the grok CLI; recall comes through the Atlaso tools.

This page is about Grok Build, the `grok` coding CLI.

## Install

[One command](https://docs.atlaso.ai/install.md) installs the Atlaso CLI and connects a tool:

```bash theme={null}
curl -fsSL https://atlaso.ai/install.sh | bash
```

The CLI asks which tool to connect: pick **Grok**. To add another tool later,
run `atlaso setup` again. Already have Atlaso? Run `atlaso setup` and pick
Grok.

> [!WARNING]
>
> Last step: start a **fresh `grok` session** so it loads the plugin and the
> Atlaso MCP server.

> [accordion] What setup changes
>
> Grok has no plugin install command, so the Atlaso CLI writes the plugin to
> `~/.grok/plugins/atlaso` itself. When the `grok` command is on your PATH, it
> registers the `Atlaso` MCP server with `grok mcp add`. It then turns the
> plugin on by adding `"atlaso"` to `[plugins].enabled` in
> `~/.grok/config.toml`, after saving a backup of that file.
>
> The memory engine runs on [uv](https://docs.astral.sh/uv). If uv is missing,
> the CLI installs it for you.

## How memory works in Grok

Memory saves automatically after every turn you don't cancel. Grok does not pass a prompt
hook's output to the model, so recall is not added to your prompts: it comes
through the Atlaso tools, which the model calls when past context helps. You
can also ask it to recall directly.

Saving runs in interactive `grok` sessions. Headless `grok -p` runs no plugin
hooks, so nothing is saved automatically there, but the Atlaso tools still
work.

## What it wires

| Piece | What it does |
| - | - |
| Hooks | Capture after your turns · session sync |
| MCP server | Memory tools your model can call directly |
| Skill | Memory-aware behaviors |

## Removing it

```bash theme={null}
atlaso unlink grok-build
```

That revokes Grok's access, removes the plugin and undoes what setup changed in
`~/.grok/config.toml`. If this machine still has a shared credential, the CLI
tells you before it unlinks: that credential is revoked too, so afterwards run
`atlaso setup` to sign your other tools back in.

By hand: delete `~/.grok/plugins/atlaso`, run `grok mcp remove Atlaso`, then
remove `"atlaso"` from `[plugins].enabled` in `~/.grok/config.toml`.


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