Skip to main content
New
Announcing Agent Connector
Documentation menu
Documentation

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.

  1. Install and activate Agent Connector on your WordPress site.
  2. In your WordPress dashboard, in the left menu, click Agent Connector, navigate to the Connect tab (open by default), and click Get Started.
  3. Choose Codex CLI and click Continue.
  4. Click Generate app password.
  5. Under How to connect, click Copy on the command shown.
  6. Open your terminal (the Terminal app on both Mac and Windows), paste the command, and press Enter. The MCP server is added.
  7. 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.
  8. In your terminal, run codex to start Codex, and then ask it to do something — for example, “create a blog post about controlling WordPress with Codex.”
Put your AI agent to work.
Free and open source. Install, connect your agent, and go.
Agent Connector
For WordPress
Connect any MCP agent — Claude, Codex, OpenCode, and more — to WordPress, and give it real, administrator-level control.
From the blog
GPL-2.0-or-later · by soflyy
Built in WordPress + Oxygen via Agent Connector