dsh-mimo-kit
MiMo single-key toolkit for DeepSeek Harness. Three tools — mimo_asr, mimo_tts, mimo_batch — powered by one Xiaomi MiMo API key that DSH already has. No extra keys, no manual key typing.
中文文档 · Capability white paper · Marketplace details · Changelog
Install
dsh plugin add github:Zhaoyan-September/dsh-mimo-kit
# or from a local checkout:
dsh plugin add file:D:/path/to/dsh-mimo-kit
Restart DSH after installing. Then just use the tools — the kit auto-discovers the MiMo provider on Settings > Models.
Tools
| Tool | What it does | Billing |
|---|---|---|
mimo_asr |
Verbatim transcription of local wav/mp3 | ¥0.5 / hour of audio |
mimo_tts |
Text → speech file (preset voices / voice clone / voice design) | limited-time free |
mimo_batch |
Batch inference jobs (submit / status / result / cancel / delete) | 50% of realtime rates |
mimo_asr
mimo_asr({ audio: "D:/recordings/meeting.wav", language: "zh" })
→ { transcript, seconds, usage, cost: "≈¥0.004 (ASR ¥0.5/hour × 28.7s)" }
Limits: wav/mp3, under ~7.5 MB (base64 cap). Compress first: ffmpeg -i in.flac -ac 1 -b:a 64k out.mp3.
mimo_tts
mimo_tts({ text: "欢迎使用 dsh-mimo-kit。", voice: "冰糖", format: "mp3" })
→ { file: ".../mimo_tts_1764....mp3", bytes, cost: "limited-time free (¥0)" }
mimo_tts({ text: "Hello!", mode: "voiceclone", voice: "D:/ref/my_voice.mp3" })
mimo_tts({ text: "今日新闻播报。", mode: "voicedesign", style: "沉稳的中年男声,新闻主播风格" })
Preset voices: mimo_default, 冰糖, 茉莉, 苏打, 白桦, Mia, Chloe, Milo, Dean. Singing: (唱歌) tag before lyrics (mode tts).
mimo_batch
mimo_batch({ action: "submit", input: "jobs.jsonl", name: "nightly" })
mimo_batch({ action: "status", batch_id: "batch_c089f12d..." })
mimo_batch({ action: "result", batch_id: "batch_c089f12d..." })
JSONL line: {"custom_id": "request-1", "method": "POST", "url": "/v1/chat/completions", "body": {"model": "mimo-v2.6-flash", "messages": [...]}}
Requires batchRegion from https://platform.xiaomimimo.com/console/batch (Settings > MiMo kit).
Zero-config credentials
Discovery order: Settings > Models MiMo provider → MIMO_API_KEY/XIAOMI_API_KEY env → .env (workspace or DSH_HOME) → manual Settings fields. The plugin never stores or displays the key. Missing key errors point at the exact place to fix.
Limitations (honest)
- ASR: wav/mp3 only, ≤10 MB after base64 (~7.5 MB files), no word-level timestamps (the upstream API does not return them), no streaming wrapper yet.
- TTS: upstream documents no text-length cap — very long texts may time out; voice list is the 9 built-ins (no dynamic listing API); streaming not wrapped yet.
- Batch: region values are not published — read them from the console page; per-job request caps are undocumented upstream; status enum is incompletely documented (raw JSON is passed through).
- No OCR: the MiMo platform has no OCR/document-parsing API (verified 2026-12). Reading text in images works via image understanding; bulk OCR needs another platform's key and is out of scope.
- No standalone search/fetch tool: DSH's built-in
web_searchcovers it.
Full boundary table and roadmap: docs/CAPABILITIES.md.
Notes
- Every result ends with
usage+ a CNYcostestimate. - ASR/TTS run over
POST /v1/chat/completions; batch usesbatch-api-<region>.xiaomimimo.com. - Zero npm dependencies, no install scripts, Node ≥ 22.
Contributing · Issues
Issues and PRs are welcome at github:Zhaoyan-September/dsh-mimo-kit. When filing a bug, please include: the tool name, the exact call, the error text, and your DSH version. Undocumented upstream behaviours are tracked in docs/CAPABILITIES.md — if MiMo changes them, an issue updating that table is especially appreciated.
License
MIT
No comments yet. Be the first to write one.