Connect the OpenAI Codex CLI
The Codex CLI can work on your SitePack site through the same connector. It uses the Model Context Protocol (MCP), so once it is connected you can ask Codex in the terminal to read or change your site's content, exactly like the Claude connector, on the one site you approve.
There are two ways to connect: with a browser sign-in, or with a token.
This page assumes you are comfortable with the terminal and with ~/.codex/config.toml. If you just want to use an AI assistant on your site, the Claude desktop app is the simplest option.
With browser sign-in (recommended)
Codex connects to remote MCP servers natively, so no extra tools are needed. Add the connector and sign in:
codex mcp add sitepack --url https://admin.sitepack.eu/api/mcp
codex mcp login sitepack
The first command adds this to ~/.codex/config.toml, which you can also write by hand:
# ~/.codex/config.toml
[mcp_servers.sitepack]
url = "https://admin.sitepack.eu/api/mcp"
The second command opens a browser tab with the SitePack sign-in and the permission screen, where you pick your site and approve. Codex stores the result, so you only do this once. After that, the SitePack tools are available in Codex.
With a token (no browser step)
If you would rather not use the browser flow, for example on a server or in a CI pipeline, ask your SitePack contact for a personal access token. It is tied to one site and to the same permissions, and can be revoked at any time.
Put the token in an environment variable and tell Codex which one to read, so it never ends up in the config file:
export SITEPACK_TOKEN="YOUR_TOKEN"
# ~/.codex/config.toml
[mcp_servers.sitepack]
url = "https://admin.sitepack.eu/api/mcp"
bearer_token_env_var = "SITEPACK_TOKEN"
Codex has to be started from a shell where that variable is set.
A personal access token is a password: keep it out of shared config and version control. If it leaks, ask for it to be revoked and issue a new one.
What you can do
The same tools as the Claude connector: pages, menus, media, products, categories, tags and translations, on the one site the connection is bound to. See Connect Claude for the full list.
Frequently asked questions
Does Codex get access to my whole account?
No. Like every SitePack connection, it is bound to one site and to the permissions you approve.
How do I disconnect?
Run codex mcp logout sitepack and remove the [mcp_servers.sitepack] block from ~/.codex/config.toml. If you used a token, ask your SitePack contact to revoke it as well.