cli-anything-minimax
Original:🇺🇸 English
Translated
Command-line interface for MiniMax AI — chat (MiniMax-M2.7) and TTS (speech-2.8-hd) via the MiniMax API.
4installs
Sourcehkuds/cli-anything
Added on
NPX Install
npx skill4agent add hkuds/cli-anything cli-anything-minimaxTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →cli-anything-minimax
A CLI harness for MiniMax AI — providing chat completions and text-to-speech synthesis through the MiniMax API.
Installation
bash
pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=minimax/agent-harnessPrerequisites:
- Python 3.10+
- MiniMax API key from platform.minimax.io
Usage
Basic Commands
bash
# Show help
cli-anything-minimax --help
# Start interactive REPL
cli-anything-minimax
# Chat with MiniMax-M2.7
cli-anything-minimax chat --prompt "What is AI?"
# High-speed model
cli-anything-minimax chat --prompt "Quick answer" --model MiniMax-M2.7-highspeed
# 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"Command Groups
Chat
| Command | Description |
|---|---|
| Chat with MiniMax LLM |
| Stream chat completion |
TTS
| Command | Description |
|---|---|
| Synthesize text to speech (hex-decoded MP3 via SSE) |
| List available voice IDs |
Session
| Command | Description |
|---|---|
| Show session status |
| Clear session history |
| Show command history |
Config
| Command | Description |
|---|---|
| Set a configuration value |
| Get a configuration value (or show all) |
| Delete a configuration value |
| Show the config file path |
Utility
| Command | Description |
|---|---|
| Test API connectivity |
| List chat models |
| List TTS models |
Examples
Configure API Key
bash
export MINIMAX_API_KEY="your-api-key"
# or
cli-anything-minimax config set api_key "your-api-key"Chat
bash
cli-anything-minimax chat --prompt "Explain quantum computing"
cli-anything-minimax stream --prompt "Write a Python quicksort"TTS
bash
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.mp3Chat Models
| Model ID | Description |
|---|---|
| Peak Performance. Ultimate Value. (default) |
| Same performance, faster and more agile |
TTS Models
| Model ID | Description |
|---|---|
| High-definition TTS (default) |
| Fast TTS |
For AI Agents
- Always use flag for parseable output
--json - Check return codes — 0 for success, non-zero for errors
- Parse stderr for error messages on failure
- Use absolute paths for TTS output files
Version
1.0.0