Docs AI Agent OS Connecting Claude, ChatGPT, Grok and Codex

Connecting Claude, ChatGPT, Grok and Codex

Every agent has its own private MCP address. You paste that address into your AI app and approve the connection on your site. The app then works as that agent — with only that agent’s permissions, and every call recorded in the Activity Log under its name.

Agents OS → Agents → click the agent's name → Connect

Copy the Agent’s Address

Under Agent address, click Copy. The address looks like https://your-site.com/wp-json/ai-agent-os/v1/mcp/agent/…. It is private to this agent, so share it only with apps you trust. If it ever leaks, open the ⋮ menu beside Copy and choose Get a new address…: every app connected to the old address stops working and has to be added again.

Connect page with the agent address and app guides

Under Connect an app, pick the app you use. Each tab shows its steps and a link to the full guide on this page.

Signing in from Claude, ChatGPT or Grok needs your site to be served over HTTPS with permalinks not set to Plain. On a site without them, connect with the agent’s token instead (see Codex below).
If the Connect page says This web server removes the Authorization header, no app can use the address yet: the sign-in appears to succeed, then every call is refused. It shows the line to add to your server configuration.

Claude (claude.ai and the Desktop App)

  • In Claude, open Settings → Connectors, then click Add custom connector.
  • Give it a name (for example Admin Assistant) and paste the agent’s address. Leave the OAuth client ID and secret empty.
  • Click Add, then Connect on the connector that appears.
  • Approve the connection in the popup on your site (see The Approval Popup below).

ChatGPT

  • Open Settings → Plugins and switch on Developer mode at the bottom of the list.
  • Go back, click Browse plugins, then the + button beside the search box.
  • Type a name, leave Connection on Server URL and paste the agent’s address.
  • Leave Authentication on OAuth, tick I understand and want to continue, then click Create.
  • Approve the connection in the popup on your site. Then pick it from the + menu inside a chat.
ChatGPT keeps the list of tools it read when the app was added. If you change the agent’s permissions later, refresh the app in ChatGPT’s settings (or remove and add it again) and start a new chat.

Grok

Steps to connect Grok
  • On grok.com, open Settings → Connect Apps, then click Add a custom connector.
  • Paste the agent’s address and click Add MCP.
  • Approve the connection in the popup on your site.
Grok registers with your site before it can sign in. Only Grok’s own addresses (grok.com and x.ai) may register, and every connection still needs your approval. This is allowed by Let Grok sign in in Settings, which is on by default; the Grok tab is hidden while it is off.
If no sign-in window opens after Add MCP, allow pop-ups for grok.com in your browser and try again.

The Approval Popup

When an app connects, your site opens a small approval popup before anything is handed over. If you are not logged in, WordPress asks you to log in as an administrator first.

Approval popup shown when an app connects
Part of the popupWhat it tells you
The appWhich app is asking, and the address the connection is sent to (for example Claude (claude.ai)). The connection goes to that address and nowhere else.
The agentThe agent the app will act as, who it acts for and how many tools it has.
Three linesWhether it can change things or only look, whether it can delete, cancel or refund, and whether customer details are hidden. Green is safe, amber and red need your attention.
Show detailsThe agent’s tools, and how many other abilities it cannot see.
About this connectionWhere the connection goes, that no password or token is shown, and that nothing new is created.

Click Approve to connect, or Deny if you did not just start the connection yourself. Approving creates nothing and changes no permission: the app simply acts as your agent.

Don’t ask again is offered only for an agent that can only look, cannot delete and hides customer details. Tick it and that app connects to that agent without the popup next time, while you are logged in. The popup comes back as soon as the agent can do more, and Disconnect clears it.

Codex (with a Token)

Codex connects with the agent’s token instead of a sign-in. The token controls appear on the Codex and Other tabs only.

  • Click Issue a token on the Codex tab and copy it.
  • Save it in an environment variable — the tab names it for you, for example ZOREM_ADMIN_ASSISTANT_TOKEN.
  • Run the command shown on the tab, which includes your agent’s address.
codex mcp add admin-assistant --url https://your-site.com/wp-json/ai-agent-os/v1/mcp/agent/… --bearer-token-env-var ZOREM_ADMIN_ASSISTANT_TOKEN

Other Apps (Cursor, VS Code, Claude Code)

Add a remote MCP server in the app and paste the agent’s address. Sign in if the app offers it; otherwise issue a token on the Other tab and send it as Authorization: Bearer <token>.

The Agent’s Token

ActionWhat happens
Issue a tokenA new token (it starts with zag_) is shown once. Copy it straight away — it is stored only as a hash. Only its first few characters stay readable, to tell two tokens apart in the log.
Issue new tokenThe current token stops working the moment the new one is issued. Sign-ins from Claude, ChatGPT and Grok are not affected.

Connected Apps and Disconnecting

Connected apps at the bottom of the Connect page lists every app signed in as the agent right now, and the Agents list shows them in its Connected apps column. Click Disconnect beside one to sign it out; the others stay connected. Apps connected with a token are not listed: issue a new token to cut them off.

Because every agent has its own address, you can add several agents to the same Claude, ChatGPT or Grok account — for example Order Assistant and Support Assistant as two separate connectors, each with its own permissions.

How Long a Connection Lasts

A signed-in app refreshes its access quietly every hour. After 90 days it must be approved again — open the connector in the app and click Connect. A connection also ends when you:

  • Click Disconnect beside the app.
  • Revoke or delete the agent under Manage agent, or its access end date passes.
  • Choose Get a new address… on the Connect page (the old address stops working and every sign-in ends).
  • Leave the app unused for 30 days.