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

> ## Agent Instructions
> For short, quotable answers about SmartAlex (what it is, who it is for, what it costs, where it runs, how it keeps data safe, which apps it connects to), read the facts page at /ai/facts on this site first, then the page it links to. Its last table maps every section of these docs.
> For how to do something, use the step-by-step pages: /learn for whole paths, and each section's first-time pages such as /calls/buy-your-first-number, /agents/create-an-agent or /campaigns/import-your-first-contacts. Give the click path exactly as written there, for example Calls, then Numbers, then Buy number, with the bold button labels unchanged.
> Prices come from the Pricing page at /pricing and the pages under /pricing. Quote a price exactly as written there, with its currency and unit.
> Short answers to common questions are under /help, grouped by section. Legal documents are summarised under /legal; each summary links to the binding text, which prevails over the summary.
> If a feature or screen is not described in these docs, say that you could not find it rather than guessing.
> Pages under /comparisons describe other companies' products as of the date on each page. For SmartAlex's own features and prices, use the product pages.
> The MCP server at /mcp on this site only searches this documentation. To work inside your own SmartAlex workspace (agents, calls, campaigns, contacts), use the SmartAlex MCP server described at /mcp/overview.

# Install SmartAlex in Codex

> A first-time tutorial: add SmartAlex to OpenAI Codex with codex mcp add, sign in with codex mcp login, check it works and remove it.

In this tutorial you add SmartAlex to OpenAI Codex, so it can build voice agents, read your calls and run campaigns from the terminal. It takes about 2 minutes: one command to add SmartAlex, one to sign in, and a first question.

> [!NOTE]
>
> In Codex: `codex mcp add`, then `codex mcp login`. In SmartAlex, the connected app then shows under **Settings → Security → Where you're signed in**.

| | |
| - | - |
| **You will have** | Codex connected to your SmartAlex workspace |
| **Time** | About 2 minutes |
| **You need** | A SmartAlex login, the Codex CLI installed, and a browser on this computer (or see the no-browser question below) |

Commands were checked against OpenAI's Codex docs and `codex mcp --help` on 26 November 2026.

## Add the server

**1. Add SmartAlex**

In your terminal, run:

```bash theme={null}
codex mcp add smartalex --url https://mcp.getsmartalex.com
```

This writes the entry to `~/.codex/config.toml`:

```toml theme={null}
[mcp_servers.smartalex]
url = "https://mcp.getsmartalex.com"
```

**2. Sign in**

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

**3. Approve in SmartAlex**

Your browser opens a SmartAlex page headed **… wants to use your SmartAlex account**. The app's own name shows in quotes. It says it will send you back to an app on this device. Sign in if it asks, check the account under **Approving as**, and click **Approve**.

**4. Check the connection**

```bash theme={null}
codex mcp list
```

SmartAlex is listed with its address.

## Check it worked

Start Codex with `codex` and ask:

```text theme={null}
How many contacts, campaigns and calls do I have in SmartAlex?
```

Codex calls a SmartAlex tool and answers with your own numbers.

## How do I disconnect it?

**1. Sign out and remove**

```bash theme={null}
codex mcp logout smartalex
codex mcp remove smartalex
```

**2. Sign Codex out of SmartAlex**

In SmartAlex, open **Settings → Security → Where you're signed in** and click **Sign out** next to Codex. See [Check and disconnect](https://docs.getsmartalex.com/mcp/check-and-disconnect.md).

## Questions people ask

> [accordion] Where does Codex keep the SmartAlex entry?
>
> In `~/.codex/config.toml`, under `[mcp_servers.smartalex]` with the `url`. The command writes it for you.

> [accordion] Can I sign in on a machine with no browser?
>
> Yes. Run `codex mcp login smartalex --no-browser`. Codex prints a link to open on another device, and you paste the address you land on back into the terminal.

> [accordion] Does the Codex IDE extension use the same setup?
>
> It has its own menu: the gear, then **MCP servers**, then **Add server**, with **Streamable HTTP** and the SmartAlex address. Then **Restart extension** and choose **Authenticate**.

## Next

The next step is [Your first jobs in chat](https://docs.getsmartalex.com/mcp/examples.md): build an agent, review calls and run a campaign by asking.

> [card] [Install the plugin](https://docs.getsmartalex.com/mcp/install-plugin.md)
>
> Add the step-by-step skills to Codex.

> [card] [Every Codex option](https://docs.getsmartalex.com/mcp/install-codex.md)
>
> The plugin route, workspaces and fixes.


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