Skip to content

Connect Codex

Terminal window
codex mcp add <name> --url https://<name>-mcp.deemwar.com/mcp
codex mcp login <name>

The login opens the sign-in page in your browser (add --no-browser on a remote machine).

Add it to ~/.codex/config.toml:

[mcp_servers.<name>]
url = "https://<name>-mcp.deemwar.com/mcp"

To give Codex the product’s CLI skill as well, see CLI, skill & plugin.

On the same machine (dmcp terminal serve, no –publish)

Section titled “On the same machine (dmcp terminal serve, no –publish)”
Terminal window
export DMCP_TOKEN=<local token>
codex mcp add <agent> --url http://127.0.0.1:8765/mcp --bearer-token-env-var DMCP_TOKEN

Or in ~/.codex/config.toml:

[mcp_servers.<agent>]
url = "http://127.0.0.1:8765/mcp"
bearer_token_env_var = "DMCP_TOKEN"

The local token comes from dmcp token --local. dmcp terminal connect --client codex prints these lines with your values filled in.