@llaa33219/max-cli
v2.0.1
Published
Universal AI CLI — 40+ Providers, One Command. Based on mmx-cli by MiniMax.
Downloads
37
Maintainers
Readme
About MAX CLI: This project is based on mmx-cli by MiniMax. We loved the clean CLI interface and powerful features of mmx-cli, but wanted to use it with multiple AI providers beyond MiniMax. MAX CLI maintains the same command structure and format while adding support for 40+ providers including OpenAI, Anthropic, DeepSeek, and many more.
Features
- Multi-Provider — 40+ AI providers in one CLI (OpenAI, Anthropic, MiniMax, DeepSeek, etc.)
- Text Chat — Multi-turn chat, streaming, system prompts, JSON output
- Image Generation — DALL-E, FLUX, Grok Imagine, MiniMax Image, and more
- Video Generation — MiniMax Hailuo, xAI Grok Video, Replicate, Together AI
- Speech (TTS) — OpenAI TTS, MiniMax Speech, Mistral Voxtral, TTS.ai
- Music — MiniMax Music (lyrics, instrumental, cover generation)
- Vision — Image understanding via chat (OpenAI, Anthropic, MiniMax)
- Web Search — MiniMax search integration
- Custom Providers — Add any OpenAI-compatible endpoint
Supported Providers (40+)
| Provider | Chat | Image | Speech | Video | Music | |----------|------|-------|--------|-------|-------| | MiniMax | ✅ | ✅ | ✅ | ✅ | ✅ | | OpenAI | ✅ | ✅ | ✅ | ❌ | ❌ | | Anthropic | ✅ | ❌ | ❌ | ❌ | ❌ | | xAI (Grok) | ✅ | ✅ | ✅ | ✅ | ❌ | | DeepSeek | ✅ | ❌ | ❌ | ❌ | ❌ | | Moonshot (Kimi) | ✅ | ❌ | ❌ | ❌ | ❌ | | Zhipu (GLM) | ✅ | ✅ | ✅ | ✅ | ❌ | | Alibaba (Qwen) | ✅ | ✅ | ✅ | ✅ | ❌ | | Tencent | ✅ | ✅ | ✅ | ✅ | ❌ | | Mistral AI | ✅ | ❌ | ✅ | ❌ | ❌ | | Groq | ✅ | ❌ | ✅ | ❌ | ❌ | | Together AI | ✅ | ✅ | ✅ | ✅ | ❌ | | OpenRouter | ✅ | ✅ | ✅ | ✅ | ❌ | | Hugging Face | ✅ | ✅ | ✅ | ✅ | ❌ | | Replicate | ✅ | ✅ | ❌ | ✅ | ✅ | | Cohere | ✅ | ❌ | ❌ | ❌ | ❌ | | Perplexity | ✅ | ✅ | ❌ | ❌ | ❌ | | Cerebras | ✅ | ❌ | ❌ | ❌ | ❌ | | Ollama | ✅ | ❌ | ❌ | ❌ | ❌ | | ...20+ more | ✅ | varies | varies | varies | varies |
Install
# Install CLI globally
npm install -g @llaa33219/max-cli
# Verify installation
max --versionRequires Node.js 18+
Quick Start
# Chat with any provider
max text chat --provider openai --message "Hello!"
max text chat --provider anthropic --model claude-sonnet-4-6 --message "Hello!"
max text chat --provider deepseek --message "Hello!"
# Generate images
max image generate --provider openai --prompt "A sunset"
max image generate --provider xai --prompt "A cat"
# Generate speech
max speech synthesize --provider openai --text "Hello!" --out hello.mp3
max speech synthesize --provider minimax --text "Hello!" --out hello.mp3
# Generate video (MiniMax, xAI, Together AI)
max video generate --provider minimax --prompt "Ocean waves"
# Generate music (MiniMax only)
max music generate --provider minimax --prompt "Upbeat pop" --lyrics "La la la"Commands
max text chat
max text chat --provider <name> --message <text>
max text chat --provider openai --model gpt-5.4 --message "Hello" --stream
max text chat --provider anthropic --system "You are helpful" --message "Write fizzbuzz"
max text chat --provider deepseek --message "user:Hi" --message "assistant:Hey!" --message "How are you?"max image generate
max image generate --provider openai --prompt "A cat in a spacesuit"
max image generate --provider xai --prompt "A sunset" --n 3
max image generate --provider minimax --prompt "Logo" --out-dir ./out/max video generate
max video generate --provider minimax --prompt "Ocean waves" --download sunset.mp4
max video generate --provider xai --prompt "A robot painting" --asyncmax speech synthesize
max speech synthesize --provider openai --text "Hello!" --out hello.mp3
max speech synthesize --provider minimax --text "Hello!" --voice English_expressive_narrator
max speech synthesize --provider ttsai --model kokoro --text "Hello!" --out hello.mp3max music generate
max music generate --provider minimax --prompt "Upbeat pop" --lyrics "[verse] La da dee"
max music generate --provider minimax --prompt "Cinematic" --instrumental --out bgm.mp3
max music cover --provider minimax --prompt "Jazz" --audio-file original.mp3 --out cover.mp3max auth
max auth login --provider openai --api-key sk-xxxxx
max auth login --provider anthropic --api-key sk-ant-xxxxx
max auth status
max auth logoutmax config
max config show
max config set --key active_provider --value openai
max config set --key providers.openai.api_key --value sk-xxxxx
max config set --key providers.minimax.default_chat_model --value MiniMax-M2.7Provider-Specific Features
MiniMax (Full Suite)
- Chat, Image, Video, Speech, Music, Search, Vision
- Models: MiniMax-M2.7, image-01, MiniMax-Hailuo-2.3, music-2.6
- Region support:
--base-url https://api.minimax.io(global) orhttps://api.minimaxi.com(CN)
OpenAI
- Chat, Image (DALL-E/GPT Image), Speech (TTS)
- Models: gpt-5.4, gpt-image-2, gpt-4o-mini-tts
Anthropic
- Chat only (Claude)
- Models: claude-sonnet-4-6, claude-opus-4-7
xAI (Grok)
- Chat, Image, Video, Speech
- Models: grok-4.20, grok-imagine-image, grok-imagine-video
Chinese Providers
- DeepSeek: deepseek-v4-pro
- Moonshot (Kimi): kimi-k2.6
- Zhipu (GLM): glm-5.1, cogview-4, cogvideox-3
- Alibaba (Qwen): qwen3.6-plus, wan2.6
- Xiaomi MiMo: mimo-v2.5-pro, mimo-v2.5-tts
Custom Providers
# Any OpenAI-compatible endpoint
max text chat --base-url https://my-api.example.com/v1 --api-key <key> --model <model> --message "Hello"Global Flags
| Flag | Description |
|------|-------------|
| --provider <name> | AI provider (openai, anthropic, minimax, etc.) |
| --api-key <key> | API key (overrides provider config) |
| --base-url <url> | API base URL (overrides provider default) |
| --model <model> | Model ID |
| --output <format> | Output format: text, json |
| --quiet | Suppress non-essential output |
| --verbose | Print HTTP request/response details |
| --timeout <seconds> | Request timeout (default: 300) |
| --stream | Stream response tokens |
| --non-interactive | Disable interactive prompts |
| --dry-run | Show what would happen without executing |
Configuration
Config stored in ~/.max/config.json:
{
"active_provider": "openai",
"providers": {
"openai": {
"api_key": "sk-xxxxx",
"default_chat_model": "gpt-5.4"
},
"minimax": {
"api_key": "sk-xxxxx",
"default_chat_model": "MiniMax-M2.7"
}
}
}