Connect explainx.ai to Codex CLI
Add explainx.ai to Codex CLI's config.toml, or use the CLI helper.
OpenAI's Codex CLI reads MCP servers from ~/.codex/config.toml (or a trusted project's own .codex/config.toml), and can register a remote HTTP server directly from the command line with codex mcp add. Adding explainx.ai gives Codex a way to check current AI news and model prices without leaving the terminal.
Add the explainx.ai MCP server so you can search AI news and compare model prices. Run `codex mcp add explainx --url https://mcp.explainx.ai/mcp`, then run `codex mcp login explainx` and open the browser tab to sign in with my explainx.ai account and approve the read-only permissions.
Setup steps
- 01Run codex mcp add explainx --url https://mcp.explainx.ai/mcp, or add the block below to ~/.codex/config.toml directly.
- 02Run codex mcp login explainx to complete the OAuth sign-in in your browser.
- 03Start (or restart) codex — the explainx tools are available in every session.
- 04Ask Codex to search explainx.ai news, prices, or directory listings.
~/.codex/config.toml[mcp_servers.explainx]
url = "https://mcp.explainx.ai/mcp"
auth = "oauth"Frequently asked
Does Codex CLI support OAuth sign-in for the explainx.ai MCP server?
Yes — after adding the server, run codex mcp login explainx to complete the OAuth flow in your browser. Setting auth = "oauth" under the [mcp_servers.explainx] block in config.toml makes sure Codex expects that flow rather than a static bearer token.
Other supported clients