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

# Codex CLI & Desktop

> Full automatic memory in Codex CLI; Codex Desktop installs the same plugin via its marketplace.

## Install

[One command](https://docs.atlaso.ai/install.md) sets up Codex along with any other AI tools on this
machine:

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

Pick **Codex** when the CLI asks which tools should share your memory. Already
have Atlaso? Run `atlaso setup` and add it.

One install covers **both** Codex CLI and Codex Desktop — they share `~/.codex`,
so you don't set them up separately.

> [accordion] Installing from Codex instead
>
> In the Codex CLI:
>
> ```bash theme={null}
> codex plugin marketplace add atlaso-labs/codex && codex plugin add atlaso@atlaso
> ```
>
> Codex Desktop installs the same plugin through its **marketplace UI**.
> Capabilities are identical either way — the CLI just also links the device and
> sets up your other tools in one pass.

## What it wires

| Piece | What it does |
| - | - |
| Hooks | Recall before every prompt · capture after every turn |
| MCP tools | Save, recall, list, and forget memories on demand |
| Ambient Memory (Pro) | Session-start orientation block |

## Known issue: Codex Desktop going quiet

A known Codex Desktop issue can stop plugin hooks from firing after certain
updates — memory silently stops. Set `ATLASO_DEBUG=1` in your environment to
see whether hooks are running; if they aren't, reinstall the plugin from the
marketplace. Codex CLI is unaffected.

## Removing it

```bash theme={null}
atlaso unlink codex
```

That revokes Codex's access and removes the plugin — from the CLI and Desktop
at once, since they share the same config. By hand:
`codex plugin remove atlaso@atlaso`.


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