Codex is OpenAI’s official AI coding agent for the desktop.
Install Codex
Download and install the Codex desktop app from the OpenAI Codex page.Configure MiniMax API
1
Edit the config file
Open
~/.codex/config.toml and add the following, replacing <MINIMAX_API_KEY> with your key from the MiniMax Developer Platform:2
Restart Codex and start using MiniMax-M3
Restart Codex — MiniMax-M3 is now ready to use.
Configure Model Capabilities (Optional)
Codex can use a custom model catalog to recognize MiniMax-M3 capabilities such as multimodal input, reasoning effort as the thinking switch, system prompt instructions, tool type, and other detailed model parameters. After this is configured, type/model in Codex CLI to see MiniMax-M3 and its available reasoning levels in the model list.
Add the following line to ~/.codex/config.toml:
~/.codex/model-catalogs/custom-catalog.json with the detailed model configuration:
slug/display_name: The model identifier and display name used in Codex config and the/modellist. Keep this aligned with the model name used by the API.default_reasoning_level: The default reasoning effort. For MiniMax-M3, any non-nonevalue enables Adaptive Thinking; the value does not tune reasoning depth.supported_reasoning_levels: Reasoning options users can switch between in/model.noneturns thinking off;highenables Adaptive Thinking.base_instructions: Base system prompt Codex adds when using this model. Use it to describe the model identity and collaboration style.supports_reasoning_summaries: Enables Codex’s Responses API reasoning path for this model. Set this totrueso Codex sendsreasoning.effort; otherwise Codex omits thereasoningfield even whendefault_reasoning_levelis configured. In this example,default_reasoning_summaryis set tononeso Codex does not request a separate reasoning summary.shell_type: Declares the shell tool-call type supported by the model. This example usesshell_command.visibility/supported_in_api/priority: Control whether the model appears in the list, whether it is available through the API, and its ordering priority in the model list.supports_parallel_tool_calls: Indicates that the model supports parallel tool calls, allowing Codex to handle multiple tool requests.experimental_supported_tools: Reserved list for experimental tool capabilities. Leave it as an empty array when no extra tools are needed.input_modalities: Supported input modalities.["text", "image"]means text and image input are supported.truncation_policy: Controls truncation behavior for retained context or tool output. This example limits retained content by bytes.