cli-anything-minimax
它能做什么
这个技能让 AI 智能体使用 MiniMax 这项 AI 服务回答问题,并把文字制作成语音。适合想使用第二个 AI 服务商或需要旁白的人。
适用场景
- ✓当你想从命令行向 MiniMax 聊天模型发送问题或写作任务的时候。
- ✓当你需要把一份文字脚本制作成语音音频文件的时候。
- ✓当你想在保存文件前调整声音的语速、音调或音频格式的时候。
技能链接
https://github.com/HKUDS/CLI-Anything/blob/main/minimax/agent-harness/cli_anything/minimax/skills/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我把这段文字做成一个亲切的旁白 MP3 文件,我可以直接收听。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体使用你的 API 密钥把文字或提示发送给 MiniMax,然后保存回复内容或生成的音频文件。各项设置可以控制声音和音质。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
cli-anything-minimax
A CLI harness for MiniMax AI — providing chat completions and text-to-speech synthesis through the MiniMax API.
Installation
pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=minimax/agent-harness
Prerequisites:
- Python 3.10+
- MiniMax API key from platform.minimax.io
Usage
Basic Commands
# 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"
TTS options
--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 Groups
Chat
| Command | Description |
|---|---|
chat |
Chat with MiniMax LLM |
stream |
Stream chat completion |
TTS
| Command | Description |
|---|---|
tts |
Synthesize text to speech (hex-decoded MP3 via SSE) |
voices |
List available voice IDs |
Session
| Command | Description |
|---|---|
session status |
Show session status |
session clear |
Clear session history |
session history |
Show command history |
Config
| 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 |
Utility
| Command | Description |
|---|---|
test |
Test API connectivity |
models |
List chat models |
models --tts |
List TTS models |
Examples
Configure API Key
export MINIMAX_API_KEY="your-api-key"
# or
cli-anything-minimax config set api_key "your-api-key"
Chat
cli-anything-minimax chat --prompt "Explain quantum computing"
cli-anything-minimax stream --prompt "Write a Python quicksort"
TTS
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
Chat Models
| Model ID | Description |
|---|---|
MiniMax-M3 |
Next-generation flagship model (default) |
MiniMax-M2.7 |
Peak Performance. Ultimate Value. |
TTS Models
| 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 |
For AI Agents
- Always use
--jsonflag for parseable output - 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
常见问题
我需要 MiniMax 账户吗?
需要。该技能连接之前,你需要在 MiniMax 平台上获取自己的 API 密钥。
它可以制作哪些音频格式?
该技能支持 MP3、PCM 和 FLAC,并可设置采样率、比特率,以及单声道或立体声。
它可以边生成边显示聊天回复吗?
可以。流式命令会在回复生成时逐步显示。
详情
作者的原始描述
Command-line interface for MiniMax AI — chat (MiniMax-M3, MiniMax-M2.7) and speech-2.x TTS via the MiniMax API.
repo: HKUDS/CLI-Anything
热度
- GitHub 星标
- 58k
- 排名
- #3224
- 许可证
- Apache-2.0
- 更新时间
- 2026/9/21
评论
- …
同一仓库的更多技能
cli-anything-3mf
58k帮你的智能体检查和修复 3D 打印文件,包括查找圆孔、调整孔径、修复网格,以及比较两个文件。
cli-anything-qgis
58k帮你的智能体在终端中打开、编辑和导出 QGIS 地图项目,包括图层、要素、打印布局和处理工具。
cli-anything-adguardhome
58k帮你的智能体管理 AdGuard Home,这是一款全网络广告拦截器,可管理过滤规则、DNS 重写、客户端和查询日志。
cli-anything-anygen
58k帮你的智能体借助 AnyGen 服务,根据文字提示生成幻灯片、文档、网站和图表。