Connect OpenAI Codex
Connect OpenAI Codex to ModelPort using MCP.
Setup
- Set MODELPORT_API_KEY in the environment that launches Codex.
- 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.