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

# Connect Codex

> Add Allocait to Codex with the same sign-in.

Codex uses the same MCP server and the same sign-in as ChatGPT. You add the server from a terminal, then sign in to your Allocait account in your browser.

## Add the server

**1. Add the server**

```bash theme={null}
codex mcp add allocait --url https://api.allocait.app/functions/v1/mcp
```

**2. Sign in**

```bash theme={null}
codex mcp login allocait
```

Codex opens your browser to Allocait's sign-in and consent screens. Choose **Read only** or **Read and change**, then select **Allow**. See [Access](https://docs.allocait.app/chatgpt/access.md) for what each allows.

For what the consent screen shows and what to do if a request expires, see [Connect ChatGPT](https://docs.allocait.app/chatgpt/connect.md#before-you-start).

If the sign-in doesn't start, run `codex mcp login allocait --oauth-client-registration dcr`.

To see the server and its tools, see [OpenAI's Codex guide to MCP servers](https://developers.openai.com/codex/mcp).

## Use a config file

You can also add the server to `~/.codex/config.toml`:

```toml theme={null}
[mcp_servers.allocait]
url = "https://api.allocait.app/functions/v1/mcp"
```

## Timeouts

Codex sets its own timeouts for starting a server and for a tool call. See [OpenAI's Codex guide to MCP servers](https://developers.openai.com/codex/mcp) to change them. For what a timeout or sign-in message means, see [ChatGPT errors](https://docs.allocait.app/chatgpt/errors.md).

## Next steps

> [card] [Access](https://docs.allocait.app/chatgpt/access.md)
>
> What you allow, and how to change or remove it.

> [card] [What is sent](https://docs.allocait.app/chatgpt/data.md)
>
> What Codex sends and why prices come from you.


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