Hosted OAuth
Use the hosted endpoint when the client supports remote MCP OAuth:~/.codex/config.toml or a trusted project .codex/config.toml.
Local stdio
Install the local package once:SENDMUX_API_KEY already set, then use env_vars so the value stays outside the config file.
Private HTTP
Start a local HTTP MCP server:http://127.0.0.1:8765/mcp as the client URL.