How to Connect Codex CLI to WordPress with Agent Connector
Follow the instructions below to connect Codex CLI (the version of Codex that runs in your terminal) to your WordPress site with Agent Connector.
- Install and activate Agent Connector on your WordPress site.
- In your WordPress dashboard, in the left menu, click Agent Connector, navigate to the Connect tab (open by default), and click Get Started.
- Choose Codex CLI and click Continue.
- Click Generate app password.
- Under How to connect, click Copy on the command shown.
- Open your terminal (the Terminal app on both Mac and Windows), paste the command, and press Enter. The MCP server is added.
- Recommended – Back in WordPress, open Agent Connector → Settings and install the Universal Abilities plugin — this gives your AI agent abilities to make common changes to your WordPress site.
- In your terminal, run
codexto start Codex, and then ask it to do something — for example, “create a blog post about controlling WordPress with Codex.”