How to connect ChatGPT and Codex to Pandectes
Overview
This guide connects ChatGPT or Codex to your store through the Pandectes AI assistants connector. After that you can ask about your cookie banner, your latest cookie scan, your consent rates and your banner languages. The assistant can only read: it can't change settings or see customer data.
All three OpenAI apps sign in the same way: you add the Pandectes connector URL, a Connect to Pandectes page opens, and you approve it with your store key.
- ChatGPT on the web, through developer mode.
- The Codex app.
- The Codex CLI.
For what the connector does and how to cut access, see AI assistants connector: ask Claude or ChatGPT about your privacy setup.
Before you start
- Your Pandectes plan is Plus or higher.
- For ChatGPT on the web, your ChatGPT plan must offer developer mode. In a business workspace, an admin may have to allow it.
Step 1: Generate your store key
- In Shopify Admin, go to Apps > Pandectes GDPR Compliance > Integrations.
- Open the AI assistants tab and click Set up on the ChatGPT (Codex) card.
- Under Store key, click Generate key.
- Click the eye icon (Show key) to see the key, then click Copy.
You can show the key for 10 minutes only. After that the page shows just its last four characters, and you need to generate a new one if you lost it.
Keep this page open: you also need the Connector URL shown under Connect ChatGPT (Codex).
Step 2: Add Pandectes to your app
ChatGPT on the web
- In ChatGPT, go to Settings > Apps > Advanced settings and turn on Developer mode.
- Click Create app.
- Enter a name, for example
Pandectes, paste the Connector URL and choose OAuth for authentication. - Save the app. ChatGPT opens the Connect to Pandectes page (see Step 3).
Codex app
- In the Codex app, go to Plugins > MCPs and click Add. In some versions this is under Settings > MCP servers > Add server.
- Choose Streamable HTTP.
- Enter a name, for example
pandectes, and paste only the Connector URL. - Leave Bearer token env var and the header fields empty.
- Save, then click Authenticate. Codex opens the Connect to Pandectes page (see Step 3).
Codex CLI
- On the ChatGPT (Codex) page in Pandectes, copy the commands under Codex CLI. They already contain your connector URL and look like this:
codex mcp add pandectes --url CONNECTOR_URL
codex mcp login pandectes- Run both commands in your terminal. The second one opens the Connect to Pandectes page in your browser (see Step 3).
The commands don't include your key. You paste it on the Connect to Pandectes page instead.
Step 3: Approve the connection
- On the Connect to Pandectes page, paste your key in Pandectes key.
- Click Approve.
- You are sent back to ChatGPT or Codex, and Pandectes shows as connected.
Back in Pandectes, the ChatGPT (Codex) card now shows Connected, and the app appears under Connected assistants. Pandectes also emails your store's address about the new connection.
You can use the same key for ChatGPT, the Codex app and the Codex CLI. Each one appears as its own connection.
Step 4: Ask your questions
In ChatGPT, start a new chat in developer mode and select the Pandectes app. In Codex, start a new session. Then ask, for example:
- "Is my cookie banner showing?"
- "How many cookies are uncategorized in my latest scan?"
- "What were my consent rates in the last 30 days?"
Disconnect ChatGPT or Codex
On the ChatGPT (Codex) page in Pandectes:
- To remove one connection, click Disconnect next to it under Connected assistants and confirm. Your key keeps working.
- To stop every connection made with the key, click Revoke key and confirm.
Removing the app in ChatGPT or Codex (or running codex mcp remove pandectes) doesn't revoke the key in Pandectes.
Troubleshooting
- Codex stops at startup because an authentication environment variable is not set. Open the Pandectes server in Codex, clear Bearer token env var, save, and click Authenticate again.
- "This key is not valid or was revoked." Check that you copied the whole key, starting with
pdx_mcp_. If you generated a new key or revoked it, the old one no longer works: generate a new key and connect again. - "Connecting AI assistants needs a paid Pandectes plan (Plus or higher)." Upgrade your Pandectes plan, then connect again.
- "This sign-in took too long." The Connect to Pandectes page waits 15 minutes. Start the connection again from ChatGPT or Codex.
- "This key can't be shown any more." The 10 minutes to show the key have passed. Click Generate new key and copy the new one. This disconnects anything that used the old key.
Related articles
- AI assistants connector: ask Claude or ChatGPT about your privacy setup
- How to connect Claude to Pandectes
- How to connect another AI assistant to Pandectes
Updated on: 11/11/2026
Thank you!
