Skip to main content
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.
In the Codex app: Plugins → SmartAlex. In the terminal: codex plugin add smartalex@smartalex-plugins, then codex mcp login smartalex.

What do I need first?

  • A SmartAlex account with a workspace. New? Start free and finish setup until you see your dashboard.
  • Codex installed. Check with codex --version.

What is the quickest way?

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

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:
3

Sign in

If you were not asked to sign in during the install:
Your browser opens a SmartAlex page. Sign in if asked, check the account under Approving as, and click Approve.
4

Check it works

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

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

Then sign in:
The command adds this to your Codex settings file, ~/.codex/config.toml. You can also add it by hand:
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.

What if there is no browser on this machine?

On a remote machine or over SSH, sign in like this:
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?

Removing SmartAlex from Codex does not end the sign-in on our side. To end it there too, see Check and disconnect.

What if it does not work?

More: Troubleshooting.

Questions people ask

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

Install the plugin

The plugin for Claude Code, Codex and Cursor.

Install in Cursor

Four routes, including Team and Enterprise workspaces.

Plugin skills

What each skill does and what it checks first.

Troubleshooting

Find what you see, then do what it says.
Last modified on November 27, 2026