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?
How do I install the plugin? (route A)
1
Add the marketplace
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)
~/.codex/config.toml. You can also add it by hand:
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: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
Should I use the plugin or the connection only in Codex?
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.
Do I put an API key or bearer token in config.toml?
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.
How do I sign in on a remote machine with no browser?
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.
Why is SmartAlex listed twice in Codex?
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.Why does Codex say invalid or expired token straight after I sign in?
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
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.

