Command-line interface for MiniMax AI — chat (MiniMax-M3, MiniMax-M2.7) and speech-2.x TTS via the MiniMax API.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-cli-anything-minimax-04812b722ad0 ,按照其中的说明把「cli-anything-minimax」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
A CLI harness for MiniMax AI — providing chat completions and text-to-speech synthesis through the MiniMax API.
pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=minimax/agent-harness
Prerequisites:
# Show help
cli-anything-minimax --help
# Start interactive REPL
cli-anything-minimax
# Chat with MiniMax-M3
cli-anything-minimax chat --prompt "What is AI?"
# Alternate chat model
cli-anything-minimax chat --prompt "Quick answer" --model MiniMax-M2.7
# Stream chat response
cli-anything-minimax stream --prompt "Write a poem about code"
# Synthesize speech
cli-anything-minimax tts --text "Hello world" --output hello.mp3
# JSON output for agents
cli-anything-minimax --json chat --prompt "Hello"
--text (required) / --model / --voice / --output plus voice and audio
controls: --speed (0.5..2.0), --vol (0..10), --pitch (-12..12),
--sample-rate (8k/16k/22.05k/24k/32k/44.1k), --bitrate (32k/64k/128k/256k),
--format (mp3/pcm/flac), --channel (1/2). See tts --help for defaults.
| Command | Description |
|---|---|
chat | Chat with MiniMax LLM |
stream | Stream chat completion |
| Command | Description |
|---|---|
tts | Synthesize text to speech (hex-decoded MP3 via SSE) |
voices | List available voice IDs |
| Command | Description |
|---|---|
session status | Show session status |
session clear | Clear session history |
session history | Show command history |
| Command | Description |
|---|---|
config set | Set a configuration value |
config get | Get a configuration value (or show all) |
config delete | Delete a configuration value |
config path | Show the config file path |
| Command | Description |
|---|---|
test | Test API connectivity |
models | List chat models |
models --tts | List TTS models |
export MINIMAX_API_KEY="your-api-key"
# or
cli-anything-minimax config set api_key "your-api-key"
cli-anything-minimax chat --prompt "Explain quantum computing"
cli-anything-minimax stream --prompt "Write a Python quicksort"
cli-anything-minimax tts --text "Hello!" --output hello.mp3
cli-anything-minimax tts --text "Fast" --model speech-2.8-turbo --voice English_Insightful_Speaker --output fast.mp3
| Model ID | Description |
|---|---|
MiniMax-M3 | Next-generation flagship model (default) |
MiniMax-M2.7 | Peak Performance. Ultimate Value. |
| Model ID | Description |
|---|---|
speech-2.8-hd | High-definition TTS (default) |
speech-2.8-turbo | Fast TTS |
speech-2.6-hd | High-definition TTS |
speech-2.6-turbo | Fast TTS |
speech-02-hd | High-definition TTS |
speech-02-turbo | Fast TTS |
speech-01-hd | High-definition TTS |
speech-01-turbo | Fast TTS |
--json flag for parseable output1.0.0