Skip to main content
MiniMax-cli
$ cat ./minimax-cli.md

MiniMax-cli

MiniMax-cli is a powerful command-line interface that provides seamless terminal access to the MiniMax AI API, enabling developers to interact directly with advanced language, vision, and audio generation models. It comes equipped with robust features such as streaming chat completions, text-to-speech synthesis, video generation, and secure API key management. By eliminating the need for custom wrapper scripts, the tool significantly accelerates local development workflows, offers real-time debugging capabilities, and supports standard Unix piping for seamless integration with other terminal utilities. This makes it highly effective for rapid API prototyping, building automated content generation pipelines, and incorporating multimodal AI capabilities directly into shell scripts or CI/CD environments.

2,241 stars 199 forks TypeScript
MiniMax-AI 3120 Apr 10, 2026
Login with GitHub to like and favorite this CLI tool
$ git release --latest

Latest Releases

All releases

Highlights
  • Add MiniMax-H3-Image support to mmx image generate, including text-to-image (--aspect-ratio/--area or --size) and image editing with --image (1–16 references).
  • Support 768P resolution for MiniMax-H3 video generation.
  • mmx agent setup now keeps only MiniMax-M3.1 and MiniMax-M3, adds Zed setup, and defaults pay-as-you-go keys to MiniMax-M3.1-Flash. The model id is renamed from MiniMax-M3.1-Flash-Preview to MiniMax-M3.1-Flash.
  • Fix OAuth refresh coalescing and resource URL scoping, stop polling sleeps at the remaining deadline, and choose speech SDK sample rates from the audio format.

What's Changed
  • fix: coalesce concurrent automatic OAuth refreshes by @ch-z-hc in https://github.com/MiniMax-AI/cli/pull/291
  • fix: stop polling sleeps at the remaining deadline by @ch-z-hc in https://github.com/MiniMax-AI/cli/pull/283
  • fix: scope OAuth resource URL to OAuth credentials by @ch-z-hc in https://github.com/MiniMax-AI/cli/pull/284
  • feat(agent): keep only M3.1 and M3 in agent setup models by @SaladDay in https://github.com/MiniMax-AI/cli/pull/293
  • fix(agent): rename model id to MiniMax-M3.1-Flash by @SaladDay in https://github.com/MiniMax-AI/cli/pull/294
  • fix(agent): send effort for omp M3.1 Flash low/medium/high by @SaladDay in https://github.com/MiniMax-AI/cli/pull/295
  • feat(agent): add Zed agent setup by @SaladDay in https://github.com/MiniMax-AI/cli/pull/297
  • fix(agent): declare MiniMax native effort levels and no temperature for Pi and OpenCode by @SaladDay in https://github.com/MiniMax-AI/cli/pull/298
  • feat(agent): default pay-as-you-go keys to MiniMax-M3.1-Flash by @SaladDay in https://github.com/MiniMax-AI/cli/pull/296
  • fix: choose speech SDK sample rate from audio format by @Ricardo-M-L in https://github.com/MiniMax-AI/cli/pull/305
  • feat(video): support 768P resolution for MiniMax-H3 by @gamebody in https://github.com/MiniMax-AI/cli/pull/303
  • feat: support MiniMax-H3-Image generation and editing by @jellyjelly814 in https://github.com/MiniMax-AI/cli/pull/306

New Contributors
  • @ch-z-hc made their first contribution in https://github.com/MiniMax-AI/cli/pull/291
  • @gamebody made their first contribution in https://github.com/MiniMax-AI/cli/pull/303

Full Changelog: https://github.com/MiniMax-AI/cli/compare/v1.0.28...v1.0.29

Highlights
  • Add Oh my Pi support to mmx agent setup (--agent oh-my-pi, alias omp), including interactive installation and native YAML configuration with profile support.
  • Default mmx text chat, mmx text repl, and SDK text requests to MiniMax-M3.1-Flash-Preview. Explicit model selections and the CLI's saved default-text-model still take precedence.
  • Agent setup defaults to M3.1 Flash Preview for subscription keys and MiniMax-M3 for pay-as-you-go keys.

Model availability: M3.1 Flash Preview currently requires M Plan or MiniMax Code. For pay-as-you-go text requests, explicitly select MiniMax-M3.
What's Changed
  • feat: add Oh my Pi setup and default text to M3.1 Flash Preview by @jellyjelly814 in https://github.com/MiniMax-AI/cli/pull/282

New Contributors
  • @jellyjelly814 made their first contribution in https://github.com/MiniMax-AI/cli/pull/282

Full Changelog: https://github.com/MiniMax-AI/cli/compare/v1.0.27...v1.0.28

What's Changed
  • feat: align agent setup with MiniMax M3.1 Flash Preview by @Qu-Ming-1 in https://github.com/MiniMax-AI/cli/pull/272

Full Changelog: https://github.com/MiniMax-AI/cli/compare/v1.0.26...v1.0.27

Highlights
  • Add speech-to-text with mmx speech transcribe and sdk.speech.transcribe, powered by asr-1.0. Supports language hints, JSON and detailed transcripts, sentence/word timestamps, SRT/WebVTT subtitles, and streamed text. (#262)
  • Improve agent detection for the Codex desktop app and embedded runtimes. (#252, #253)
  • Show seconds in the quota reset countdown. (#255)
  • Correctly classify search input and output content-filter errors. (#256)
  • Include the README in the npm package. (#250)

Try speech-to-text
``bashmmx speech transcribe --file meeting.mp3mmx speech transcribe --file meeting.mp3 --language zhmmx speech transcribe --file meeting.mp3 --response-format srt --out meeting.srt`
For detailed timestamps and speaker information, use
--response-format verbose_json --output json. When piping streamed text, use --stream --output text.
Upgrade
`bashnpm install -g [email protected] --version``
What's Changed
  • fix: include README in npm package by @SaladDay in https://github.com/MiniMax-AI/cli/pull/250
  • fix: detect Codex runtime in desktop app by @SaladDay in https://github.com/MiniMax-AI/cli/pull/252
  • fix: detect embedded agent runtimes by @SaladDay in https://github.com/MiniMax-AI/cli/pull/253
  • fix(quota): show seconds in reset countdown by @SaladDay in https://github.com/MiniMax-AI/cli/pull/255
  • fix(search): map output sensitivity to content filter exit code by @renaissance04 in https://github.com/MiniMax-AI/cli/pull/256
  • feat: add mmx speech transcribe for speech-to-text (asr-1.0) by @Wzdhehe in https://github.com/MiniMax-AI/cli/pull/262

New Contributors
  • @renaissance04 made their first contribution in https://github.com/MiniMax-AI/cli/pull/256
  • @Wzdhehe made their first contribution in https://github.com/MiniMax-AI/cli/pull/262

Full Changelog: https://github.com/MiniMax-AI/cli/compare/v1.0.25...v1.0.26

What's Changed
  • feat: install missing agents during setup by @SaladDay in https://github.com/MiniMax-AI/cli/pull/247

Full Changelog: https://github.com/MiniMax-AI/cli/compare/v1.0.24...v1.0.25

Installation

npm install -g mmx-cli
$ tail ./comments.log

Comments (0)

Login with GitHub to post a comment
No comments yet. Be the first to comment!