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

# Set up with Codex

> Connect the AI Growth Agent MCP server to Codex.

Add AI Growth Agent as a remote MCP server, then sign in:

```sh theme={null}
codex mcp add ai-growth-agent --url https://mcp.aigrowthagent.co/mcp
codex mcp login ai-growth-agent
```

`codex mcp login` runs the OAuth flow in your browser.

The equivalent configuration in `~/.codex/config.toml`:

```toml theme={null}
[mcp_servers.ai-growth-agent]
url = "https://mcp.aigrowthagent.co/mcp"
```

## Signing in

`codex mcp login ai-growth-agent` opens the AI Growth Agent login page on
`auth.aigrowthagent.co` in your browser:

* Type your AI Growth Agent email and password into the browser page only —
  credentials never pass through the AI.
* Access tokens are short-lived (1 hour) and Codex refreshes them
  automatically.
* If a token is rejected, run `codex mcp login ai-growth-agent` again (or
  remove and re-add the server) to sign in again.

## Try it

Ask Codex: "List my available AI Growth Agent accounts." It will call
`list_accounts` and answer with your accounts and the session's current
account. See [List available accounts](/tasks/list-accounts) for more.
