The fastest way: let Codex do it
Open Codex in your agent's folder and paste this prompt. It installs CatalEx, signs you in with Google (you click, it never sees your password), onboards the folder, checks a reply, then walks you through WhatsApp one step at a time.
Read https://docs.catalex.co/getting-started/agent-setup.md and set up CatalEx on this computer, then connect this agent to WhatsApp.
You do the WhatsApp-side steps yourself in the browser or on your phone. The agent asks before it links an account or widens its own permissions.
Connect Codex to WhatsApp step by step
- Install CatalEx. Download CatalEx for Mac, or run
curl -fsSL https://downloads.catalex.co/install/catalex.sh | sh, and sign in with Google. - Add your Codex agent. Point CatalEx at the folder you use Codex in and check it answers in the app's chat. Add an agent.
- Add a WhatsApp channel. Add a WhatsApp channel to the agent. For a business number you need a Meta developer app with the WhatsApp product and a system-user access token; Meta's test number works for trying it. To use your own number instead, choose WhatsApp Personal (experimental) and link CatalEx as a device from your phone. Connect WhatsApp.
- Send it a message. Choose who may message the agent, then send it a WhatsApp message from your phone and check the reply.
Or install the CatalEx plugin for Codex
With the CatalEx plugin, you skip the prompt: ask Codex to "Connect this agent to WhatsApp" and it sets CatalEx up the same way. In Codex, run:
codex plugin marketplace add catalex-ai/catalex-plugins
codex plugin add catalex@catalex
You can also ask it to "Open the CatalEx app". If CatalEx isn't installed yet, it asks first, installs it and opens the app. The plugin is free, holds only instructions and links, and is open source on GitHub.
CatalEx vs. other ways to connect Codex to WhatsApp
Most guides to this question describe giving Codex tools for WhatsApp. That lets the agent act in WhatsApp; it does not let people talk to the agent. If you want to message your agent from WhatsApp, or let your team or customers do it, you need a gateway that carries messages both ways. That is what CatalEx does.
| Option | What it does | How it differs from CatalEx |
|---|---|---|
| CatalEx | Runs your Codex agent on your Mac and carries WhatsApp messages to it and its replies back. | People message the agent; it answers with its own instructions and tools. |
| WhatsApp tools over MCP (a WhatsApp MCP server or tool connector) | Gives Codex tools to call WhatsApp while you drive it from the terminal, such as sending a message or calling the app's API. | It is a tool, not a way in. People cannot message your agent and get an answer, because nothing passes their messages to it. |
| Community WhatsApp bridges for Codex | Open-source scripts that link a personal number as a device and forward messages to a terminal session. | You run and secure them yourself, the session usually has to stay open, and access rules and approvals are up to you. |
Third-party details are from each vendor's public pages, as of 23 November 2026.
What your Codex agent keeps
Everything. CatalEx starts Codex in the agent's folder, so its AGENTS.md, skills and MCP servers work as in the terminal. Turns run on your ChatGPT plan or OpenAI API usage.
- Safe by default. Each agent starts locked down: commands sandboxed, terminal off, only people you allow can message it.
- Approvals in the chat. Risky actions wait for a person's yes or no in WhatsApp.
- Visibility. Every conversation, what the agent did and what it cost, in one activity view.
What you need
- A Mac with Apple silicon that stays awake and online while the agent should answer.
- Codex installed and signed in.
- A Google account to sign in to CatalEx.
- A WhatsApp Business number through Meta (or Meta's test number), or your own number with WhatsApp Personal.
Since 15 January 2026, Meta's WhatsApp Business rules do not allow general-purpose AI assistants on business numbers. Agents with a specific business purpose, such as support, bookings or operations, are allowed. For a general assistant, use WhatsApp Personal (experimental), Slack or Google Chat. WhatsApp does not officially support automation on personal numbers and may restrict a number that uses it.
Frequently asked questions
Can I connect Codex to WhatsApp?
Yes. CatalEx connects an existing Codex agent to WhatsApp, so people can message it there and get answers. It also connects the same agent to Slack and Google Chat.
Do I need to write code or host a server to put Codex on WhatsApp?
No. CatalEx Cloud carries the messages between WhatsApp and your Mac, so there is no server, webhook, tunnel or public address, and no SDK in your agent.
Is a WhatsApp MCP server enough?
Only if you want Codex to send or read WhatsApp messages while you use it in the terminal. To let people message the agent and get replies, you need a gateway such as CatalEx that passes their messages to the agent.
Does Codex keep its tools and instructions in WhatsApp?
Yes. The agent runs in its folder with its AGENTS.md, skills and MCP servers. You can narrow its tools and require approval for actions, per agent.
What does it cost?
CatalEx is free to use. Codex turns use your ChatGPT plan or OpenAI API usage, and Meta's fees apply to WhatsApp Business numbers.
I already run my own WhatsApp bridge for Codex. Why switch?
CatalEx replaces the script you maintain: no server, webhook or session to keep open, and no WhatsApp connection code to fix when it breaks. You also get rules for who may message the agent, approvals in the chat, message limits, and a record of every conversation and what it cost.
Is there a CatalEx plugin for Codex?
Yes. Add the catalex-ai/catalex-plugins marketplace to Codex and install the catalex plugin. Then ask Codex to connect the agent to WhatsApp, Slack or Google Chat, or to open the CatalEx app. It follows the same setup as the prompt.
Does it work on Windows or Linux?
Not yet. CatalEx and its agents run on Macs with Apple silicon.