✳Advanced Addons
Codex Bridge docs npm package ↓

Advanced Addons Pro · Setup guide

Connect WordPress to Codex.

The Codex Bridge connects Advanced Addons Pro in Gutenberg or Elementor to ChatGPT Codex running on your computer.

6 setup steps 20+ Node.js required 10 min pairing window
↓ Start the setup
LOCAL & SECURE

Your editor talks only to your machine.

The bridge uses a secure loopback WebSocket at wss://localhost:43118. That connection is never exposed to the public internet.

WordPress 43118 Codex

Before you begin.

Four things
you’ll need.

  1. 01

    Node.js 20+

    Installed on the computer where you edit WordPress.

    node -v Download Node.js ↗
  2. 02

    Advanced Addons Pro

    Active, with the Codex Agent editor integration available.

  3. 03

    ChatGPT account

    An account with access to Codex.

  4. 04

    Same computer

    Open WordPress in a browser on the machine running the bridge. Local and remote sites both work.

✓

No OpenSSL installation required. The bridge handles certificate setup for you.

01
INSTALL THE PACKAGE

Add the bridge to your computer.

Open Terminal on macOS or Linux, or PowerShell / Command Prompt on Windows. Install the command-line tool globally:

Terminal Copy
npm install -g @advanced-addons/codex-bridge

Confirm the installation:

Terminal Copy
advanced-addons-codex --version
EXPECTED RESULT

A version number such as 0.8.11 or newer.

Run without a global installation +

You can start the bridge directly with npx:

Terminal Copy
npx -y @advanced-addons/codex-bridge start

For everyday use, the global install is simpler.

02
FIRST-START SECURITY

Certificate setup happens automatically.

The first time you start the bridge on a computer, it creates and trusts the localhost certificate automatically:

Terminal Copy
advanced-addons-codex start

1 Create The bridge creates a local HTTPS certificate for localhost.

2 Trust The bridge adds it to your operating system’s certificate store.

3 Approve Accept the system prompt if Windows, macOS, or Linux asks for permission.

Approve the trust prompt if asked.

Later starts reuse the trusted certificate and do not prompt again.

03
START THE BRIDGE

Run the local connection.

Terminal Copy
advanced-addons-codex start

The bridge prints a six-digit pairing code. Copy it—you’ll enter it in WordPress next.

Codex Bridge
Codex bridge started on wss://localhost:43118/v1/editor (PID …). Pairing code: 123456 (expires in 10 minutes) Capabilities: isolated Codex home Log: ~/.advanced-addons/codex-bridge/bridge.log

You can close the terminal window after starting. The bridge continues in the background until you stop it.

CHECK HEALTH advanced-addons-codex status Copy
STOP THE BRIDGE advanced-addons-codex stop Copy
04
CONNECT WORDPRESS

Pair your editor and sign in.

  1. 1

    Open a post or page in Gutenberg or Elementor.

  2. 2

    Open the Advanced Addons chat / agent interface and choose Codex Agent (Beta).

  3. 3

    Enter the six-digit pairing code from the bridge.

  4. 4

    Choose Sign in with ChatGPT and complete login in the browser window.

  5. 5

    Start sending prompts and editing the current document with Codex.

PAIR WITH CODEX BRIDGE
1 2 3 4 5 6
Connect bridge →

Secure local connection

Single-use

Each code works once and expires after 10 minutes. Stop and restart for a new code.

Bound locally

Pairing connects this WordPress origin and user to the bridge in that browser.

Login remembered

ChatGPT sign-in is stored in the isolated bridge runtime, so it is usually needed only once per machine.

05
EVERYDAY WORKFLOW

Start. Build. Stop.

01 Start advanced-addons-codex start
→
02 Build

Use Codex Agent in Gutenberg or Elementor.

→
03 Stop advanced-addons-codex stop

Copy a new pairing code only when the editor asks for one.

06
KEEP IT CURRENT

Update the bridge.

Terminal Copy
npm install -g @advanced-addons/codex-bridge@latest advanced-addons-codex stop advanced-addons-codex start
0.8.11+
Minimum supported version

Newer versions are accepted when they meet the minimum, match the plugin protocol major version, and use the pinned Codex version shipped with the package.

Optional configuration.

Share your normal
Codex home.

By default, the bridge uses an isolated Codex home. Your normal CLI/app login, MCP servers, and skills stay separate.

To reuse your existing login and enabled configuration:

Terminal Copy
advanced-addons-codex stop advanced-addons-codex start --share-codex-home
Use shared mode only if you trust your configured MCP servers.

Same-origin HTTP MCP servers for the active WordPress site are disabled in editor sessions. Shell, filesystem writes, web search, hooks, apps, and multi-agent tools remain unavailable.

When something isn’t working.

Troubleshooting.

01

Cannot reach the bridge

Run advanced-addons-codex start, then status. Confirm health is ready.

02

Certificate or insecure WebSocket error

Run advanced-addons-codex install again and accept the trust prompt.

03

Pairing code rejected

Codes expire after 10 minutes and are one-time. Stop and start the bridge for a new code.

04

Version mismatch

Install the latest package, then restart. Advanced Addons Pro requires bridge version 0.8.11+.

05

Command not found

Reinstall globally or use npx. Ensure npm’s global bin directory is on your PATH.

06

Need logs

macOS/Linux: ~/.advanced-addons/codex-bridge/bridge.log
Windows: %USERPROFILE%\.advanced-addons\codex-bridge\bridge.log

WINDOWS

PowerShell or Command Prompt

Install Node.js 20+, then use the same install, start, and stop commands. No separate OpenSSL installation is required.

MACOS / LINUX

Check the npm global path

If the command is not found after installation, ensure npm’s global bin path is on PATH. You can inspect it with npm bin -g.

Keep this nearby.

Quick reference.

Command Purpose
npm install -g @advanced-addons/codex-bridge Install or update the CLI Copy
advanced-addons-codex install Recreate the certificate trust entry for troubleshooting Copy
advanced-addons-codex start Start the bridge and print a pairing code Copy
advanced-addons-codex start --share-codex-home Start with your normal Codex home Copy
advanced-addons-codex status Check bridge health Copy
advanced-addons-codex stop Stop the bridge Copy
advanced-addons-codex --version Show the installed version Copy

MACOS / LINUX RUNTIME FILES ~/.advanced-addons/codex-bridge

WINDOWS RUNTIME FILES %USERPROFILE%\.advanced-addons\codex-bridge

CUSTOM LOCATION Set with ADVANCED_ADDONS_CODEX_HOME

Related links.

Ready to build with Codex?

Start the setup ↑