project
MMX-CLI - MiniMax's full-modal command-line tool
MMX-CLI is a full-modal command-line tool developed by MiniMax specifically for AI agents, supporting capabilities such as text, image, video, speech, music generation, and visual understanding. Agents can be used with Claude Code, OpenClaw, etc...
What is MMX-CLI?
MMX-CLI is a full-modal command-line tool developed by MiniMax specifically for AI agents, supporting capabilities such as text, image, video, speech, music generation, and visual understanding. Agents can be directly invoked in environments such as Claude Code and OpenClaw without the need to write an MCP server. MMX-CLI is optimized for automation scenarios with output isolation, semantic status codes, and asynchronous task control to ensure stable operation.
Main functions of MMX-CLI
-
textIt supports multi-turn dialogue, streaming output, system prompts, and JSON structured output, meeting the complex text interaction needs of the Agent and the MiniMax large model.
-
imageIt provides text-to-image generation capabilities, supports custom aspect ratios and batch generation control, and facilitates the automated acquisition of visual materials of specified specifications.
-
videoIt integrates the Hailuo model to support asynchronous video creation, can track progress and download automatically, and is suitable for background processing of long-running video generation tasks.
-
voiceIt features over 30 built-in timbres and speech rate controls, supports streaming audio playback, and can generate natural human voices for narration or dialogue scenarios.
-
musicIt generates musical works based on text prompts, supports custom lyrics input or pure instrumental mode, and meets diverse audio creation needs.
-
Visual understandingIt can perform content description and analysis on local or online images, enabling automated processing and understanding of visual information.
-
Web searchIntegrates MiniMax search capabilities to provide Agents with real-time information retrieval functions, supporting the acquisition of the latest news and data.
How to use MMX-CLI
- Environmental preparationEnsure that Node.js version 18 or higher is installed locally, and subscribe to the MiniMax Token Plan (Global or CN platform) to obtain API access.
- Installation toolsSelect to execute based on the usage scenario.
npx skills add MiniMax-AI/cli -y -gAdd skills to AI agents such as OpenClaw, or perform [activities].npm install -g mmx-cliInstall command-line tools globally in the terminal. - Identity Authentication:run
mmx auth login --api-key sk-xxxxxAuthentication can be completed via API Key, or by executing...mmx auth loginInitiate the browser's OAuth process to complete login authorization. - Basic callsOnce the installation and authentication are complete, you can use it.
mmxThe command, along with subcommands such as text, image, speech, video, music, vision, and search, invokes MiniMax's full modal generation and understanding capabilities. - Agent optimizationWhen used in an automated environment, it is recommended to add:
--quiet,--output jsonand--asyncThe parameters ensure clean output data, support asynchronous task processing, and prevent interactive input from causing tasks to hang.
Key information and usage requirements for MMX-CLI
- Product PositioningMMX-CLI is a full-modal command-line tool released by MiniMax (稀宇科技) specifically designed for AI Agents. It enables Agents to natively call MiniMax's text, image, video, voice, and music generation capabilities in environments such as Claude Code and OpenClaw. It can complete the entire automated workflow of "data collection - text generation - voice and image matching - video production" without writing an MCP Server.
- Core CompetenciesSupports full-modal AI capabilities such as text dialogue (multi-turn/streaming/JSON output), text-to-image (batch/custom scale), asynchronous video generation (progress tracking), speech synthesis (30+ timbres/speed control), text-to-music (supports lyrics), image understanding, and web search. It is integrated with the MiniMax Token Plan and charged on a subscription basis.
- Technical characteristicsOptimized design for agent automation scenarios, through
--quietand--output jsonOutput isolation ensures clean data; semantic Exit Codes allow the Agent to determine error types without parsing English text.--asyncAsynchronous mode avoids blocking of long-running tasks and meets the stability requirements of non-interactive environments. - Usage RequirementsThe runtime environment requires Node.js version 18 or higher. Users must subscribe to the MiniMax Token Plan (Global or CN platform) to obtain an API Key, which can be obtained during installation.
npx skills add MiniMax-AI/cli -y -gAdd skills to the Agent, or throughnpm install -g mmx-cliInstall globally and use after authentication.mmxThe command coordinates with each submodule to invoke the full-modal function.
MMX-CLI's core advantages
- Born for AgentsUnlike traditional CLIs designed for humans, MMX-CLI is optimized for Agent automation scenarios. Through clean output isolation and semantic status codes, it allows Agents to execute commands stably without parsing the interactive interface.
- One-click access to all modalitiesA single tool integrates seven capabilities: text, image, video, voice, music, vision, and search. The Agent can independently complete the entire automated creation process from data collection to final product without having to connect to multiple APIs.
- Production-level automation support:supply
--quietPure data mode--asyncAsynchronous tasks and non-interactive error handling mechanisms ensure that the Agent runs reliably in a pipeline environment without human intervention, avoiding task suspension or parsing errors. - Zero-threshold ecosystem accessIt natively integrates with the MiniMax Token Plan subscription system, automatically consuming users' existing quotas without requiring additional billing logic configuration, and supports seamless switching between Global and CN regions and real-time quota monitoring.
MMX-CLI project address
- GitHub repositoryhttps://github.com/MiniMax-AI/cli
Comparison of MMX-CLI with similar competing products
| Comparison Dimensions | MMX-CLI | fal.ai CLI/MCP | Replicate CLI |
|---|---|---|---|
| Modal coverage | Full modality: text, image, video, voice, music, vision, search | Full-modality: image, video, audio, speech | Images, videos, audio, 3D |
| Agent optimization | Designed specifically for Agents: Output isolation, semantic Exit Code, asynchronous mode --asyncNon-interactive error handling |
The MCP protocol supports agents and provides structured output, but additional configuration is required. | The standard CLI requires a script-based agent and lacks native automation optimization. |
| Billing Model | Token Plan subscription model (package deal, including free quota) | Pay-as-you-go (e.g., $0.028/img, $0.35/5s video) | Billing by the second/by the time |
| Ecological integration | MiniMax has its own ecosystem, natively supporting Claude Code/OpenClaw, etc., without requiring MCP. | A multi-model aggregation platform (Kling, Veo, Seedance, Nano Banana, etc., supporting 600+ models) requires MCP configuration. | Open source model community, supporting user-built model deployment |
| Core features | Deeply optimized for automation scenarios, a single tool covers the entire workflow with zero MCP dependency. | It offers the widest selection of models, a unified API for accessing models from multiple vendors, and fast cold start (5-10 seconds). | It offers a rich selection of open-source models and supports custom models, but cold starts are relatively slow (20-60 seconds). |
Application scenarios of MMX-CLI
- AI Agent Automated WorkflowIn Agent environments such as OpenClaw and Claude Code, MMX-CLI enables Agents to independently execute the complete multimedia content creation process of "data collection - text generation - speech synthesis - image matching - video production" without human intervention, achieving end-to-end automated delivery.
- Smart Media Production LineEnterprise content teams can use MMX-CLI to build automated production pipelines to batch complete short video script generation, AI dubbing, cover image creation, background music synthesis, and video rendering, significantly improving the output efficiency of marketing materials, educational courseware, and social media content.
- Development assistance and document creationDevelopers can quickly generate architecture diagrams, code demonstration videos, audio explanations, and visual charts needed for technical documentation using a single line of commands in the terminal, seamlessly integrating AI full-modality capabilities into their daily development and documentation workflows.
- Multimodal data analysisThe automated system can utilize the visual understanding capabilities of MMX-CLI to analyze monitoring screenshots, product images, or scanned documents, and combine this with web searches to obtain real-time information, generating structured text reports or voice alerts. It is suitable for scenarios such as quality inspection, patrol inspection, and intelligence aggregation.