Communitygithub.com

cli-anything-minimax

一款為 MiniMax AI 打造的指令列工具,提供聊天補全與文字轉語音合成功能,透過 MiniMax API 運作。

cli-anything-minimax 是什麼?

此技能提供一個名為 cli-anything-minimax 的指令列工具,作為 MiniMax AI 的通用操作介面。它支援聊天補全(包括串流回應)與文字轉語音(TTS)合成,能直接從終端機呼叫 MiniMax API。開發者可在任何支援 Python 3.10+ 的環境中安裝使用,並需透過環境變數或 config 指令設定 MiniMax API 金鑰。輸出支援 JSON 格式,方便 AI 代理程式解析結果。主要指令涵蓋 chat、stream、tts、voices、session 管理、config 設定及模型列表查詢,適合需要快速整合 MiniMax 語音與對話能力的腳本或自動化流程使用。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-minimax

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

cli-anything-minimax 是做什麼的?

一款為 MiniMax AI 打造的指令列工具 — 透過 MiniMax API 提供聊天補全與文字轉語音合成功能。

安裝

pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=minimax/agent-harness

必要條件:

使用方式

基本指令

# 顯示說明
cli-anything-minimax --help

# 啟動互動式 REPL
cli-anything-minimax

# 與 MiniMax-M3 對話
cli-anything-minimax chat --prompt "什麼是 AI?"

# 更換聊天模型
cli-anything-minimax chat --prompt "簡短回答" --model MiniMax-M2.7

# 串流聊天回應
cli-anything-minimax stream --prompt "寫一首關於程式碼的詩"

# 合成語音
cli-anything-minimax tts --text "你好,世界" --output hello.mp3

# 為代理程式輸出 JSON 格式
cli-anything-minimax --json chat --prompt "哈囉"

TTS 選項

--text(必填)/ --model / --voice / --output 以及語音和音訊控制:--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)。請參閱 tts --help 取得預設值。

指令群組

聊天 (Chat)

指令說明
chat與 MiniMax LLM 對話
stream串流聊天補全

TTS

指令說明
tts將文字合成語音(透過 SSE 傳回十六進位解碼的 MP3)
voices列出可用的語音 ID

工作階段 (Session)

指令說明
session status顯示工作階段狀態
session clear清除工作階段歷史
session history顯示指令歷史

設定 (Config)

指令說明
config set設定一個配置值
config get取得一個配置值(或顯示全部)
config delete刪除一個配置值
config path顯示設定檔路徑

工具 (Utility)

指令說明
test測試 API 連線
models列出聊天模型
models --tts列出 TTS 模型

範例

設定 API 金鑰

export MINIMAX_API_KEY="你的 API 金鑰"
# 或
cli-anything-minimax config set api_key "你的 API 金鑰"

聊天

cli-anything-minimax chat --prompt "解釋量子運算"
cli-anything-minimax stream --prompt "寫一個 Python 快速排序"

TTS

cli-anything-minimax tts --text "哈囉!" --output hello.mp3
cli-anything-minimax tts --text "快速" --model speech-2.8-turbo --voice English_Insightful_Speaker --output fast.mp3

聊天模型

模型 ID說明
MiniMax-M3次世代旗艦模型(預設)
MiniMax-M2.7效能巔峰・極致價值

TTS 模型

模型 ID說明
speech-2.8-hd高傳真 TTS(預設)
speech-2.8-turbo快速 TTS
speech-2.6-hd高傳真 TTS
speech-2.6-turbo快速 TTS
speech-02-hd高傳真 TTS
speech-02-turbo快速 TTS
speech-01-hd高傳真 TTS
speech-01-turbo快速 TTS

給 AI 代理程式的建議

  1. 務必使用 --json 參數 取得可解析的輸出
  2. 檢查回傳碼 — 0 代表成功,非零代表錯誤
  3. 解析 stderr 以取得失敗時的錯誤訊息
  4. 使用絕對路徑 指定 TTS 輸出檔案

版本

1.0.0

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

相關技能