starwhisper
OfficialREADME.md
# starwhisper-cli
Zero-setup local-first speech-to-text CLI, recurring folder watcher, and Model Context Protocol (MCP) server for AI coding agents, with one-flag escalation to StarWhisper Cloud API.
## Why use `starwhisper-cli`?
- **Local and free by default:** Auto-detects local `whisper-cli` / StarWhisper desktop engines and models (Windows, macOS, Linux) with zero Python or CUDA setup.
- **Recurring workflows:** Drop recordings, Zoom calls, or OBS clips into a watched directory and get automatic `.txt`, `.srt`, `.vtt`, or `.json` transcripts.
- **Built-in MCP server (`starwhisper mcp`):** Gives Claude Desktop, Claude Code, Cursor, Windsurf, and Codex native `transcribe_audio_file`, `transcribe_audio_base64`, and `starwhisper_status` tools over stdio.
- **One-flag Cloud escalation (`--cloud`):** Running inside headless CI, Docker, or a laptop without a local model? Set `STARWHISPER_API_KEY` from [StarWhisper Pro](https://starwhisper.ai/dashboard.html?ref=cli) and pass `--cloud` or `--fallback-cloud`.
## Quick start
```bash
# Run directly from GitHub (or via npm once published)
npx github:starwhisperai/starwhisper-cli doctor
# Transcribe a file locally to plain text, SRT, VTT, or JSON
npx github:starwhisperai/starwhisper-cli transcribe meeting.mp4 --format srt --out meeting.srt
# Watch a folder and transcribe every new recording automatically
npx github:starwhisperai/starwhisper-cli watch ./recordings --out ./transcripts --format vtt
# Escalate to StarWhisper Cloud API when headless or on large/non-EU jobs
export STARWHISPER_API_KEY="sw_live_..."
npx github:starwhisperai/starwhisper-cli transcribe interview.mp3 --cloud --format json
```
## MCP Server Setup (Claude Desktop / Claude Code / Cursor / Codex)
Add to your MCP client configuration:
```json
{
"mcpServers": {
"starwhisper": {
"command": "npx",
"args": ["-y", "github:starwhisperai/starwhisper-cli", "mcp"],
"env": {
"STARWHISPER_API_KEY": ""
}
}
}
}
```
## Local Free vs Cloud Pro
| Capability | Local (`--engine local`) | Cloud (`--cloud`) |
| --- | --- | --- |
| Cost | Free, MIT open source | Included in StarWhisper Pro ($10/mo, monthly cap) |
| Privacy | 100% offline on your machine | Encrypted HTTPS, zero transcript storage |
| Setup | Uses installed StarWhisper desktop or `whisper-cli` + `ggml-*.bin` | Works immediately in CI/Docker with `STARWHISPER_API_KEY` |
| Formats | `.txt`, `.json`, `.srt`, `.vtt` | `.txt`, `.json`, `.srt`, `.vtt` |
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues