English

Connect OpenAI Codex

Connect OpenAI Codex to ModelPort using MCP.

Setup

  1. Set MODELPORT_API_KEY in the environment that launches Codex.
  2. Add the configuration below to ~/.codex/config.toml. Restart Codex and run codex mcp list.

OpenAI Codex configuration

[mcp_servers.modelport]
url = "https://apimodel.store/mcp"
bearer_token_env_var = "MODELPORT_API_KEY"
default_tools_approval_mode = "prompt"

Verify the connection

Call list_models with {"available_only":false} to verify access to the catalog. Callable models depend on your account and region.

MCP tools and troubleshooting

OpenAI Codex official documentation ↗