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

# Codex

> Connect the Codex CLI with one command and a browser sign-in.

> [tab] Sign in with your browser
>
> `codex mcp login` opens your browser: sign in to Constella and press **Allow**.
>
> ```bash theme={"system"}
> codex mcp add constella --url https://api.constella.app/mcp
> codex mcp login constella
> ```

> [tab] Use your key
>
> Codex reads the key from your shell, so it never sits in the file. Run `export CONSTELLA_API_KEY="csk_..."` too.
>
> ```toml ~/.codex/config.toml theme={"system"}
> [mcp_servers.constella]
> url = "https://api.constella.app/mcp"
> bearer_token_env_var = "CONSTELLA_API_KEY"
> http_headers = { "X-Constella-Tools" = "catalog", "X-Constella-Client" = "codex" }
> ```

> [!TIP]
>
> **Try it.** Ask: "What do I know about our pricing?" Then: "Remember that we ship on Fridays." Ask again in a new chat and it will know.

To make Codex use its memory every time, add the rules in [Give your agent memory](/dev/docs/guides/agent-memory.md) to your `AGENTS.md`.

## Where its memories go

What it saves goes into your Memory, in the **Codex** folder under **Connected apps** in your Library. Every search finds it, but it is not a note. It becomes a note only if you put it on a canvas or add it to your Library. See [Where memories land](/dev/docs/concepts/folders.md).


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