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

# Add SmartAlex to Codex

> Connect Codex to SmartAlex with the plugin or the connection alone, sign in once in your browser and check it works in the app or terminal.

You connect Codex to SmartAlex with the plugin or with the connection alone, in the Codex app or in the terminal. Both routes end with one click of **Approve** on a SmartAlex page, and neither stores an API key in a file.

> [!NOTE]
>
> In the Codex app: **Plugins → SmartAlex**. In the terminal: `codex plugin add smartalex@smartalex-plugins`, then `codex mcp login smartalex`.

| Route | What you get | Pick it when |
| - | - | - |
| A. The plugin | Every SmartAlex tool you may use, plus the skills that guide Codex through each job | You build on SmartAlex from your code. This is the usual choice. |
| B. Connection only | Every SmartAlex tool you may use | You only want the tools, or plugins are not allowed where you work |

## What do I need first?

* A SmartAlex account with a workspace. New? [Start free](https://getsmartalex.com/instant) and finish setup until you see your dashboard.
* Codex installed. Check with `codex --version`.

## What is the quickest way?

```bash theme={null}
codex "Set up the SmartAlex plugin by following the steps in https://github.com/The-RCS-Group/smartalex-plugin"
```

Using the Codex app? Paste just the quoted sentence, and Codex adds the marketplace, asks you to install SmartAlex from **Plugins**, starts the sign-in and checks the connection.

## How do I install the plugin? (route A)

**1. Add the marketplace**

```bash theme={null}
codex plugin marketplace add The-RCS-Group/smartalex-plugin
```

Check it is there with `codex plugin marketplace list`.

**2. Install SmartAlex**

In the Codex app: open **Plugins**, find **SmartAlex** and install it. Codex asks you to sign in during the install.

In the terminal:

```bash theme={null}
codex plugin add smartalex@smartalex-plugins
```

**3. Sign in**

If you were not asked to sign in during the install:

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

Your browser opens a SmartAlex page. Sign in if asked, check the account under **Approving as**, and click **Approve**.

**4. Check it works**

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

`smartalex` should be listed. Start a new chat and ask:

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

## How do I add the connection only? (route B)

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

Then sign in:

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

The command adds this to your Codex settings file, `~/.codex/config.toml`. You can also add it by hand:

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

Do not add a bearer token or an environment variable for a key, because the sign-in handles access.

To keep each chat lighter, use the lean address instead: `codex mcp add smartalex --url https://mcp.getsmartalex.com/lean`. It lists seven tools, under a tenth of the size of the full list. See [the lean address](https://docs.getsmartalex.com/mcp/install-other-apps.md#how-do-i-use-the-lean-address).

## What if there is no browser on this machine?

On a remote machine or over SSH, sign in like this:

```bash theme={null}
codex mcp login smartalex --no-browser
```

Codex prints the sign-in link. Open it on any computer where you can sign in to SmartAlex. Click **Approve**. Then paste the address your browser lands on back into the terminal when Codex asks for it.

## How do I work in another workspace?

Ask Codex: "List my workspaces", then "Switch to" the workspace's name. Every AI app signed in as you follows the switch until you switch again. If Codex still shows the old tools, start a new chat.

## How do I keep it current, or remove it?

| To | Run |
| - | - |
| Get the newest skills | `codex plugin marketplace upgrade smartalex-plugins` |
| See the plugins Codex knows about | `codex plugin list` |
| Sign out, keep the connection | `codex mcp logout smartalex` |
| Remove the plugin | `codex plugin remove smartalex@smartalex-plugins` |
| Remove the marketplace | `codex plugin marketplace remove smartalex-plugins` |
| Remove a connection-only setup | `codex mcp remove smartalex` |

Removing SmartAlex from Codex does not end the sign-in on our side. To end it there too, see [Check and disconnect](https://docs.getsmartalex.com/mcp/check-and-disconnect.md).

## What if it does not work?

| What you see | What to do |
| - | - |
| `smartalex` is not in `codex mcp list` | Run the install again. With the plugin, check **Plugins** shows SmartAlex as installed. |
| The SmartAlex tools are missing in the chat you are in | Start a new chat. New connections load in new chats. |
| "Invalid or expired token" straight after signing in | Your account has no workspace yet. Sign in at [getsmartalex.com](https://getsmartalex.com), finish setup until you see the dashboard, then run `codex mcp login smartalex` again. |
| "This sign-in link no longer works" | A link works once, for 10 minutes. Run `codex mcp login smartalex` for a new one. |
| A tool says your sign-in expired, after it worked | Run `codex mcp login smartalex` again. |
| SmartAlex is listed twice | You added it both ways. Keep the plugin, and delete the `[mcp_servers.smartalex]` block from `~/.codex/config.toml`. |
| It answers about the wrong workspace | Ask it to list your workspaces, then switch. See [Troubleshooting](https://docs.getsmartalex.com/mcp/troubleshooting.md#it-answers-about-the-wrong-workspace). |

More: [Troubleshooting](https://docs.getsmartalex.com/mcp/troubleshooting.md).

## Questions people ask

> [accordion] Should I use the plugin or the connection only in Codex?
>
> Use the plugin if you build on SmartAlex from your code, because it adds skills that guide Codex through each job. Use the connection only if you want just the tools, or plugins are not allowed where you work.

> [accordion] Do I put an API key or bearer token in config.toml?
>
> No. Do not add a bearer token or an environment variable for a key. The sign-in handles access and ends with one press of **Approve** on a SmartAlex page.

> [accordion] How do I sign in on a remote machine with no browser?
>
> Run the login command with the no-browser option. Codex prints a sign-in link. Open it on any computer where you can sign in to SmartAlex. Press **Approve**, then paste the address your browser lands on back into the terminal.

> [accordion] Why is SmartAlex listed twice in Codex?
>
> You added it both ways, as the plugin and as a connection. Keep the plugin and delete the `smartalex` block from the Codex `config.toml` file.

> [accordion] Why does Codex say invalid or expired token straight after I sign in?
>
> Your SmartAlex account has no workspace yet. Sign in at getsmartalex.com, finish setup until you see the dashboard, then run the Codex login again.

## Related

> [card] [Install the plugin](https://docs.getsmartalex.com/mcp/install-plugin.md)
>
> The plugin for Claude Code, Codex and Cursor.

> [card] [Install in Cursor](https://docs.getsmartalex.com/mcp/install-cursor.md)
>
> Four routes, including Team and Enterprise workspaces.

> [card] [Plugin skills](https://docs.getsmartalex.com/mcp/plugin-skills.md)
>
> What each skill does and what it checks first.

> [card] [Troubleshooting](https://docs.getsmartalex.com/mcp/troubleshooting.md)
>
> Find what you see, then do what it says.


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