⚠️

⚠️ Your current plan won’t be available forever. Keep your current pricing and benefits before July 1.

Help Center

Help – Integrations – Connect Local Dominator to the OpenAI Codex App

Connect Local Dominator to the OpenAI Codex App

The OpenAI Codex app can access your Local Dominator data directly. Learn how to connect it and start asking for reports in plain English.
On this page:

You can connect Local Dominator to the OpenAI Codex desktop app by adding our connector to its MCP configuration file. This gives Codex direct, read-only access to your SERP Tracker, Site Audit, Geogrid, AI Tracker, and Review Velocity data, so you can ask for reports and analysis in plain English without switching tools.

🎯 Who is this for?

This is for agencies and developers who already use the Codex app for coding or research workflows and want live Local Dominator data available inside it without switching tools.

  • Agencies and technical staff using the Codex desktop app
  • Teams already signed into Codex with a ChatGPT or API key account

πŸ“‹ What you will need

You need the Codex app installed and signed in, along with your Local Dominator API key. There’s no separate connector file to download yourself. Codex fetches and runs it directly from our server the first time it connects. You don’t need the separate Codex CLI for any of this.

  • The Codex app installed (developers.openai.com/codex/app) and signed in with your ChatGPT account or an OpenAI API key.
  • Network access enabled for MCP servers. Codex’s default sandbox blocks outbound network calls. Add the following setting under [sandbox_workspace_write] in your configuration file:
    network_access = true
    Without this setting, both the first-time connector fetch and the connector’s calls to Local Dominator’s API will fail. See the troubleshooting section if the setting doesn’t take effect.
  • Your Local Dominator API key, from your account’s API settings page.

⏳ Time to complete

  • ~ 10 minutes

How to Connect the Codex App

1
Get your API key

Go to Account β†’ API Settings, and copy your API key. Your key starts with ld_.

Treat your API key like a password

Never share it in chat, email, or a screenshot.

Account Settings page; Developer API tab active with a Create Key button and an API Keys area in the main panel
2
Open Codex’s config file

Codex stores its MCP configuration in a config.toml file, whether or not you have the CLI installed. Open the file in any text editor.

Windows
%USERPROFILE%\.codex\config.toml
Mac
~/.codex/config.toml

File not found? If config.toml does not exist yet, create a new file with that exact name inside the corresponding .codex folder.

Open Codexs config file
3
Add the connector

Add the following block to your Codex configuration file.

TOML Recommended
[mcp_servers.local-dominator]
command = "npx"
args = ["-y", "https://localdominator.co/wp-content/uploads/2026/08/LOCAL-1.tgz"]
env_vars = ["LOCAL_DOMINATOR_API_KEY"]

This tells Codex to forward the LOCAL_DOMINATOR_API_KEY environment variable to the connector at runtime instead of storing the key in the configuration file.

Set the environment variable

Complete this step before restarting Codex.

Windows PowerShell Run this command once
[Environment]::SetEnvironmentVariable("LOCAL_DOMINATOR_API_KEY", "ld_your_actual_key_here", "User")
Mac Add this line to your shell profile
export LOCAL_DOMINATOR_API_KEY=ld_your_actual_key_here

Replace ld_your_actual_key_here with your real Local Dominator API key.

Alternative: store the key in the config file

This skips the environment-variable step, but your API key will be stored as plain text on your computer.

TOML Less secure
[mcp_servers.local-dominator]
command = "npx"
args = ["-y", "https://localdominator.co/wp-content/uploads/2026/08/LOCAL-1.tgz"]

[mcp_servers.local-dominator.env]
LOCAL_DOMINATOR_API_KEY = "ld_your_actual_key_here"
Open Codex config file
4
Restart Codex

Fully quit the Codex app, then reopen it.

1 Fully quit Codex
2 Reopen Codex

Restarting allows Codex to load the new config.toml settings and detect the LOCAL_DOMINATOR_API_KEY environment variable.

5
Confirm it saved correctly

Open Codex and follow this navigation path:

Settings Integrations & MCP

Check that the Local Dominator connector is listed and enabled:

local-dominator MCP server
Enabled

If local-dominator appears as enabled, Codex has successfully loaded the saved MCP configuration.

Codex - Confirm it saved correctly
6
Verify it’s actually live

Start a new Codex thread and request live account data.

Start a new thread in Codex and send the following prompt:

Verification prompt
Check my Local Dominator account status.
Expected result

You should receive real credit balances across all your Local Dominator modules.

The first request may take a few extra seconds

On the first run, npx fetches the connector from the server. After it has been cached, future requests start instantly.

Check my Local Dominator account status

What You Can Ask For

Ask for the result you want

Once connected, Codex can pull and summarize live data on request. You don’t need to know tool names or campaign IDs in advanceβ€”just describe what you want.

Example requests Copy a prompt and replace the bracketed details.
Account status
Check my Local Dominator account status.
SERP campaign
Pull the SERP campaign for [client domain] and tell me which keywords dropped this week.
Site audit
List open critical site audit issues for [site] and draft a client-ready summary.
AI Tracker
What’s our AI Tracker visibility trend for [brand] over the last 30 days?
GeoGrid results
Show me the latest GeoGrid scan results for [business name].
Safe, read-only access

All available tools are read-only. Actions that spend creditsβ€”such as triggering a new scan or auditβ€”cannot run through this connector.

Troubleshooting and FAQ

First connection hangs, or asking for account status returns a network/timeout error

This is almost always Codex’s sandbox blocking outbound network access, not a problem with the connector itself.

Confirm the following setting is present in config.toml:

config.toml Β· Network access
[sandbox_workspace_write]
network_access = true

Save the file and try again. There are known issues where this setting is silently ignored on some Codex builds, particularly on macOS.

If the problem continues, switch to a trusted or full-access permissions mode in Codex’s settings, weighing that against the broader permissions it grants.

β€œLOCAL_DOMINATOR_API_KEY is not set” or authentication errors

Confirm that the environment variable is actually set by running the appropriate command for your system.

PowerShell Β· Check API key
echo $env:LOCAL_DOMINATOR_API_KEY
macOS Terminal Β· Check API key
echo $LOCAL_DOMINATOR_API_KEY

Fully restart Codex after setting the environment variable.

If you used the plain-text environment method instead, recheck the key for a copy-and-paste error directly in config.toml.

Tool calls ask for approval every time

Add the following setting under [mcp_servers.local-dominator] in config.toml:

config.toml Β· Automatic approval
[mcp_servers.local-dominator]
default_tools_approval_mode = "auto"

This stops approval prompts for this connector’s tools specifically, without changing your global approval settings.

Testing the connector manually in PowerShell gives β€œrunning scripts is disabled on this system”

This means Windows is blocking the npx.ps1 wrapper script. It is not an issue with the connector.

Run the following command in PowerShell and then retry:

PowerShell Β· Update execution policy
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
This doesn’t affect Codex itself launching the connector. It only affects manual testing in a PowerShell prompt.

First run times out before Codex finishes fetching the connector

On a slow connection, the default 10-second startup window may not be enough for npx to download the package from our server.

Add the following setting under [mcp_servers.local-dominator] in config.toml:

config.toml Β· Startup timeout
[mcp_servers.local-dominator]
startup_timeout_sec = 20

Still have questions? Our team is willing to help.

We strive to provide prompt responses based on the time you reach out. Our response time can range from 10 minutes to 7 hours, seven days a week.Β 

On this page:

Help Center

Topics

πŸš€ Wait β€” Don’t Leave Yet!

Want to Win More Local SEO Clients Without Guesswork?

Book your free demo of Local Dominator and see how top agencies scale multi-location SEO in minutes, not months.

πŸ‘‰ Schedule your demo now, dominate local search the smart way.