ax-check.com
by Gauge
S
Superwhisper
superwhisper.com
ax-check.com
Checked 19 November 2026
B
84/100
Agents need your login
Superwhisper's quickstart and pricing are clear and agent-ready.
18 of 23 checks passed: install steps, CLI/MCP docs and pricing ($0 Free, $8.49/mo Pro, $249.99 lifetime) are all stated plainly without login walls.
2 fixes to start with
Concrete changes, backed by what we found.
Recorded coding sessions
Same task, 3 models, no superwhisper.com account. Recorded 19 November 2026 on Pi.
3 recorded · 5m 11s
5m 11s · recorded
Session findings
Select a finding to see it in context.
›Thinking…
I'll look at Superwhisper—it's a macOS voice dictation app without a public API or SDK, so I should verify this directly rather than relying on assumptions.
curl -sL --max-time 20 "https://superwhisper.com" | sed -e 's/<[^>]*>/ /g' | tr -s ' \n' ' \n' | head -c 3000; echo; echo "---"; curl -s --max-time 15 -o /dev/null -w "%{http_code}\n" https://docs.superwhisper.comFailed Superwhisper — AI Voice to Text for macOS, Windows, iOS & Android {"@context":"https://schema.org","@type":"Organization","name":"Superwhisper","url":"http
Superwhisper — AI Voice to Text for macOS, Windows, iOS & Android {"@context":"https://schema.org","@type":"Organization","name":"Superwhisper","url":"https://superwhisper.com","logo":"https://superwhisper.com/app-icon/1024.png","sameAs":["https://twitter.com/superwhisperapp","https://x.com/superwhisper","https://discord.gg/superwhisper","https://github.com/superultrainc","https://www.youtube.com/channel/UCBQpNBU5mrPKge6UETN8i8g","https://apps.apple.com/us/app/superwhisper/id6471464415","https://play.google.com/store/apps/details?id=com.superultra.superwhisper"]} {"@context":"https://schema.org","@type":"SoftwareApplication","name":"Superwhisper","description":"AI powered voice to text for macOS, Windows, iOS, and Android. Dictate in any app with offline and cloud transcription, 100+ languages, and custom AI modes.","applicationCategory":"UtilitiesApplication","operatingSystem":"macOS, Windows, iOS, Android","offers":[{"@type":"Offer","price":"0","priceCurrency":"USD","name":"Free"},{"@type":"Offer","price":"8.49","priceCurrency":"USD","name":"Pro Monthly"},{"@type":"Offer","price":"84.99","priceCurrency":"USD","name":"Pro Yearly"},{"@type":"Offer","price":"249.99","priceCurrency":"USD","name":"Pro Lifetime"}],"url":"https://superwhisper.com","downloadUrl":"https://superwhisper.com/download"} {"@context":"https://schema.org","@type":"WebSite","name":"Superwhisper","url":"https://superwhisper.com"} Skip to content Just speak. Write faster. Turn your voice into polished text. Works in Slack, Gmail and any other site or app. Download Watch my demo Select an app, press ⌥ + space and start dictating to try it out yourself! Can't talk right now? Cursor Slack Notes Used by those who move fast From startups to industry leaders, hundreds of thousands rely on Superwhisper to save time. See the companies using Superwhisper Adaptability Communication isn't one-size-fits-all Hello Louis, hope you're doing well. Do you have any updates? No, but we could chat next week if that works for you Let's schedule a meeting next week to review details. Please let me know your availability Hey @Louis, any updates? No, chat soon ? Sure lets book a call for next week, can go over the details then. LMK when you're free! Dear Mr. Coleman, I wanted to follow up and see if there are any updates since our last meeting No, but we could chat next week if it is acceptable for you We can set an appointment to discuss the indemnification clauses in further detail. Please, let me know your schedule. hey louis, whats good my man suh fam lets catch up next wk, lmk when your free Formal Casual Legal Chat What's inside Powerful features, seamlessly integrated. Duh, yes online too Works offline Superwhisper works offline, so you can transcribe anytime. No Wi-Fi, no problem. Use your own words Enter names, abbreviations, and specialized terms once. Superwhisper remembers forever. Predefined modes Predefined modes optimize tone, structure, and formatti
---
000
Command exited with code 6Recorded tool call
{
"type": "tool_call",
"seq": 3,
"ts": "2026-11-19T04:02:14.805Z",
"name": "bash",
"turn": 1,
"input": {
"command": "curl -sL --max-time 20 \"https://superwhisper.com\" | sed -e 's/<[^>]*>/ /g' | tr -s ' \\n' ' \\n' | head -c 3000; echo; echo \"---\"; curl -s --max-time 15 -o /dev/null -w \"%{http_code}\\n\" https://docs.superwhisper.com"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-93c1de6b16f72c97",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 8,
"ts": "2026-11-19T04:02:14.805Z",
"turn": 1,
"output": {
"content": [
{
"text": " Superwhisper — AI Voice to Text for macOS, Windows, iOS & Android {\"@context\":\"https://schema.org\",\"@type\":\"Organization\",\"name\":\"Superwhisper\",\"url\":\"https://superwhisper.com\",\"logo\":\"https://superwhisper.com/app-icon/1024.png\",\"sameAs\":[\"https://twitter.com/superwhisperapp\",\"https://x.com/superwhisper\",\"https://discord.gg/superwhisper\",\"https://github.com/superultrainc\",\"https://www.youtube.com/channel/UCBQpNBU5mrPKge6UETN8i8g\",\"https://apps.apple.com/us/app/superwhisper/id6471464415\",\"https://play.google.com/store/apps/details?id=com.superultra.superwhisper\"]} {\"@context\":\"https://schema.org\",\"@type\":\"SoftwareApplication\",\"name\":\"Superwhisper\",\"description\":\"AI powered voice to text for macOS, Windows, iOS, and Android. Dictate in any app with offline and cloud transcription, 100+ languages, and custom AI modes.\",\"applicationCategory\":\"UtilitiesApplication\",\"operatingSystem\":\"macOS, Windows, iOS, Android\",\"offers\":[{\"@type\":\"Offer\",\"price\":\"0\",\"priceCurrency\":\"USD\",\"name\":\"Free\"},{\"@type\":\"Offer\",\"price\":\"8.49\",\"priceCurrency\":\"USD\",\"name\":\"Pro Monthly\"},{\"@type\":\"Offer\",\"price\":\"84.99\",\"priceCurrency\":\"USD\",\"name\":\"Pro Yearly\"},{\"@type\":\"Offer\",\"price\":\"249.99\",\"priceCurrency\":\"USD\",\"name\":\"Pro Lifetime\"}],\"url\":\"https://superwhisper.com\",\"downloadUrl\":\"https://superwhisper.com/download\"} {\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Superwhisper\",\"url\":\"https://superwhisper.com\"} Skip to content Just speak. Write faster. Turn your voice into polished text. Works in Slack, Gmail and any other site or app. Download Watch my demo Select an app, press ⌥ + space and start dictating to try it out yourself! Can't talk right now? Cursor Slack Notes Used by those who move fast From startups to industry leaders, hundreds of thousands rely on Superwhisper to save time. See the companies using Superwhisper Adaptability Communication isn't one-size-fits-all Hello Louis, hope you're doing well. Do you have any updates? No, but we could chat next week if that works for you Let's schedule a meeting next week to review details. Please let me know your availability Hey @Louis, any updates? No, chat soon ? Sure lets book a call for next week, can go over the details then. LMK when you're free! Dear Mr. Coleman, I wanted to follow up and see if there are any updates since our last meeting No, but we could chat next week if it is acceptable for you We can set an appointment to discuss the indemnification clauses in further detail. Please, let me know your schedule. hey louis, whats good my man suh fam lets catch up next wk, lmk when your free Formal Casual Legal Chat What's inside Powerful features, seamlessly integrated. Duh, yes online too Works offline Superwhisper works offline, so you can transcribe anytime. No Wi-Fi, no problem. Use your own words Enter names, abbreviations, and specialized terms once. Superwhisper remembers forever. Predefined modes Predefined modes optimize tone, structure, and formatti\n---\n000\n\n\nCommand exited with code 6",
"type": "text"
}
],
"details": {}
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-93c1de6b16f72c97",
"is_error": true,
"tool_kind": "shell"
}ls -la /sandbox/repo 2>/dev/null | head -20
total 16
total 16 drwxr-xr-x 3 root root 4096 Sep 18 08:00 . drwxr-xr-x 7 root root 4096 Nov 19 04:00 .. drwxr-xr-x 8 root root 4096 Sep 24 20:05 .git -rw-r--r-- 1 root root 408 Sep 18 08:00 .gitignore
Recorded tool call
{
"type": "tool_call",
"seq": 6,
"ts": "2026-11-19T04:02:14.805Z",
"name": "bash",
"turn": 1,
"input": {
"command": "ls -la /sandbox/repo 2>/dev/null | head -20"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-8cf4b7f0c1d1bd9b",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 7,
"ts": "2026-11-19T04:02:14.805Z",
"turn": 1,
"output": {
"content": [
{
"text": "total 16\ndrwxr-xr-x 3 root root 4096 Sep 18 08:00 .\ndrwxr-xr-x 7 root root 4096 Nov 19 04:00 ..\ndrwxr-xr-x 8 root root 4096 Sep 24 20:05 .git\n-rw-r--r-- 1 root root 408 Sep 18 08:00 .gitignore\n",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-8cf4b7f0c1d1bd9b",
"is_error": false,
"tool_kind": "shell"
}›Thinking…
I need to verify whether Superwhisper offers a public API or SDK by checking their GitHub organization and documentation.
curl -s --max-time 20 "https://api.github.com/orgs/superultrainc/repos?per_page=100" | python3 -c "
import json,sys
d=json.load(sys.stdin)
for r in d: print(r['name'], '|', r.get('description'), '|', r.get('language'), '| stars:', r['stargazers_count'])
"superwhisper-raycast | superwhisper Raycast extension | TypeScript | stars: 31
superwhisper-raycast | superwhisper Raycast extension | TypeScript | stars: 31 superwhisper-docs | None | MDX | stars: 57 superwhisper-download | Superwhisper is an AI voice-to-text tool for quick and accurate transcription. Download free now. | None | stars: 111 whisper.cpp | Port of OpenAI's Whisper model in C/C++ | None | stars: 2 sup | None | Go | stars: 39 opencode-superwhisper | superwhisper voice integration plugin for OpenCode | TypeScript | stars: 21 superwhisper-claude-code | None | Shell | stars: 63 pi-superwhisper | Superwhisper voice integration extension for Pi | TypeScript | stars: 14 .github | None | None | stars: 0 superwhisper-codex | Superwhisper voice integration plugin for OpenAI Codex | Shell | stars: 7 onnxruntime-swift-package-manager | A light-weight repository for providing Swift Package Manager support for ONNX Runtime. | None | stars: 1 superwhisper-cli-release | None | Shell | stars: 30 better-auth | The most comprehensive authentication framework | None | stars: 1 superwhisper-grok | Superwhisper voice integration for Grok | Shell | stars: 3 superwhisper-dsh | Superwhisper voice integration plugin for DeepSeek Harness | TypeScript | stars: 0 superwhisper-linux-releases | Public release downloads and update metadata for Superwhisper on Linux | Nix | stars: 9 AzooKeyKanaKanjiConverter | Kana-Kanji Conversion Module written in Swift, supporting Neural Kana-Kanji Conversion and other cool features. | None | stars: 0 gpui-omarchy | GPUI fork for Omarchy performance experiments. | None | stars: 0 superwhisper-wow | Dictate World of Warcraft chat with Superwhisper | C# | stars: 0
Recorded tool call
{
"type": "tool_call",
"seq": 11,
"ts": "2026-11-19T04:02:14.805Z",
"name": "bash",
"turn": 1,
"input": {
"command": "curl -s --max-time 20 \"https://api.github.com/orgs/superultrainc/repos?per_page=100\" | python3 -c \"\nimport json,sys\nd=json.load(sys.stdin)\nfor r in d: print(r['name'], '|', r.get('description'), '|', r.get('language'), '| stars:', r['stargazers_count'])\n\""
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-8e9f857dd1f50596",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 16,
"ts": "2026-11-19T04:02:14.805Z",
"turn": 1,
"output": {
"content": [
{
"text": "superwhisper-raycast | superwhisper Raycast extension | TypeScript | stars: 31\nsuperwhisper-docs | None | MDX | stars: 57\nsuperwhisper-download | Superwhisper is an AI voice-to-text tool for quick and accurate transcription. Download free now. | None | stars: 111\nwhisper.cpp | Port of OpenAI's Whisper model in C/C++ | None | stars: 2\nsup | None | Go | stars: 39\nopencode-superwhisper | superwhisper voice integration plugin for OpenCode | TypeScript | stars: 21\nsuperwhisper-claude-code | None | Shell | stars: 63\npi-superwhisper | Superwhisper voice integration extension for Pi | TypeScript | stars: 14\n.github | None | None | stars: 0\nsuperwhisper-codex | Superwhisper voice integration plugin for OpenAI Codex | Shell | stars: 7\nonnxruntime-swift-package-manager | A light-weight repository for providing Swift Package Manager support for ONNX Runtime. | None | stars: 1\nsuperwhisper-cli-release | None | Shell | stars: 30\nbetter-auth | The most comprehensive authentication framework | None | stars: 1\nsuperwhisper-grok | Superwhisper voice integration for Grok | Shell | stars: 3\nsuperwhisper-dsh | Superwhisper voice integration plugin for DeepSeek Harness | TypeScript | stars: 0\nsuperwhisper-linux-releases | Public release downloads and update metadata for Superwhisper on Linux | Nix | stars: 9\nAzooKeyKanaKanjiConverter | Kana-Kanji Conversion Module written in Swift, supporting Neural Kana-Kanji Conversion and other cool features. | None | stars: 0\ngpui-omarchy | GPUI fork for Omarchy performance experiments. | None | stars: 0\nsuperwhisper-wow | Dictate World of Warcraft chat with Superwhisper | C# | stars: 0\n",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-8e9f857dd1f50596",
"is_error": false,
"tool_kind": "shell"
}for u in https://superwhisper.com/docs https://superwhisper.com/api https://docs.superwhisper.com https://superwhisper.com/developers https://superwhisper.com/pricing; do printf "%s -> " "$u"; curl -sL --max-time 15 -o /dev/null -w "%{http_code}\n" "$u"; done; echo "=== npm/pypi ==="; curl -s --max-time 15 "https://registry.npmjs.org/-/v1/search?text=superwhisper&size=10" | python3 -c "import json,sys; [print(o['package']['name'],'-',o['package'].get('description')) for o in json.load(sys.stdin)['objects']]"; curl -s --max-time 15 "https://pypi.org/search/?q=superwhisper" -o /dev/null -w "pypi search status: %{http_code}\n"https://superwhisper.com/docs -> 200
https://superwhisper.com/docs -> 200 https://superwhisper.com/api -> 404 https://docs.superwhisper.com -> 000 https://superwhisper.com/developers -> 404 https://superwhisper.com/pricing -> 404 === npm/pypi === @superwhisper/opencode - Superwhisper voice integration plugin for OpenCode - get voice notifications when tasks complete pi-superwhisper-paste - Superwhisper bridge for Pi on Windows: clipboard and recording-file sources. @superwhisper/pi - Superwhisper voice integration extension for Pi - get voice notifications when tasks complete @neuralmux/omp-superwhisper - Superwhisper voice integration extension for Oh My Pi — get voice notifications when tasks complete openverb-app - Press a hotkey, talk, get text — anywhere on macOS, fully offline. Local Gemma 4 dictation, MIT. @iflow-mcp/florianbuetow-imap-mini-mcp - A lightweight MCP server for reading IMAP email and creating draft replies. Built for ProtonMail Bridge. claude-voice-setup - Claude Code 음성 입력 도구 설치 및 연동 자동화 CLI (macOS/Windows) pypi search status: 200
Recorded tool call
{
"type": "tool_call",
"seq": 13,
"ts": "2026-11-19T04:02:14.805Z",
"name": "bash",
"turn": 1,
"input": {
"command": "for u in https://superwhisper.com/docs https://superwhisper.com/api https://docs.superwhisper.com https://superwhisper.com/developers https://superwhisper.com/pricing; do printf \"%s -> \" \"$u\"; curl -sL --max-time 15 -o /dev/null -w \"%{http_code}\\n\" \"$u\"; done; echo \"=== npm/pypi ===\"; curl -s --max-time 15 \"https://registry.npmjs.org/-/v1/search?text=superwhisper&size=10\" | python3 -c \"import json,sys; [print(o['package']['name'],'-',o['package'].get('description')) for o in json.load(sys.stdin)['objects']]\"; curl -s --max-time 15 \"https://pypi.org/search/?q=superwhisper\" -o /dev/null -w \"pypi search status: %{http_code}\\n\""
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-8ebd09b79379a89a",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 17,
"ts": "2026-11-19T04:02:14.805Z",
"turn": 1,
"output": {
"content": [
{
"text": "https://superwhisper.com/docs -> 200\nhttps://superwhisper.com/api -> 404\nhttps://docs.superwhisper.com -> 000\nhttps://superwhisper.com/developers -> 404\nhttps://superwhisper.com/pricing -> 404\n=== npm/pypi ===\n@superwhisper/opencode - Superwhisper voice integration plugin for OpenCode - get voice notifications when tasks complete\npi-superwhisper-paste - Superwhisper bridge for Pi on Windows: clipboard and recording-file sources.\n@superwhisper/pi - Superwhisper voice integration extension for Pi - get voice notifications when tasks complete\n@neuralmux/omp-superwhisper - Superwhisper voice integration extension for Oh My Pi — get voice notifications when tasks complete\nopenverb-app - Press a hotkey, talk, get text — anywhere on macOS, fully offline. Local Gemma 4 dictation, MIT.\n@iflow-mcp/florianbuetow-imap-mini-mcp - A lightweight MCP server for reading IMAP email and creating draft replies. Built for ProtonMail Bridge.\nclaude-voice-setup - Claude Code 음성 입력 도구 설치 및 연동 자동화 CLI (macOS/Windows)\npypi search status: 200\n",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-8ebd09b79379a89a",
"is_error": false,
"tool_kind": "shell"
}›Thinking…
I notice Superwhisper has an official Pi extension I can work with since I'm already running in Pi. Let me look into the extension details and CLI documentation to understand how to build a simple example and figure out the pricing model.
curl -s --max-time 20 "https://raw.githubusercontent.com/superultrainc/pi-superwhisper/main/README.md" | head -c 6000
# @superwhisper/pi
# @superwhisper/pi Superwhisper voice integration extension for [Pi](https://github.com/badlogic/pi-mono). Get voice notifications when your AI coding tasks complete, and respond with your voice. Your voice response is sent back to Pi as the next prompt, creating a hands-free coding loop. ## Requirements - [Pi](https://github.com/badlogic/pi-mono) (`@mariozechner/pi-coding-agent`) installed (`npm i -g @mariozechner/pi-coding-agent`) - [Superwhisper](https://superwhisper.com) app for macOS ## Installation Install with pi's package manager. Pick whichever source you prefer — both work the same once installed. ### From npm ```bash pi install npm:@superwhisper/pi ``` ### From git ```bash pi install git:github.com/superultrainc/pi-superwhisper ``` Pi clones into `~/.pi/agent/git/github.com/superultrainc/pi-superwhisper` and runs `npm install` automatically. Pin a version with `@<ref>` (e.g. `...pi-superwhisper@v1.0.0`). ### From a local clone ```bash git clone https://github.com/superultrainc/pi-superwhisper.git pi install ./pi-superwhisper ``` Pi loads `.ts` extensions directly via jiti, so there's no build step. Restart pi to activate. ## How It Works ``` You speak → Pi works → Extension notifies Superwhisper → You speak back → loop ``` 1. **Task completes** → Pi fires `agent_end` with `stopReason: "stop"` 2. **Extension extracts the response** → reads the last assistant text content 3. **Extension notifies Superwhisper** → writes message to temp file, opens deeplink 4. **Superwhisper shows notification** → displays summary with voice recording UI 5. **You speak your response** → Superwhisper transcribes and writes to response file 6. **Extension reads response** → polls the response file, sends back to Pi via `pi.sendUserMessage` 7. **Pi continues** → processes your voice input as the next instruction ## Events | Pi Event | Superwhisper Status | Description | |-------------------|---------------------|------------------------------| | `agent_end` (stop)| `completed` | Task finished | Pi has no built-in permission popups or elicitation system, so only end-of-turn completions are surfaced today. If you wire up your own permission gate via `tool_call` blocking, file an issue and we'll plumb it through. ## Controlling Superwhisper During a Session You can ask the agent to enable or disable Superwhisper voice notifications at any time during a session. The extension exposes a `superwhisper_toggle` tool the agent will use automatically when instructed. **Disable Superwhisper for the current session:** > "Disable Superwhisper" / "Turn off voice notifications" / "Stop Superwhisper" **Re-enable Superwhisper for the current session:** > "Enable Superwhisper" / "Turn voice notifications back on" / "Re-enable Superwhisper" The toggle is session-scoped — it only affects the current Pi session and resets when you start a new one. ## Development ```bash npm install npm run typecheck ``` ### Local Testing See [From a local clone](#from-a-local-clone) above for the standard `pi install ./path` flow. For tighter iteration on a single file, symlink it into pi's user extensions directory so edits are picked up on the next pi restart without re-running `pi install`: ```bash mkdir -p ~/.pi/agent/extensions ln -s "$PWD/extensions/superwhisper.ts" ~/.pi/agent/extensions/superwhisper.ts ``` ### Environment Variables | Variable | Default | Description | |------------------------|---------|----------------------------------------------------------------------| | `SUPERWHISPER_DEBUG` | unset | Set to `1` to write debug logs to `/tmp/superwhisper-agent/debug.log`| | `SUPERWHISPER_SCHEME` | auto | Override deeplink scheme (`superwhisper` vs `superwhisper-debug`) | ### Project Structure ``` extensions/ superwhisper.ts # Extension entry — pi loads this directly constants.ts # Constants and shared types inbox.ts # Inbox payload writes message.ts # Pi AgentMessage helpers (extract text, summary, end-turn) poll.ts # Response file polling ``` ## License MIT
Recorded tool call
{
"type": "tool_call",
"seq": 20,
"ts": "2026-11-19T04:02:14.805Z",
"name": "bash",
"turn": 1,
"input": {
"command": "curl -s --max-time 20 \"https://raw.githubusercontent.com/superultrainc/pi-superwhisper/main/README.md\" | head -c 6000"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-bd985f47850a395a",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 25,
"ts": "2026-11-19T04:02:14.805Z",
"turn": 1,
"output": {
"content": [
{
"text": "# @superwhisper/pi\n\nSuperwhisper voice integration extension for [Pi](https://github.com/badlogic/pi-mono).\n\nGet voice notifications when your AI coding tasks complete, and respond with your voice. Your voice response is sent back to Pi as the next prompt, creating a hands-free coding loop.\n\n## Requirements\n\n- [Pi](https://github.com/badlogic/pi-mono) (`@mariozechner/pi-coding-agent`) installed (`npm i -g @mariozechner/pi-coding-agent`)\n- [Superwhisper](https://superwhisper.com) app for macOS\n\n## Installation\n\nInstall with pi's package manager. Pick whichever source you prefer — both work the same once installed.\n\n### From npm\n\n```bash\npi install npm:@superwhisper/pi\n```\n\n### From git\n\n```bash\npi install git:github.com/superultrainc/pi-superwhisper\n```\n\nPi clones into `~/.pi/agent/git/github.com/superultrainc/pi-superwhisper` and runs `npm install` automatically. Pin a version with `@<ref>` (e.g. `...pi-superwhisper@v1.0.0`).\n\n### From a local clone\n\n```bash\ngit clone https://github.com/superultrainc/pi-superwhisper.git\npi install ./pi-superwhisper\n```\n\nPi loads `.ts` extensions directly via jiti, so there's no build step.\n\nRestart pi to activate.\n\n## How It Works\n\n```\nYou speak → Pi works → Extension notifies Superwhisper → You speak back → loop\n```\n\n1. **Task completes** → Pi fires `agent_end` with `stopReason: \"stop\"`\n2. **Extension extracts the response** → reads the last assistant text content\n3. **Extension notifies Superwhisper** → writes message to temp file, opens deeplink\n4. **Superwhisper shows notification** → displays summary with voice recording UI\n5. **You speak your response** → Superwhisper transcribes and writes to response file\n6. **Extension reads response** → polls the response file, sends back to Pi via `pi.sendUserMessage`\n7. **Pi continues** → processes your voice input as the next instruction\n\n## Events\n\n| Pi Event | Superwhisper Status | Description |\n|-------------------|---------------------|------------------------------|\n| `agent_end` (stop)| `completed` | Task finished |\n\nPi has no built-in permission popups or elicitation system, so only end-of-turn completions are surfaced today. If you wire up your own permission gate via `tool_call` blocking, file an issue and we'll plumb it through.\n\n## Controlling Superwhisper During a Session\n\nYou can ask the agent to enable or disable Superwhisper voice notifications at any time during a session. The extension exposes a `superwhisper_toggle` tool the agent will use automatically when instructed.\n\n**Disable Superwhisper for the current session:**\n> \"Disable Superwhisper\" / \"Turn off voice notifications\" / \"Stop Superwhisper\"\n\n**Re-enable Superwhisper for the current session:**\n> \"Enable Superwhisper\" / \"Turn voice notifications back on\" / \"Re-enable Superwhisper\"\n\nThe toggle is session-scoped — it only affects the current Pi session and resets when you start a new one.\n\n## Development\n\n```bash\nnpm install\nnpm run typecheck\n```\n\n### Local Testing\n\nSee [From a local clone](#from-a-local-clone) above for the standard `pi install ./path` flow. For tighter iteration on a single file, symlink it into pi's user extensions directory so edits are picked up on the next pi restart without re-running `pi install`:\n\n```bash\nmkdir -p ~/.pi/agent/extensions\nln -s \"$PWD/extensions/superwhisper.ts\" ~/.pi/agent/extensions/superwhisper.ts\n```\n\n### Environment Variables\n\n| Variable | Default | Description |\n|------------------------|---------|----------------------------------------------------------------------|\n| `SUPERWHISPER_DEBUG` | unset | Set to `1` to write debug logs to `/tmp/superwhisper-agent/debug.log`|\n| `SUPERWHISPER_SCHEME` | auto | Override deeplink scheme (`superwhisper` vs `superwhisper-debug`) |\n\n### Project Structure\n\n```\nextensions/\n superwhisper.ts # Extension entry — pi loads this directly\n constants.ts # Constants and shared types\n inbox.ts # Inbox payload writes\n message.ts # Pi AgentMessage helpers (extract text, summary, end-turn)\n poll.ts # Response file polling\n```\n\n## License\n\nMIT\n",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-bd985f47850a395a",
"is_error": false,
"tool_kind": "shell"
}curl -s --max-time 20 "https://raw.githubusercontent.com/superultrainc/superwhisper-cli-release/main/README.md" | head -c 4000; echo "=== docs sitemap ==="; curl -sL --max-time 20 "https://superwhisper.com/docs" | grep -oE 'href="[^"]*"' | sort -u | head -60
# superwhisper-cli-release
# superwhisper-cli-release Public release artifacts for the [superwhisper](https://superwhisper.com) CLI. The CLI source lives in a private repo; this repo holds only the prebuilt universal macOS binary and the install script. ## Install ```bash curl -fsSL https://raw.githubusercontent.com/superultrainc/superwhisper-cli-release/main/install.sh | bash ``` The script installs the latest release to `/usr/local/bin` (or `~/.local/bin` if that isn't writable). Override with `SUPERWHISPER_VERSION` or `SUPERWHISPER_BINDIR`. ## Releases Binaries are published here automatically by the CLI repo's release workflow when a `v*` tag is pushed. Each release includes the universal macOS tarball and a `checksums.txt`. === docs sitemap === href="#available-on" href="#content-area" href="#explore-more" href="#get-started" href="#how-it-works" href="#key-features" href="#mi-mint-1-Attach" href="#mi-mint-1-CalloutInfo" href="#mi-mint-1-CalloutNote" href="#mi-mint-1-CaretDown" href="#mi-mint-1-ChevronRight" href="#mi-mint-1-Close" href="#mi-mint-1-Expand" href="#mi-mint-1-ExternalLink" href="#mi-mint-1-Menu" href="#mi-mint-1-Search" href="#mi-mint-1-Send" href="#mi-mint-1-Sparkle" href="#mi-mint-1-TableOfContents" href="#mi-mint-1-ThumbsDown" href="#mi-mint-1-ThumbsUp" href="/common-issues/language-detection" href="/common-issues/no-voice-found" href="/common-issues/realtime" href="/common-issues/shortcuts-not-working" href="/docs" href="/docs/_mintlify/assets/fonts/inter/Inter-latin.woff2" href="/docs/_mintlify/assets/index-BNGwyf0d.css?dpl=dpl_J2QdBVuN65x4CCtpqPb371YPt4xi" href="/docs/_mintlify/assets/index-D_TPYpeF.js?dpl=dpl_J2QdBVuN65x4CCtpqPb371YPt4xi" href="/docs/_mintlify/assets/initial-vendor-BBaxCnHt.js?dpl=dpl_J2QdBVuN65x4CCtpqPb371YPt4xi" href="/docs/_mintlify/assets/lightbox-handle-r17bVUz3.js?dpl=dpl_J2QdBVuN65x4CCtpqPb371YPt4xi" href="/docs/_mintlify/assets/rolldown-runtime-Bjp52BOI.js?dpl=dpl_J2QdBVuN65x4CCtpqPb371YPt4xi" href="/docs/_mintlify/assets/zoom-image-lightbox-B0JqbMuR.js?dpl=dpl_J2QdBVuN65x4CCtpqPb371YPt4xi" href="/docs/billing/activate" href="/docs/billing/manage-subscription" href="/docs/billing/plans" href="/docs/common-issues/troubleshooting" href="/docs/enterprise/activate" href="/docs/enterprise/billing" href="/docs/enterprise/getting-started" href="/docs/enterprise/usage-analytics" href="/docs/get-started/android" href="/docs/get-started/backing-up-settings" href="/docs/get-started/choose-your-model" href="/docs/get-started/cli" href="/docs/get-started/coding-agents" href="/docs/get-started/community" href="/docs/get-started/essential-settings" href="/docs/get-started/history" href="/docs/get-started/introduction" href="/docs/get-started/introduction.md" href="/docs/get-started/optimizing-with-ai" href="/docs/get-started/quickstart" href="/docs/get-started/settings-advanced" href="/docs/get-started/transcribe-files" href="/docs/get-started/windows" href="/docs/llms.txt" href="/docs/meetings/offline" href="/docs/meetings/overview" href="/docs/meetings/record"
Recorded tool call
{
"type": "tool_call",
"seq": 22,
"ts": "2026-11-19T04:02:14.805Z",
"name": "bash",
"turn": 1,
"input": {
"command": "curl -s --max-time 20 \"https://raw.githubusercontent.com/superultrainc/superwhisper-cli-release/main/README.md\" | head -c 4000; echo \"=== docs sitemap ===\"; curl -sL --max-time 20 \"https://superwhisper.com/docs\" | grep -oE 'href=\"[^\"]*\"' | sort -u | head -60"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-8294efe1ee98aea3",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 26,
"ts": "2026-11-19T04:02:14.805Z",
"turn": 1,
"output": {
"content": [
{
"text": "# superwhisper-cli-release\n\nPublic release artifacts for the [superwhisper](https://superwhisper.com) CLI.\nThe CLI source lives in a private repo; this repo holds only the prebuilt\nuniversal macOS binary and the install script.\n\n## Install\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/superultrainc/superwhisper-cli-release/main/install.sh | bash\n```\n\nThe script installs the latest release to `/usr/local/bin` (or `~/.local/bin`\nif that isn't writable). Override with `SUPERWHISPER_VERSION` or\n`SUPERWHISPER_BINDIR`.\n\n## Releases\n\nBinaries are published here automatically by the CLI repo's release workflow\nwhen a `v*` tag is pushed. Each release includes the universal macOS tarball\nand a `checksums.txt`.\n=== docs sitemap ===\nhref=\"#available-on\"\nhref=\"#content-area\"\nhref=\"#explore-more\"\nhref=\"#get-started\"\nhref=\"#how-it-works\"\nhref=\"#key-features\"\nhref=\"#mi-mint-1-Attach\"\nhref=\"#mi-mint-1-CalloutInfo\"\nhref=\"#mi-mint-1-CalloutNote\"\nhref=\"#mi-mint-1-CaretDown\"\nhref=\"#mi-mint-1-ChevronRight\"\nhref=\"#mi-mint-1-Close\"\nhref=\"#mi-mint-1-Expand\"\nhref=\"#mi-mint-1-ExternalLink\"\nhref=\"#mi-mint-1-Menu\"\nhref=\"#mi-mint-1-Search\"\nhref=\"#mi-mint-1-Send\"\nhref=\"#mi-mint-1-Sparkle\"\nhref=\"#mi-mint-1-TableOfContents\"\nhref=\"#mi-mint-1-ThumbsDown\"\nhref=\"#mi-mint-1-ThumbsUp\"\nhref=\"/common-issues/language-detection\"\nhref=\"/common-issues/no-voice-found\"\nhref=\"/common-issues/realtime\"\nhref=\"/common-issues/shortcuts-not-working\"\nhref=\"/docs\"\nhref=\"/docs/_mintlify/assets/fonts/inter/Inter-latin.woff2\"\nhref=\"/docs/_mintlify/assets/index-BNGwyf0d.css?dpl=dpl_J2QdBVuN65x4CCtpqPb371YPt4xi\"\nhref=\"/docs/_mintlify/assets/index-D_TPYpeF.js?dpl=dpl_J2QdBVuN65x4CCtpqPb371YPt4xi\"\nhref=\"/docs/_mintlify/assets/initial-vendor-BBaxCnHt.js?dpl=dpl_J2QdBVuN65x4CCtpqPb371YPt4xi\"\nhref=\"/docs/_mintlify/assets/lightbox-handle-r17bVUz3.js?dpl=dpl_J2QdBVuN65x4CCtpqPb371YPt4xi\"\nhref=\"/docs/_mintlify/assets/rolldown-runtime-Bjp52BOI.js?dpl=dpl_J2QdBVuN65x4CCtpqPb371YPt4xi\"\nhref=\"/docs/_mintlify/assets/zoom-image-lightbox-B0JqbMuR.js?dpl=dpl_J2QdBVuN65x4CCtpqPb371YPt4xi\"\nhref=\"/docs/billing/activate\"\nhref=\"/docs/billing/manage-subscription\"\nhref=\"/docs/billing/plans\"\nhref=\"/docs/common-issues/troubleshooting\"\nhref=\"/docs/enterprise/activate\"\nhref=\"/docs/enterprise/billing\"\nhref=\"/docs/enterprise/getting-started\"\nhref=\"/docs/enterprise/usage-analytics\"\nhref=\"/docs/get-started/android\"\nhref=\"/docs/get-started/backing-up-settings\"\nhref=\"/docs/get-started/choose-your-model\"\nhref=\"/docs/get-started/cli\"\nhref=\"/docs/get-started/coding-agents\"\nhref=\"/docs/get-started/community\"\nhref=\"/docs/get-started/essential-settings\"\nhref=\"/docs/get-started/history\"\nhref=\"/docs/get-started/introduction\"\nhref=\"/docs/get-started/introduction.md\"\nhref=\"/docs/get-started/optimizing-with-ai\"\nhref=\"/docs/get-started/quickstart\"\nhref=\"/docs/get-started/settings-advanced\"\nhref=\"/docs/get-started/transcribe-files\"\nhref=\"/docs/get-started/windows\"\nhref=\"/docs/llms.txt\"\nhref=\"/docs/meetings/offline\"\nhref=\"/docs/meetings/overview\"\nhref=\"/docs/meetings/record\"\n",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-8294efe1ee98aea3",
"is_error": false,
"tool_kind": "shell"
}›Thinking…
I'm looking at the developer documentation for Superwhisper, which includes a CLI tool and integration options for coding agents. The CLI requires macOS and the Superwhisper app, but there's a blocker since the sandbox is running Linux.
cd /tmp && curl -s --max-time 25 https://superwhisper.com/docs/llms.txt -o llms.txt && wc -l llms.txt && grep -iE "cli|coding-agent|plan|billing|api|sdk|enterprise" llms.txt | head -40; echo "=== uname ==="; uname -a
81 llms.txt
81 llms.txt - [Optimizing Superwhisper with AI](https://superwhisper.com/docs/get-started/optimizing-with-ai.md): Use a coding agent and the Superwhisper CLI to tune your setup. Fix vocabulary and build custom modes from your dictation history. - [Menu bar icon](https://superwhisper.com/docs/get-started/interface-menu-bar.md): The Superwhisper menu bar icon shows recording status and gives quick access to key functions. Learn the status colors and click options. - [Coding agents](https://superwhisper.com/docs/get-started/coding-agents.md): Connect Superwhisper to Claude Code, Codex, Cursor, and other coding agents. Answer agent questions by voice and get notified when the agent finishes. - [CLI and MCP server](https://superwhisper.com/docs/get-started/cli.md): Search your Superwhisper history and control the app from the terminal on macOS. Run the CLI as an MCP server to give AI assistants access. - [Plans & Pricing](https://superwhisper.com/docs/billing/plans.md): Superwhisper is free with local Whisper models, and Pro adds cloud models and AI modes. See Free vs Pro features, pricing, and where to buy. - [Activate Your License](https://superwhisper.com/docs/billing/activate.md): Enter your Superwhisper Pro license key on macOS, Windows, iOS, or Android. Recover a lost key if you need to. - [Manage Your Subscription](https://superwhisper.com/docs/billing/manage-subscription.md): Cancel your subscription, request a 14-day refund, and download invoices. Switch between Monthly, Annual, and Lifetime plans. - [Sensitive Data Best Practices](https://superwhisper.com/docs/security/sensitive-data.md): Configure Superwhisper for healthcare, financial, and other regulated data. See where data goes with local models, cloud models, and enterprise controls. - [Text not pasting, pasting twice, or pasting old text](https://superwhisper.com/docs/common-issues/pasting-issues.md): Fix dictations that do not paste, paste twice, or paste old clipboard text. Work through the steps in order, or watch the video walkthrough. - [Context awareness](https://superwhisper.com/docs/common-issues/context.md): Learn how Superwhisper captures selected text, application, and clipboard context. Then fix context that is missing or wrong. - [Getting Started](https://superwhisper.com/docs/enterprise/getting-started.md): Set up a Superwhisper Enterprise org for your team. Configure authentication, billing, members, and models. - [Activate Your Enterprise License](https://superwhisper.com/docs/enterprise/activate.md): Activate Superwhisper with your company's Enterprise license. Install the app, sign in with your work email, and start dictating. - [SAML 2.0](https://superwhisper.com/docs/enterprise/saml-sso.md): Set up SAML 2.0 single sign-on for Superwhisper Enterprise. Works with Okta, Microsoft Entra, Google, or any SAML 2.0 provider. - [SCIM Provisioning](https://superwhisper.com/docs/enterprise/scim.md): Automate user provisioning and deprovisioning for Superwhisper Enterprise with SCIM. Requires SAML SSO. - [MDM & Silent Deployment](https://superwhisper.com/docs/enterprise/mdm-deployment.md): Deploy Superwhisper silently to Mac and Windows fleets using Jamf, Microsoft Intune, or any MDM that supports DMG and EXE installers. - [Software and Model Updates](https://superwhisper.com/docs/enterprise/updates.md): How Superwhisper delivers app and model updates on Mac and Windows, what you can control, and how to manage timing and versions for your fleet. - [Member Management](https://superwhisper.com/docs/enterprise/member-management.md): Invite users, assign roles, and reassign seats in your Superwhisper Enterprise org. Handle the full member lifecycle from the dashboard. - [Configuration & Models](https://superwhisper.com/docs/enterprise/configuration.md): Set org-wide policies for model access, custom providers, recording, and retention. Settings reach every member the next time they launch the app. - [Amazon Bedrock](https://superwhisper.com/docs/enterprise/amazon-bedrock.md): Configure Amazon Bedrock as a custom model provider for your Enterprise account. Members then pick your Bedrock models in the app. - [Billing & Subscription Management](https://superwhisper.com/docs/enterprise/billing.md): Set up billing and manage seats for your Superwhisper Enterprise organization. Control subscription costs from the dashboard. - [Usage Analytics](https://superwhisper.com/docs/enterprise/usage-analytics.md): See how your team uses Superwhisper in an optional dashboard. This page lists what we collect and what we never collect. ## OpenAPI Specs - [openapi](https://api.superwhisper.com/api/v1/openapi.json) === uname === Linux freestyle-vm 6.1.102 #1 SMP PREEMPT_DYNAMIC Wed Aug 26 20:12:24 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Recorded tool call
{
"type": "tool_call",
"seq": 29,
"ts": "2026-11-19T04:02:14.805Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cd /tmp && curl -s --max-time 25 https://superwhisper.com/docs/llms.txt -o llms.txt && wc -l llms.txt && grep -iE \"cli|coding-agent|plan|billing|api|sdk|enterprise\" llms.txt | head -40; echo \"=== uname ===\"; uname -a"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-94df74e53ebfe1e4",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 31,
"ts": "2026-11-19T04:02:14.805Z",
"turn": 1,
"output": {
"content": [
{
"text": "81 llms.txt\n- [Optimizing Superwhisper with AI](https://superwhisper.com/docs/get-started/optimizing-with-ai.md): Use a coding agent and the Superwhisper CLI to tune your setup. Fix vocabulary and build custom modes from your dictation history.\n- [Menu bar icon](https://superwhisper.com/docs/get-started/interface-menu-bar.md): The Superwhisper menu bar icon shows recording status and gives quick access to key functions. Learn the status colors and click options.\n- [Coding agents](https://superwhisper.com/docs/get-started/coding-agents.md): Connect Superwhisper to Claude Code, Codex, Cursor, and other coding agents. Answer agent questions by voice and get notified when the agent finishes.\n- [CLI and MCP server](https://superwhisper.com/docs/get-started/cli.md): Search your Superwhisper history and control the app from the terminal on macOS. Run the CLI as an MCP server to give AI assistants access.\n- [Plans & Pricing](https://superwhisper.com/docs/billing/plans.md): Superwhisper is free with local Whisper models, and Pro adds cloud models and AI modes. See Free vs Pro features, pricing, and where to buy.\n- [Activate Your License](https://superwhisper.com/docs/billing/activate.md): Enter your Superwhisper Pro license key on macOS, Windows, iOS, or Android. Recover a lost key if you need to.\n- [Manage Your Subscription](https://superwhisper.com/docs/billing/manage-subscription.md): Cancel your subscription, request a 14-day refund, and download invoices. Switch between Monthly, Annual, and Lifetime plans.\n- [Sensitive Data Best Practices](https://superwhisper.com/docs/security/sensitive-data.md): Configure Superwhisper for healthcare, financial, and other regulated data. See where data goes with local models, cloud models, and enterprise controls.\n- [Text not pasting, pasting twice, or pasting old text](https://superwhisper.com/docs/common-issues/pasting-issues.md): Fix dictations that do not paste, paste twice, or paste old clipboard text. Work through the steps in order, or watch the video walkthrough.\n- [Context awareness](https://superwhisper.com/docs/common-issues/context.md): Learn how Superwhisper captures selected text, application, and clipboard context. Then fix context that is missing or wrong.\n- [Getting Started](https://superwhisper.com/docs/enterprise/getting-started.md): Set up a Superwhisper Enterprise org for your team. Configure authentication, billing, members, and models.\n- [Activate Your Enterprise License](https://superwhisper.com/docs/enterprise/activate.md): Activate Superwhisper with your company's Enterprise license. Install the app, sign in with your work email, and start dictating.\n- [SAML 2.0](https://superwhisper.com/docs/enterprise/saml-sso.md): Set up SAML 2.0 single sign-on for Superwhisper Enterprise. Works with Okta, Microsoft Entra, Google, or any SAML 2.0 provider.\n- [SCIM Provisioning](https://superwhisper.com/docs/enterprise/scim.md): Automate user provisioning and deprovisioning for Superwhisper Enterprise with SCIM. Requires SAML SSO.\n- [MDM & Silent Deployment](https://superwhisper.com/docs/enterprise/mdm-deployment.md): Deploy Superwhisper silently to Mac and Windows fleets using Jamf, Microsoft Intune, or any MDM that supports DMG and EXE installers.\n- [Software and Model Updates](https://superwhisper.com/docs/enterprise/updates.md): How Superwhisper delivers app and model updates on Mac and Windows, what you can control, and how to manage timing and versions for your fleet.\n- [Member Management](https://superwhisper.com/docs/enterprise/member-management.md): Invite users, assign roles, and reassign seats in your Superwhisper Enterprise org. Handle the full member lifecycle from the dashboard.\n- [Configuration & Models](https://superwhisper.com/docs/enterprise/configuration.md): Set org-wide policies for model access, custom providers, recording, and retention. Settings reach every member the next time they launch the app.\n- [Amazon Bedrock](https://superwhisper.com/docs/enterprise/amazon-bedrock.md): Configure Amazon Bedrock as a custom model provider for your Enterprise account. Members then pick your Bedrock models in the app.\n- [Billing & Subscription Management](https://superwhisper.com/docs/enterprise/billing.md): Set up billing and manage seats for your Superwhisper Enterprise organization. Control subscription costs from the dashboard.\n- [Usage Analytics](https://superwhisper.com/docs/enterprise/usage-analytics.md): See how your team uses Superwhisper in an optional dashboard. This page lists what we collect and what we never collect.\n## OpenAPI Specs\n- [openapi](https://api.superwhisper.com/api/v1/openapi.json)\n=== uname ===\nLinux freestyle-vm 6.1.102 #1 SMP PREEMPT_DYNAMIC Wed Aug 26 20:12:24 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux\n",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-94df74e53ebfe1e4",
"is_error": false,
"tool_kind": "shell"
}›Thinking…
There's an OpenAPI spec available for Superwhisper's enterprise API, so I should check that along with their documentation on the CLI, coding agents, and pricing plans to understand the full scope of what's available.
cd /tmp && curl -s --max-time 25 https://api.superwhisper.com/api/v1/openapi.json -o oapi.json; wc -c oapi.json; python3 -c "
import json
d=json.load(open('oapi.json'))
print('title:', d['info'].get('title'), d['info'].get('version'))
print('servers:', d.get('servers'))
for p,v in d.get('paths',{}).items():
for m,op in v.items():
print(m.upper(), p, '-', op.get('summary'), '| sec:', op.get('security'))
" 2>&1 | head -607462 oapi.json
7462 oapi.json
title: SuperWhisper API 1.0.0
servers: [{'url': 'https://api.superwhisper.com', 'description': 'Production'}]
GET /api/v1/stats/dimensions - Get stat dimensions | sec: [{'bearerAuth': []}]
GET /api/v1/stats/summary - Get summary statistics | sec: [{'bearerAuth': []}]
GET /api/v1/stats - Get paginated statistics | sec: [{'bearerAuth': []}]
Recorded tool call
{
"type": "tool_call",
"seq": 34,
"ts": "2026-11-19T04:02:20.777Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cd /tmp && curl -s --max-time 25 https://api.superwhisper.com/api/v1/openapi.json -o oapi.json; wc -c oapi.json; python3 -c \"\nimport json\nd=json.load(open('oapi.json'))\nprint('title:', d['info'].get('title'), d['info'].get('version'))\nprint('servers:', d.get('servers'))\nfor p,v in d.get('paths',{}).items():\n for m,op in v.items():\n print(m.upper(), p, '-', op.get('summary'), '| sec:', op.get('security'))\n\" 2>&1 | head -60"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-ac6dd76a1daa546e",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 39,
"ts": "2026-11-19T04:02:20.777Z",
"turn": 1,
"output": {
"content": [
{
"text": "7462 oapi.json\ntitle: SuperWhisper API 1.0.0\nservers: [{'url': 'https://api.superwhisper.com', 'description': 'Production'}]\nGET /api/v1/stats/dimensions - Get stat dimensions | sec: [{'bearerAuth': []}]\nGET /api/v1/stats/summary - Get summary statistics | sec: [{'bearerAuth': []}]\nGET /api/v1/stats - Get paginated statistics | sec: [{'bearerAuth': []}]\n",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-ac6dd76a1daa546e",
"is_error": false,
"tool_kind": "shell"
}cd /tmp && curl -s --max-time 20 https://superwhisper.com/docs/billing/plans.md -o plans.md && head -c 5000 plans.md
> ## Documentation Index
> ## Documentation Index > Fetch the complete documentation index at: https://superwhisper.com/docs/llms.txt > Use this file to discover all available pages before exploring further. # Plans & Pricing > Superwhisper is free with local Whisper models, and Pro adds cloud models and AI modes. See Free vs Pro features, pricing, and where to buy. **Yes, Superwhisper has a free plan.** Free gives you unlimited dictation with local Whisper models, up to two modes, custom vocabulary, and text replacements. Pro adds cloud models, AI processing, file transcription, and more. One Superwhisper Pro license works on **all your devices**: unlimited Macs and Windows PCs, plus your iPhone and Android phone. ## Free vs Pro | Feature | Free | Pro | | :- | :-: | :-: | | Voice dictation | ✓ | ✓ | | Local Whisper models | ✓ | ✓ | | Custom vocabulary | ✓ | ✓ | | Text replacements | ✓ | ✓ | | File transcription | - | ✓ | | Modes | Up to 2 (no AI processing) | Unlimited | | Cloud voice models | - | ✓ | | Cohere Transcribe and Parakeet | - | ✓ | | AI-powered modes (Super, Mail, etc.) | - | ✓ | | Context awareness | - | ✓ | | Realtime transcription | - | ✓ | | System audio recording | - | ✓ | | Speaker separation | - | ✓ | | [Meetings](https://superwhisper.com/docs/meetings/overview.md) (macOS) | Free words only | ✓ | | Bring your own API keys | - | ✓ | | Priority support | - | ✓ | **On the Free plan** you get unlimited dictation with any [local Whisper model](https://superwhisper.com/docs/models/voice.md#whisper-models-local), custom vocabulary, text replacements, and up to two modes without AI processing. Nothing you dictate leaves your device. **Pro adds** the cloud models, the Cohere Transcribe and Parakeet local models, file transcription, unlimited modes, and everything that runs your dictation through AI: [Super and the other AI modes](https://superwhisper.com/docs/modes/built-in.md), context awareness, realtime, speaker separation, and [Meetings](https://superwhisper.com/docs/meetings/overview.md). > [!NOTE] > > New users get 3000 words of free access to all Pro features, including Meetings. When that runs out, the app falls back to the Free plan; nothing is deleted. ## Pricing | Plan | Price | Best For | | :- | :- | :- | | Monthly | \$8.49/month | Trying Pro features | | Annual | \$84.99/year | Regular users (save \~17%) | | Lifetime | \$249.99 once | Power users | Every plan includes the same features; only the billing differs. ## Discounts * **Students and educators**: 40% off list price for verified students, faculty, and academic institutions * **Non-profits**: 40% off list price for verified non-profit and charitable organizations To request a discount, email [support@superwhisper.com](mailto:support@superwhisper.com) from your academic or organization email with proof of status. Verification happens first, so request the discount **before you purchase**. > [!NOTE] > > Discounts apply to purchases on superwhisper.com, including Monthly, Annual, and Lifetime plans and Enterprise list pricing. They can't be applied to App Store purchases, aren't stackable with other discounts, and aren't applied retroactively to charges already made. ## Where to buy 1. **Superwhisper website (recommended)**: buy at [superwhisper.com](https://superwhisper.com). Lower price, your key arrives by email, and we can help with any purchase issue. 2. **iOS App Store**: buy inside the iPhone app. Higher price due to Apple's fees. Your key is in the app under **Settings → Superwhisper Pro → Reveal License Key**; use it to [activate on Mac and Windows](https://superwhisper.com/docs/billing/activate.md). 3. **Google Play**: buy inside the Android app. Higher price due to Google's fees. > [!WARNING] > > We can't manage App Store or Google Play billing, refunds, or subscriptions on our end. Contact [Apple Support](https://support.apple.com/billing) or [Google Play Support](https://support.google.com/googleplay/answer/7018481) for those. ## FAQ ### Do I need separate licenses for Mac, Windows, and iPhone? No. One Pro license works on all platforms. ### Can I use my license on multiple computers? Yes. There's no device limit for Mac and Windows computers. ### I lost my license key (including Lifetime). Can I recover it? Yes. Any license type can be recovered, and Lifetime keys never expire. See [find or recover a lost license key](https://superwhisper.com/docs/billing/activate.md#find-or-recover-a-lost-license-key). ### Do my custom modes sync between devices? By default they are stored per device. On macOS, [Filesync](https://superwhisper.com/docs/get-started/settings-advanced.md#filesync) syncs configuration between your Macs. ### Do you offer student discounts? Yes: 40% off for verified students, faculty, and academic institutions, and the same for non-profits. See [Discounts](#discounts) for how to request it. ### Do I need a separate plan for Meetings? No. Meetings is part of
Recorded tool call
{
"type": "tool_call",
"seq": 36,
"ts": "2026-11-19T04:02:20.777Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cd /tmp && curl -s --max-time 20 https://superwhisper.com/docs/billing/plans.md -o plans.md && head -c 5000 plans.md"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-b5ca52c752dee430",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 38,
"ts": "2026-11-19T04:02:20.777Z",
"turn": 1,
"output": {
"content": [
{
"text": "> ## Documentation Index\n> Fetch the complete documentation index at: https://superwhisper.com/docs/llms.txt\n> Use this file to discover all available pages before exploring further.\n\n# Plans & Pricing\n\n> Superwhisper is free with local Whisper models, and Pro adds cloud models and AI modes. See Free vs Pro features, pricing, and where to buy.\n\n**Yes, Superwhisper has a free plan.** Free gives you unlimited dictation with local Whisper models, up to two modes, custom vocabulary, and text replacements. Pro adds cloud models, AI processing, file transcription, and more.\n\nOne Superwhisper Pro license works on **all your devices**: unlimited Macs and Windows PCs, plus your iPhone and Android phone.\n\n## Free vs Pro\n\n| Feature | Free | Pro |\n| :- | :-: | :-: |\n| Voice dictation | ✓ | ✓ |\n| Local Whisper models | ✓ | ✓ |\n| Custom vocabulary | ✓ | ✓ |\n| Text replacements | ✓ | ✓ |\n| File transcription | - | ✓ |\n| Modes | Up to 2 (no AI processing) | Unlimited |\n| Cloud voice models | - | ✓ |\n| Cohere Transcribe and Parakeet | - | ✓ |\n| AI-powered modes (Super, Mail, etc.) | - | ✓ |\n| Context awareness | - | ✓ |\n| Realtime transcription | - | ✓ |\n| System audio recording | - | ✓ |\n| Speaker separation | - | ✓ |\n| [Meetings](https://superwhisper.com/docs/meetings/overview.md) (macOS) | Free words only | ✓ |\n| Bring your own API keys | - | ✓ |\n| Priority support | - | ✓ |\n\n**On the Free plan** you get unlimited dictation with any [local Whisper model](https://superwhisper.com/docs/models/voice.md#whisper-models-local), custom vocabulary, text replacements, and up to two modes without AI processing. Nothing you dictate leaves your device.\n\n**Pro adds** the cloud models, the Cohere Transcribe and Parakeet local models, file transcription, unlimited modes, and everything that runs your dictation through AI: [Super and the other AI modes](https://superwhisper.com/docs/modes/built-in.md), context awareness, realtime, speaker separation, and [Meetings](https://superwhisper.com/docs/meetings/overview.md).\n\n> [!NOTE]\n>\n> New users get 3000 words of free access to all Pro features, including Meetings. When that runs out, the app falls back to the Free plan; nothing is deleted.\n\n## Pricing\n\n| Plan | Price | Best For |\n| :- | :- | :- |\n| Monthly | \\$8.49/month | Trying Pro features |\n| Annual | \\$84.99/year | Regular users (save \\~17%) |\n| Lifetime | \\$249.99 once | Power users |\n\nEvery plan includes the same features; only the billing differs.\n\n## Discounts\n\n* **Students and educators**: 40% off list price for verified students, faculty, and academic institutions\n* **Non-profits**: 40% off list price for verified non-profit and charitable organizations\n\nTo request a discount, email [support@superwhisper.com](mailto:support@superwhisper.com) from your academic or organization email with proof of status. Verification happens first, so request the discount **before you purchase**.\n\n> [!NOTE]\n>\n> Discounts apply to purchases on superwhisper.com, including Monthly, Annual, and Lifetime plans and Enterprise list pricing. They can't be applied to App Store purchases, aren't stackable with other discounts, and aren't applied retroactively to charges already made.\n\n## Where to buy\n\n1. **Superwhisper website (recommended)**: buy at [superwhisper.com](https://superwhisper.com). Lower price, your key arrives by email, and we can help with any purchase issue.\n2. **iOS App Store**: buy inside the iPhone app. Higher price due to Apple's fees. Your key is in the app under **Settings → Superwhisper Pro → Reveal License Key**; use it to [activate on Mac and Windows](https://superwhisper.com/docs/billing/activate.md).\n3. **Google Play**: buy inside the Android app. Higher price due to Google's fees.\n\n> [!WARNING]\n>\n> We can't manage App Store or Google Play billing, refunds, or subscriptions on our end. Contact [Apple Support](https://support.apple.com/billing) or [Google Play Support](https://support.google.com/googleplay/answer/7018481) for those.\n\n## FAQ\n\n### Do I need separate licenses for Mac, Windows, and iPhone?\n\nNo. One Pro license works on all platforms.\n\n### Can I use my license on multiple computers?\n\nYes. There's no device limit for Mac and Windows computers.\n\n### I lost my license key (including Lifetime). Can I recover it?\n\nYes. Any license type can be recovered, and Lifetime keys never expire. See [find or recover a lost license key](https://superwhisper.com/docs/billing/activate.md#find-or-recover-a-lost-license-key).\n\n### Do my custom modes sync between devices?\n\nBy default they are stored per device. On macOS, [Filesync](https://superwhisper.com/docs/get-started/settings-advanced.md#filesync) syncs configuration between your Macs.\n\n### Do you offer student discounts?\n\nYes: 40% off for verified students, faculty, and academic institutions, and the same for non-profits. See [Discounts](#discounts) for how to request it.\n\n### Do I need a separate plan for Meetings?\n\nNo. Meetings is part of ",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-b5ca52c752dee430",
"is_error": false,
"tool_kind": "shell"
}›Thinking…
I'm looking at the hosted REST API for usage analytics with three GET endpoints that require bearer authentication. Since I don't have an enterprise token and we're working in a Linux sandbox without the macOS app, I'll build a minimal TypeScript client SDK for these endpoints with a demo script, and I'll note that actual testing requires an enterprise token we don't have access to. Let me check the OpenAPI schema details and see if the CLI docs provide any guidance.
cd /tmp && python3 -c "
import json
d=json.load(open('oapi.json'))
print(json.dumps(d.get('components',{}), indent=1)[:4000])
"{
{
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer",
"description": "API access token (starts with sk-sw-)"
}
}
}
Recorded tool call
{
"type": "tool_call",
"seq": 42,
"ts": "2026-11-19T04:02:20.777Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cd /tmp && python3 -c \"\nimport json\nd=json.load(open('oapi.json'))\nprint(json.dumps(d.get('components',{}), indent=1)[:4000])\n\""
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-964cf7c1064a4070",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 46,
"ts": "2026-11-19T04:02:20.777Z",
"turn": 1,
"output": {
"content": [
{
"text": "{\n \"securitySchemes\": {\n \"bearerAuth\": {\n \"type\": \"http\",\n \"scheme\": \"bearer\",\n \"description\": \"API access token (starts with sk-sw-)\"\n }\n }\n}\n",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-964cf7c1064a4070",
"is_error": false,
"tool_kind": "shell"
}cd /tmp && curl -s --max-time 20 https://superwhisper.com/docs/get-started/cli.md -o cli.md && grep -inE "bearer|token|api|auth|install|linux|mcp" cli.md | head -30; echo "=== enterprise usage-analytics ==="; curl -s --max-time 20 https://superwhisper.com/docs/enterprise/usage-analytics.md | grep -inE "bearer|token|api|http|key" | head -25
5:# CLI and MCP server
5:# CLI and MCP server
7:> Search your Superwhisper history and control the app from the terminal on macOS. Run the CLI as an MCP server to give AI assistants access.
9:The `superwhisper` CLI gives you terminal access to your local transcription history, [meetings](https://superwhisper.com/docs/meetings/overview.md), vocabulary, and snippets. It can also run as an MCP (Model Context Protocol) server, so AI assistants like Claude Code can search and read your dictations and meetings.
15:> The CLI is available on macOS only. It reads the same local database as the app, and its commands run entirely on your device. If you connect an AI assistant over MCP, the transcripts it queries are sent to that assistant and handled under its own model and data settings.
17:## Install
20:curl -fsSL https://superwhisper.com/install-cli.sh | bash
23:The script installs the latest release to `/usr/local/bin`, or to `~/.local/bin` if that isn't writable. If your shell can't find `superwhisper` after install, add `~/.local/bin` to your `PATH`. Binaries and checksums are published at [superultrainc/superwhisper-cli-release](https://github.com/superultrainc/superwhisper-cli-release).
46:| `mcp` | Run as an MCP server over stdio |
64:Most commands accept `--json` for machine-readable output. Point the CLI at a non-default install with `--db <path>` (or `SUPERWHISPER_DB`) and `--settings <path>` (or `SUPERWHISPER_SETTINGS`).
66:## MCP server
68:Run the CLI as an MCP server to give AI assistants read access to your history and meetings, and control over vocabulary and snippets:
71:superwhisper mcp
74:The server speaks MCP over stdio and exposes tools for search, history, reading recordings, meetings, modes, stats, vocabulary, and snippets. The meeting tools are `meetings`, `search_meetings`, and `read_meeting`.
78:To connect from the terminal, run `mcp install` with the app's name: `claude-code`, `codex` (also used by the ChatGPT desktop app), `claude-desktop`, or `cursor`. It also installs a meetings skill that tells the agent how to use the meeting tools.
81:superwhisper mcp install claude-code
82:superwhisper mcp status # Show which apps are connected
83:superwhisper mcp uninstall # Remove Superwhisper from every app
86:To add it to another MCP client, use this configuration:
90: "mcpServers": {
93: "args": ["mcp"]
101:> If you connect Claude Code through the [coding agent integration](https://superwhisper.com/docs/get-started/coding-agents.md), the MCP server is set up for you.
=== enterprise usage-analytics ===
2:> Fetch the complete documentation index at: https://superwhisper.com/docs/llms.txt
11:
32:* **Keystrokes, screen content, or activity outside the Superwhisper app**
34:Audio and transcripts are processed according to the rules described in [Sensitive Data Best Practices](https://superwhisper.com/docs/security/sensitive-data.md). Usage analytics is a separate, metadata-only telemetry stream and is not affected by your model choices.
42:Superwhisper processes usage analytics metadata under the terms of our [DPA](https://superwhisper.com/docs/security/compliance.md#sign-a-dpa-or-baa). The data isn't used to train AI models, and isn't shared with third parties beyond the sub-processors listed in the DPA.
48:* [Configuration & Models](https://superwhisper.com/docs/enterprise/configuration.md): other org-wide policies you can set
49:* [Sensitive Data Best Practices](https://superwhisper.com/docs/security/sensitive-data.md): how audio and transcripts are handled, separately from analytics
50:* [Compliance & Trust](https://superwhisper.com/docs/security/compliance.md): DPA, BAA, and the sub-processor list
57:This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.
Recorded tool call
{
"type": "tool_call",
"seq": 43,
"ts": "2026-11-19T04:02:20.777Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cd /tmp && curl -s --max-time 20 https://superwhisper.com/docs/get-started/cli.md -o cli.md && grep -inE \"bearer|token|api|auth|install|linux|mcp\" cli.md | head -30; echo \"=== enterprise usage-analytics ===\"; curl -s --max-time 20 https://superwhisper.com/docs/enterprise/usage-analytics.md | grep -inE \"bearer|token|api|http|key\" | head -25"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-a91825f325e73ba2",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 47,
"ts": "2026-11-19T04:02:20.777Z",
"turn": 1,
"output": {
"content": [
{
"text": "5:# CLI and MCP server\n7:> Search your Superwhisper history and control the app from the terminal on macOS. Run the CLI as an MCP server to give AI assistants access.\n9:The `superwhisper` CLI gives you terminal access to your local transcription history, [meetings](https://superwhisper.com/docs/meetings/overview.md), vocabulary, and snippets. It can also run as an MCP (Model Context Protocol) server, so AI assistants like Claude Code can search and read your dictations and meetings.\n15:> The CLI is available on macOS only. It reads the same local database as the app, and its commands run entirely on your device. If you connect an AI assistant over MCP, the transcripts it queries are sent to that assistant and handled under its own model and data settings.\n17:## Install\n20:curl -fsSL https://superwhisper.com/install-cli.sh | bash\n23:The script installs the latest release to `/usr/local/bin`, or to `~/.local/bin` if that isn't writable. If your shell can't find `superwhisper` after install, add `~/.local/bin` to your `PATH`. Binaries and checksums are published at [superultrainc/superwhisper-cli-release](https://github.com/superultrainc/superwhisper-cli-release).\n46:| `mcp` | Run as an MCP server over stdio |\n64:Most commands accept `--json` for machine-readable output. Point the CLI at a non-default install with `--db <path>` (or `SUPERWHISPER_DB`) and `--settings <path>` (or `SUPERWHISPER_SETTINGS`).\n66:## MCP server\n68:Run the CLI as an MCP server to give AI assistants read access to your history and meetings, and control over vocabulary and snippets:\n71:superwhisper mcp\n74:The server speaks MCP over stdio and exposes tools for search, history, reading recordings, meetings, modes, stats, vocabulary, and snippets. The meeting tools are `meetings`, `search_meetings`, and `read_meeting`.\n78:To connect from the terminal, run `mcp install` with the app's name: `claude-code`, `codex` (also used by the ChatGPT desktop app), `claude-desktop`, or `cursor`. It also installs a meetings skill that tells the agent how to use the meeting tools.\n81:superwhisper mcp install claude-code\n82:superwhisper mcp status # Show which apps are connected\n83:superwhisper mcp uninstall # Remove Superwhisper from every app\n86:To add it to another MCP client, use this configuration:\n90: \"mcpServers\": {\n93: \"args\": [\"mcp\"]\n101:> If you connect Claude Code through the [coding agent integration](https://superwhisper.com/docs/get-started/coding-agents.md), the MCP server is set up for you.\n=== enterprise usage-analytics ===\n2:> Fetch the complete documentation index at: https://superwhisper.com/docs/llms.txt\n11:\n32:* **Keystrokes, screen content, or activity outside the Superwhisper app**\n34:Audio and transcripts are processed according to the rules described in [Sensitive Data Best Practices](https://superwhisper.com/docs/security/sensitive-data.md). Usage analytics is a separate, metadata-only telemetry stream and is not affected by your model choices.\n42:Superwhisper processes usage analytics metadata under the terms of our [DPA](https://superwhisper.com/docs/security/compliance.md#sign-a-dpa-or-baa). The data isn't used to train AI models, and isn't shared with third parties beyond the sub-processors listed in the DPA.\n48:* [Configuration & Models](https://superwhisper.com/docs/enterprise/configuration.md): other org-wide policies you can set\n49:* [Sensitive Data Best Practices](https://superwhisper.com/docs/security/sensitive-data.md): how audio and transcripts are handled, separately from analytics\n50:* [Compliance & Trust](https://superwhisper.com/docs/security/compliance.md): DPA, BAA, and the sub-processor list\n57:This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.\n",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-a91825f325e73ba2",
"is_error": false,
"tool_kind": "shell"
}›Thinking…
I'm building a lightweight SDK example that works with the hosted SuperWhisper API using a bearer token for authentication. Let me examine the OpenAPI spec to understand the request parameters and response schemas so I can type them correctly.
cd /tmp && python3 -c "
import json
d=json.load(open('oapi.json'))
print(json.dumps(d['paths'], indent=1))" | head -200{
{
"/api/v1/stats/dimensions": {
"get": {
"tags": [
"Stats"
],
"summary": "Get stat dimensions",
"description": "Returns the distinct values available for filtering: voice models, language models, and app names.",
"security": [
{
"bearerAuth": []
}
],
"responses": {
"200": {
"description": "Available filter dimensions",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"voice_models": {
"type": "array",
"items": {
"type": "string"
},
"description": "Available voice model identifiers"
},
"language_models": {
"type": "array",
"items": {
"type": "string"
},
"description": "Available language model identifiers"
},
"app_names": {
"type": "array",
"items": {
"type": "string"
},
"description": "Application names seen in recordings"
}
},
"required": [
"voice_models",
"language_models",
"app_names"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}
}
}
},
"401": {
"description": "Unauthorized \u2014 missing or invalid bearer token"
}
}
}
},
"/api/v1/stats/summary": {
"get": {
"tags": [
"Stats"
],
"summary": "Get summary statistics",
"description": "Returns aggregated totals for recordings, duration, words, and processing times within a date range.",
"security": [
{
"bearerAuth": []
}
],
"responses": {
"200": {
"description": "Summary statistics",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"total_recordings": {
"type": "number",
"description": "Total number of recordings"
},
"total_duration_minutes": {
"type": "number",
"description": "Total recording duration in minutes"
},
"total_words": {
"type": "number",
"description": "Total words transcribed"
},
"avg_llm_processing_seconds": {
"type": "number",
"description": "Average LLM processing time in seconds"
},
"avg_voice_processing_seconds": {
"type": "number",
"description": "Average voice processing time in seconds"
}
},
"required": [
"total_recordings",
"total_duration_minutes",
"total_words",
"avg_llm_processing_seconds",
"avg_voice_processing_seconds"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}
}
}
},
"401": {
"description": "Unauthorized \u2014 missing or invalid bearer token"
}
},
"parameters": [
{
"name": "start_date",
"in": "query",
"required": false,
"description": "ISO 8601 start date (defaults to 7 days ago)",
"schema": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:?\\d{2})?)?$"
}
},
{
"name": "end_date",
"in": "query",
"required": false,
"description": "ISO 8601 end date (defaults to now)",
"schema": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:?\\d{2})?)?$"
}
},
{
"name": "filter[member_email]",
"in": "query",
"required": false,
"description": "Comma-separated member email addresses",
"schema": {
"type": "string"
}
},
{
"name": "filter[voice_model]",
"in": "query",
"required": false,
"description": "Comma-separated voice models",
"schema": {
"type": "string"
}
},
{
"name": "filter[language_model]",
"in": "query",
"required": false,
"description": "Comma-separated language models",
"schema": {
"type": "string"
}
},
{
"name": "filter[app_name]",
"in": "query",
"required": false,
"description": "Comma-separated app names",
"schema": {
"type": "string"
}
}
]
}
},
"/api/v1/stats": {
"get": {
"tags": [
"Stats"
],
"summary": "Get paginated statistics",
"description": "Returns time-series usage statistics with optional grouping, filtering, and pagination. Supports JSON and CSV output formats.",
"security": [
{
"bearerAuth": []
}
],
"responses": {
"200": {
"description": "Paginated statistics (or CSV file when format=csv)",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
Recorded tool call
{
"type": "tool_call",
"seq": 50,
"ts": "2026-11-19T04:02:20.777Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cd /tmp && python3 -c \"\nimport json\nd=json.load(open('oapi.json'))\nprint(json.dumps(d['paths'], indent=1))\" | head -200"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-9008d0dab44206df",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 51,
"ts": "2026-11-19T04:02:20.777Z",
"turn": 1,
"output": {
"content": [
{
"text": "{\n \"/api/v1/stats/dimensions\": {\n \"get\": {\n \"tags\": [\n \"Stats\"\n ],\n \"summary\": \"Get stat dimensions\",\n \"description\": \"Returns the distinct values available for filtering: voice models, language models, and app names.\",\n \"security\": [\n {\n \"bearerAuth\": []\n }\n ],\n \"responses\": {\n \"200\": {\n \"description\": \"Available filter dimensions\",\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"voice_models\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Available voice model identifiers\"\n },\n \"language_models\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Available language model identifiers\"\n },\n \"app_names\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Application names seen in recordings\"\n }\n },\n \"required\": [\n \"voice_models\",\n \"language_models\",\n \"app_names\"\n ],\n \"$schema\": \"http://json-schema.org/draft-07/schema#\"\n }\n }\n }\n },\n \"401\": {\n \"description\": \"Unauthorized \\u2014 missing or invalid bearer token\"\n }\n }\n }\n },\n \"/api/v1/stats/summary\": {\n \"get\": {\n \"tags\": [\n \"Stats\"\n ],\n \"summary\": \"Get summary statistics\",\n \"description\": \"Returns aggregated totals for recordings, duration, words, and processing times within a date range.\",\n \"security\": [\n {\n \"bearerAuth\": []\n }\n ],\n \"responses\": {\n \"200\": {\n \"description\": \"Summary statistics\",\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"total_recordings\": {\n \"type\": \"number\",\n \"description\": \"Total number of recordings\"\n },\n \"total_duration_minutes\": {\n \"type\": \"number\",\n \"description\": \"Total recording duration in minutes\"\n },\n \"total_words\": {\n \"type\": \"number\",\n \"description\": \"Total words transcribed\"\n },\n \"avg_llm_processing_seconds\": {\n \"type\": \"number\",\n \"description\": \"Average LLM processing time in seconds\"\n },\n \"avg_voice_processing_seconds\": {\n \"type\": \"number\",\n \"description\": \"Average voice processing time in seconds\"\n }\n },\n \"required\": [\n \"total_recordings\",\n \"total_duration_minutes\",\n \"total_words\",\n \"avg_llm_processing_seconds\",\n \"avg_voice_processing_seconds\"\n ],\n \"$schema\": \"http://json-schema.org/draft-07/schema#\"\n }\n }\n }\n },\n \"401\": {\n \"description\": \"Unauthorized \\u2014 missing or invalid bearer token\"\n }\n },\n \"parameters\": [\n {\n \"name\": \"start_date\",\n \"in\": \"query\",\n \"required\": false,\n \"description\": \"ISO 8601 start date (defaults to 7 days ago)\",\n \"schema\": {\n \"type\": \"string\",\n \"pattern\": \"^\\\\d{4}-\\\\d{2}-\\\\d{2}(T\\\\d{2}:\\\\d{2}:\\\\d{2}(\\\\.\\\\d+)?(Z|[+-]\\\\d{2}:?\\\\d{2})?)?$\"\n }\n },\n {\n \"name\": \"end_date\",\n \"in\": \"query\",\n \"required\": false,\n \"description\": \"ISO 8601 end date (defaults to now)\",\n \"schema\": {\n \"type\": \"string\",\n \"pattern\": \"^\\\\d{4}-\\\\d{2}-\\\\d{2}(T\\\\d{2}:\\\\d{2}:\\\\d{2}(\\\\.\\\\d+)?(Z|[+-]\\\\d{2}:?\\\\d{2})?)?$\"\n }\n },\n {\n \"name\": \"filter[member_email]\",\n \"in\": \"query\",\n \"required\": false,\n \"description\": \"Comma-separated member email addresses\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"filter[voice_model]\",\n \"in\": \"query\",\n \"required\": false,\n \"description\": \"Comma-separated voice models\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"filter[language_model]\",\n \"in\": \"query\",\n \"required\": false,\n \"description\": \"Comma-separated language models\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"filter[app_name]\",\n \"in\": \"query\",\n \"required\": false,\n \"description\": \"Comma-separated app names\",\n \"schema\": {\n \"type\": \"string\"\n }\n }\n ]\n }\n },\n \"/api/v1/stats\": {\n \"get\": {\n \"tags\": [\n \"Stats\"\n ],\n \"summary\": \"Get paginated statistics\",\n \"description\": \"Returns time-series usage statistics with optional grouping, filtering, and pagination. Supports JSON and CSV output formats.\",\n \"security\": [\n {\n \"bearerAuth\": []\n }\n ],\n \"responses\": {\n \"200\": {\n \"description\": \"Paginated statistics (or CSV file when format=csv)\",\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"data\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-9008d0dab44206df",
"is_error": false,
"tool_kind": "shell"
}›Thinking…
Now I'm setting up a minimal project in the sandbox directory with a lightweight SDK using TypeScript that leverages Node 18+ fetch, keeping it simple without build steps and checking the available Node version first.
node -v; python3 -V; ls /sandbox/repo; cat /sandbox/repo/.gitignore
v22.23.4
v22.23.4 Python 3.12.3 # Keep generated and vendored files out of source diffs. # Logs / OS cruft *.log .DS_Store # JavaScript / TypeScript node_modules/ .next/ dist/ build/ coverage/ # Python .venv/ venv/ __pycache__/ *.py[cod] .pytest_cache/ *.egg-info/ # Rust target/ # Go / PHP / Ruby vendored deps vendor/ .bundle/ # Java / Kotlin / Scala .gradle/ # .NET bin/ obj/ # Elixir _build/ deps/ # Dart / Flutter .dart_tool/
Recorded tool call
{
"type": "tool_call",
"seq": 54,
"ts": "2026-11-19T04:02:20.777Z",
"name": "bash",
"turn": 1,
"input": {
"command": "node -v; python3 -V; ls /sandbox/repo; cat /sandbox/repo/.gitignore"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-9a4e146250bbf28b",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 56,
"ts": "2026-11-19T04:02:20.777Z",
"turn": 1,
"output": {
"content": [
{
"text": "v22.23.4\nPython 3.12.3\n# Keep generated and vendored files out of source diffs.\n\n# Logs / OS cruft\n*.log\n.DS_Store\n\n# JavaScript / TypeScript\nnode_modules/\n.next/\ndist/\nbuild/\ncoverage/\n\n# Python\n.venv/\nvenv/\n__pycache__/\n*.py[cod]\n.pytest_cache/\n*.egg-info/\n\n# Rust\ntarget/\n\n# Go / PHP / Ruby vendored deps\nvendor/\n.bundle/\n\n# Java / Kotlin / Scala\n.gradle/\n\n# .NET\nbin/\nobj/\n\n# Elixir\n_build/\ndeps/\n\n# Dart / Flutter\n.dart_tool/\n",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-9a4e146250bbf28b",
"is_error": false,
"tool_kind": "shell"
}cd /tmp && python3 -c "
import json
d=json.load(open('oapi.json'))
p=d['paths']['/api/v1/stats']['get']
print(json.dumps(p['responses']['200'],indent=1)[:2500])
print('PARAMS:', [x['name'] for x in p['parameters']])
"{
{
"description": "Paginated statistics (or CSV file when format=csv)",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"time_bucket": {
"type": "string",
"description": "Start of the time period (ISO 8601)"
},
"recording_count": {
"type": "number",
"description": "Number of recordings in this period"
},
"total_words": {
"type": "number",
"description": "Total words transcribed"
},
"total_duration": {
"type": "number",
"description": "Total duration in milliseconds"
},
"avg_llm_processing_time": {
"type": "number",
"description": "Average LLM processing time in milliseconds"
},
"avg_voice_processing_time": {
"type": "number",
"description": "Average voice processing time in milliseconds"
},
"avg_wpm": {
"type": "number",
"description": "Average words per minute"
}
},
"required": [
"time_bucket",
"recording_count",
"total_words",
"total_duration",
"avg_llm_processing_time",
"avg_voice_processing_time",
"avg_wpm"
]
}
},
"pagination": {
"type": "object",
"properties": {
"page": {
"type": "number",
"description": "Current page number"
},
"page_size": {
"type": "number",
"description": "Number of results per page"
},
"total_rows": {
"type": "number",
"description": "Total number of results"
},
"total_pages": {
"type": "number",
"description": "Total number of pages"
},
"count": {
"type": "number",
"description": "Number of results returned in this page"
}
},
"required": [
"page",
"page_size",
"total_rows",
"total_pages",
"count"
]
},
"meta": {
"type": "object",
"properties": {
"start_date": {
"type": "string",
"description": "Query start date"
},
"end_date": {
"type": "string",
"description": "Query end date"
},
"granularity": {
"type": "string",
"description": "Time bucket g
PARAMS: ['start_date', 'end_date', 'granularity', 'group_by', 'page', 'page_size', 'format', 'filter[member_email]', 'filter[voice_model]', 'filter[language_model]', 'filter[app_name]']
Recorded tool call
{
"type": "tool_call",
"seq": 55,
"ts": "2026-11-19T04:02:20.777Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cd /tmp && python3 -c \"\nimport json\nd=json.load(open('oapi.json'))\np=d['paths']['/api/v1/stats']['get']\nprint(json.dumps(p['responses']['200'],indent=1)[:2500])\nprint('PARAMS:', [x['name'] for x in p['parameters']])\n\""
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-9659bf32f7f6273a",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 57,
"ts": "2026-11-19T04:02:20.777Z",
"turn": 1,
"output": {
"content": [
{
"text": "{\n \"description\": \"Paginated statistics (or CSV file when format=csv)\",\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"data\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"time_bucket\": {\n \"type\": \"string\",\n \"description\": \"Start of the time period (ISO 8601)\"\n },\n \"recording_count\": {\n \"type\": \"number\",\n \"description\": \"Number of recordings in this period\"\n },\n \"total_words\": {\n \"type\": \"number\",\n \"description\": \"Total words transcribed\"\n },\n \"total_duration\": {\n \"type\": \"number\",\n \"description\": \"Total duration in milliseconds\"\n },\n \"avg_llm_processing_time\": {\n \"type\": \"number\",\n \"description\": \"Average LLM processing time in milliseconds\"\n },\n \"avg_voice_processing_time\": {\n \"type\": \"number\",\n \"description\": \"Average voice processing time in milliseconds\"\n },\n \"avg_wpm\": {\n \"type\": \"number\",\n \"description\": \"Average words per minute\"\n }\n },\n \"required\": [\n \"time_bucket\",\n \"recording_count\",\n \"total_words\",\n \"total_duration\",\n \"avg_llm_processing_time\",\n \"avg_voice_processing_time\",\n \"avg_wpm\"\n ]\n }\n },\n \"pagination\": {\n \"type\": \"object\",\n \"properties\": {\n \"page\": {\n \"type\": \"number\",\n \"description\": \"Current page number\"\n },\n \"page_size\": {\n \"type\": \"number\",\n \"description\": \"Number of results per page\"\n },\n \"total_rows\": {\n \"type\": \"number\",\n \"description\": \"Total number of results\"\n },\n \"total_pages\": {\n \"type\": \"number\",\n \"description\": \"Total number of pages\"\n },\n \"count\": {\n \"type\": \"number\",\n \"description\": \"Number of results returned in this page\"\n }\n },\n \"required\": [\n \"page\",\n \"page_size\",\n \"total_rows\",\n \"total_pages\",\n \"count\"\n ]\n },\n \"meta\": {\n \"type\": \"object\",\n \"properties\": {\n \"start_date\": {\n \"type\": \"string\",\n \"description\": \"Query start date\"\n },\n \"end_date\": {\n \"type\": \"string\",\n \"description\": \"Query end date\"\n },\n \"granularity\": {\n \"type\": \"string\",\n \"description\": \"Time bucket g\nPARAMS: ['start_date', 'end_date', 'granularity', 'group_by', 'page', 'page_size', 'format', 'filter[member_email]', 'filter[voice_model]', 'filter[language_model]', 'filter[app_name]']\n",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-9659bf32f7f6273a",
"is_error": false,
"tool_kind": "shell"
}›Thinking…
I'm checking the enum values for granularity and group_by in the stats endpoint, then I'll start writing out the project files.
cd /tmp && python3 -c "
import json
d=json.load(open('oapi.json'))
p=d['paths']['/api/v1/stats']['get']
for x in p['parameters']:
if x['name'] in ('granularity','group_by','format','page_size','page'):
print(x['name'], x['schema'], '|', x.get('description'))
print('META:', json.dumps(p['responses']['200']['content']['application/json']['schema']['properties']['meta'],indent=1))
"granularity {'enum': ['hour', 'day', 'week', 'month']} | Time bucket granularity (defaults to day)
granularity {'enum': ['hour', 'day', 'week', 'month']} | Time bucket granularity (defaults to day)
group_by {'enum': ['member_email', 'voice_model', 'language_model', 'app_name']} | Dimension to group results by
page {'type': 'integer', 'minimum': 1} | Page number (defaults to 1)
page_size {'type': 'integer', 'minimum': 1, 'maximum': 1000} | Results per page, max 1000 (defaults to 200)
format {'enum': ['json', 'csv']} | Response format (defaults to json)
META: {
"type": "object",
"properties": {
"start_date": {
"type": "string",
"description": "Query start date"
},
"end_date": {
"type": "string",
"description": "Query end date"
},
"granularity": {
"type": "string",
"description": "Time bucket granularity used"
},
"group_by": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Grouping dimension used, if any"
}
},
"required": [
"start_date",
"end_date",
"granularity",
"group_by"
]
}
Recorded tool call
{
"type": "tool_call",
"seq": 60,
"ts": "2026-11-19T04:02:20.777Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cd /tmp && python3 -c \"\nimport json\nd=json.load(open('oapi.json'))\np=d['paths']['/api/v1/stats']['get']\nfor x in p['parameters']:\n if x['name'] in ('granularity','group_by','format','page_size','page'):\n print(x['name'], x['schema'], '|', x.get('description'))\nprint('META:', json.dumps(p['responses']['200']['content']['application/json']['schema']['properties']['meta'],indent=1))\n\""
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-b64882f38766e5d1",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 61,
"ts": "2026-11-19T04:02:20.777Z",
"turn": 1,
"output": {
"content": [
{
"text": "granularity {'enum': ['hour', 'day', 'week', 'month']} | Time bucket granularity (defaults to day)\ngroup_by {'enum': ['member_email', 'voice_model', 'language_model', 'app_name']} | Dimension to group results by\npage {'type': 'integer', 'minimum': 1} | Page number (defaults to 1)\npage_size {'type': 'integer', 'minimum': 1, 'maximum': 1000} | Results per page, max 1000 (defaults to 200)\nformat {'enum': ['json', 'csv']} | Response format (defaults to json)\nMETA: {\n \"type\": \"object\",\n \"properties\": {\n \"start_date\": {\n \"type\": \"string\",\n \"description\": \"Query start date\"\n },\n \"end_date\": {\n \"type\": \"string\",\n \"description\": \"Query end date\"\n },\n \"granularity\": {\n \"type\": \"string\",\n \"description\": \"Time bucket granularity used\"\n },\n \"group_by\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"description\": \"Grouping dimension used, if any\"\n }\n },\n \"required\": [\n \"start_date\",\n \"end_date\",\n \"granularity\",\n \"group_by\"\n ]\n}\n",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-b64882f38766e5d1",
"is_error": false,
"tool_kind": "shell"
}›Thinking…
I'm setting up a TypeScript project in /sandbox/repo with a lightweight SDK that connects to the hosted REST API at api.superwhisper.com. The structure includes a client module for the API interactions, a CLI demo with a mock mode to work around the authentication blocker, and basic configuration files.
For the SDK, I'm building a typed wrapper around the three GET endpoints with proper error handling and pagination support, keeping it to around 120 lines. The demo will accept either a real API token via environment variable or run against a local mock fixture to showcase the functionality without requiring credentials. I'll use Node 22's native TypeScript support with --experimental-strip-types to run the .ts files directly without a build step, avoiding type-only import complications.
Everything checks out — Superwhisper does have a hosted REST API (api.superwhisper.com, OpenAPI spec published), so there is a developer workflow I can act on. Building a small SDK + demo against it now.
File edits
1 file
Writtenpackage.jsonView changes
/sandbox/repo/package.json
Written content · previous contents were not recorded
{"name": "superwhisper-api-example","version": "0.1.0","private": true,"type": "module","description": "Minimal example using the hosted Superwhisper usage-analytics REST API.","scripts": {"demo": "node --experimental-strip-types demo/usage-report.ts","demo:mock": "MOCK=1 node --experimental-strip-types demo/usage-report.ts"}}
Source: write · chatcmpl-tool-8c228f83bcf7e408
Recorded tool call
{
"type": "tool_call",
"seq": 65,
"ts": "2026-11-19T04:02:35.756Z",
"name": "write",
"turn": 1,
"input": {
"path": "/sandbox/repo/package.json",
"content": "{\n \"name\": \"superwhisper-api-example\",\n \"version\": \"0.1.0\",\n \"private\": true,\n \"type\": \"module\",\n \"description\": \"Minimal example using the hosted Superwhisper usage-analytics REST API.\",\n \"scripts\": {\n \"demo\": \"node --experimental-strip-types demo/usage-report.ts\",\n \"demo:mock\": \"MOCK=1 node --experimental-strip-types demo/usage-report.ts\"\n }\n}\n"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-8c228f83bcf7e408",
"tool_kind": "file_edit"
}Recorded tool result
{
"type": "tool_result",
"seq": 67,
"ts": "2026-11-19T04:02:35.756Z",
"turn": 1,
"output": {
"content": [
{
"text": "Successfully wrote 361 bytes to /sandbox/repo/package.json",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-8c228f83bcf7e408",
"is_error": false,
"tool_kind": "file_edit"
}File edits
1 file
Writtensrc/client.tsView changes
/sandbox/repo/src/client.ts
Written content · previous contents were not recorded
/*** Tiny typed client for the hosted Superwhisper API.** Base URL: https://api.superwhisper.com* OpenAPI: https://api.superwhisper.com/api/v1/openapi.json* Auth: HTTP bearer token (starts with `sk-sw-`), from the Enterprise dashboard.** The public API surface today is read-only usage analytics (metadata only —* no audio, no transcripts). Dictation itself happens in the desktop/mobile app* and is driven locally by the `superwhisper` CLI (macOS only).** Zero dependencies: uses global `fetch` (Node 18+).*/export const DEFAULT_BASE_URL = "https://api.superwhisper.com";export type Granularity = "hour" | "day" | "week" | "month";export type GroupBy = "member_email" | "voice_model" | "language_model" | "app_name";export type StatsFormat = "json" | "csv";/** filter[...] query params; values are comma-separated lists. */export interface StatsFilters {member_email?: string[];voice_model?: string[];language_model?: string[];app_name?: string[];}export interface DateRange {/** ISO 8601 date or datetime. Defaults to 7 days ago. */start_date?: string;/** ISO 8601 date or datetime. Defaults to now. */end_date?: string;}export interface Dimensions {voice_models: string[];language_models: string[];app_names: string[];}export interface Summary {total_recordings: number;total_duration_minutes: number;total_words: number;avg_llm_processing_seconds: number;avg_voice_processing_seconds: number;}export interface StatsRow {time_bucket: string;recording_count: number;total_words: number;total_duration: number; // msavg_llm_processing_time: number; // msavg_voice_processing_time: number; // msavg_wpm: number;}export interface Pagination {page: number;page_size: number;total_rows: number;total_pages: number;count: number;}export interface StatsMeta extends Required<DateRange> {granularity: Granularity;group_by: GroupBy | null;}export interface StatsPage {data: StatsRow[];pagination: Pagination;meta: StatsMeta;}export interface StatsQuery extends DateRange, StatsFilters {granularity?: Granularity;group_by?: GroupBy;page?: number;page_size?: number; // max 1000}export class SuperwhisperApiError extends Error {constructor(public readonly status: number,message: string,public readonly body?: string,) {super(message);this.name = "SuperwhisperApiError";}}export interface SuperwhisperClientOptions {/** API access token, e.g. `sk-sw-...`. Defaults to SUPERWHISPER_API_TOKEN. */token?: string;baseUrl?: string;/** Inject for testing / offline demos. */fetch?: typeof fetch;timeoutMs?: number;}export class SuperwhisperClient {private readonly token: string;private readonly baseUrl: string;private readonly doFetch: typeof fetch;private readonly timeoutMs: number;constructor(opts: SuperwhisperClientOptions = {}) {const token = opts.token ?? process.env.SUPERWHISPER_API_TOKEN ?? "";if (!token) {throw new Error("Missing API token. Pass { token } or set SUPERWHISPER_API_TOKEN (sk-sw-...).",);}this.token = token;this.baseUrl = (opts.baseUrl ?? DEFAULT_BASE_URL).replace(/\/+$/, "");this.doFetch = opts.fetch ?? fetch;this.timeoutMs = opts.timeoutMs ?? 15_000;}/** Distinct filter values: voice models, language models, app names. */getDimensions(): Promise<Dimensions> {return this.getJson<Dimensions>("/api/v1/stats/dimensions");}/** Aggregated totals for a date range. */getSummary(params: DateRange & StatsFilters = {}): Promise<Summary> {return this.getJson<Summary>("/api/v1/stats/summary", params);}/** One page of time-series stats. */getStats(params: StatsQuery = {}): Promise<StatsPage> {return this.getJson<StatsPage>("/api/v1/stats", params);}/** Time-series stats as CSV text (format=csv). */async getStatsCsv(params: StatsQuery = {}): Promise<string> {return this.request(buildQuery({ ...params, format: "csv" } satisfies StatsQuery & { format: StatsFormat }), "/api/v1/stats", "text");}/** Walk every page of getStats. */async *iterateStats(params: StatsQuery = {}): AsyncGenerator<StatsRow[], void, undefined> {let page = params.page ?? 1;for (;;) {const res = await this.getStats({ ...params, page });yield res.data;if (page >= res.pagination.total_pages || res.data.length === 0) return;page += 1;}}private getJson<T>(path: string, params: object = {}): Promise<T> {return this.request<T>(buildQuery(params), path, "json");}private async request<T>(query: URLSearchParams, path: string, as: "json" | "text"): Promise<T> {const url = `${this.baseUrl}${path}?${query.toString()}`;const res = await this.doFetch(url, {method: "GET",headers: {Authorization: `Bearer ${this.token}`,Accept: as === "json" ? "application/json" : "text/csv",},signal: AbortSignal.timeout(this.timeoutMs),});if (!res.ok) {const body = await res.text().catch(() => "");const hint =res.status === 401? "401 Unauthorized — missing or invalid bearer token (usage analytics requires an Enterprise API token).": `${res.status} ${res.statusText}`;throw new SuperwhisperApiError(res.status, hint, body.slice(0, 500));}return (as === "json" ? await res.json() : await res.text()) as T;}}/** Flattens nested params into the API's `filter[...]` query shape. */export function buildQuery(params: object): URLSearchParams {const q = new URLSearchParams();for (const [key, value] of Object.entries(params as Record<string, unknown>)) {if (value === undefined || value === null) continue;if (Array.isArray(value)) {if (value.length === 0) continue;q.set(`filter[${key}]`, value.join(","));} else {q.set(key, String(value));}}return q;}
Source: write · chatcmpl-tool-b699eee9a09834ba
Recorded tool call
{
"type": "tool_call",
"seq": 66,
"ts": "2026-11-19T04:02:35.756Z",
"name": "write",
"turn": 1,
"input": {
"path": "/sandbox/repo/src/client.ts",
"content": "/**\n * Tiny typed client for the hosted Superwhisper API.\n *\n * Base URL: https://api.superwhisper.com\n * OpenAPI: https://api.superwhisper.com/api/v1/openapi.json\n * Auth: HTTP bearer token (starts with `sk-sw-`), from the Enterprise dashboard.\n *\n * The public API surface today is read-only usage analytics (metadata only —\n * no audio, no transcripts). Dictation itself happens in the desktop/mobile app\n * and is driven locally by the `superwhisper` CLI (macOS only).\n *\n * Zero dependencies: uses global `fetch` (Node 18+).\n */\n\nexport const DEFAULT_BASE_URL = \"https://api.superwhisper.com\";\n\nexport type Granularity = \"hour\" | \"day\" | \"week\" | \"month\";\nexport type GroupBy = \"member_email\" | \"voice_model\" | \"language_model\" | \"app_name\";\nexport type StatsFormat = \"json\" | \"csv\";\n\n/** filter[...] query params; values are comma-separated lists. */\nexport interface StatsFilters {\n member_email?: string[];\n voice_model?: string[];\n language_model?: string[];\n app_name?: string[];\n}\n\nexport interface DateRange {\n /** ISO 8601 date or datetime. Defaults to 7 days ago. */\n start_date?: string;\n /** ISO 8601 date or datetime. Defaults to now. */\n end_date?: string;\n}\n\nexport interface Dimensions {\n voice_models: string[];\n language_models: string[];\n app_names: string[];\n}\n\nexport interface Summary {\n total_recordings: number;\n total_duration_minutes: number;\n total_words: number;\n avg_llm_processing_seconds: number;\n avg_voice_processing_seconds: number;\n}\n\nexport interface StatsRow {\n time_bucket: string;\n recording_count: number;\n total_words: number;\n total_duration: number; // ms\n avg_llm_processing_time: number; // ms\n avg_voice_processing_time: number; // ms\n avg_wpm: number;\n}\n\nexport interface Pagination {\n page: number;\n page_size: number;\n total_rows: number;\n total_pages: number;\n count: number;\n}\n\nexport interface StatsMeta extends Required<DateRange> {\n granularity: Granularity;\n group_by: GroupBy | null;\n}\n\nexport interface StatsPage {\n data: StatsRow[];\n pagination: Pagination;\n meta: StatsMeta;\n}\n\nexport interface StatsQuery extends DateRange, StatsFilters {\n granularity?: Granularity;\n group_by?: GroupBy;\n page?: number;\n page_size?: number; // max 1000\n}\n\nexport class SuperwhisperApiError extends Error {\n constructor(\n public readonly status: number,\n message: string,\n public readonly body?: string,\n ) {\n super(message);\n this.name = \"SuperwhisperApiError\";\n }\n}\n\nexport interface SuperwhisperClientOptions {\n /** API access token, e.g. `sk-sw-...`. Defaults to SUPERWHISPER_API_TOKEN. */\n token?: string;\n baseUrl?: string;\n /** Inject for testing / offline demos. */\n fetch?: typeof fetch;\n timeoutMs?: number;\n}\n\nexport class SuperwhisperClient {\n private readonly token: string;\n private readonly baseUrl: string;\n private readonly doFetch: typeof fetch;\n private readonly timeoutMs: number;\n\n constructor(opts: SuperwhisperClientOptions = {}) {\n const token = opts.token ?? process.env.SUPERWHISPER_API_TOKEN ?? \"\";\n if (!token) {\n throw new Error(\n \"Missing API token. Pass { token } or set SUPERWHISPER_API_TOKEN (sk-sw-...).\",\n );\n }\n this.token = token;\n this.baseUrl = (opts.baseUrl ?? DEFAULT_BASE_URL).replace(/\\/+$/, \"\");\n this.doFetch = opts.fetch ?? fetch;\n this.timeoutMs = opts.timeoutMs ?? 15_000;\n }\n\n /** Distinct filter values: voice models, language models, app names. */\n getDimensions(): Promise<Dimensions> {\n return this.getJson<Dimensions>(\"/api/v1/stats/dimensions\");\n }\n\n /** Aggregated totals for a date range. */\n getSummary(params: DateRange & StatsFilters = {}): Promise<Summary> {\n return this.getJson<Summary>(\"/api/v1/stats/summary\", params);\n }\n\n /** One page of time-series stats. */\n getStats(params: StatsQuery = {}): Promise<StatsPage> {\n return this.getJson<StatsPage>(\"/api/v1/stats\", params);\n }\n\n /** Time-series stats as CSV text (format=csv). */\n async getStatsCsv(params: StatsQuery = {}): Promise<string> {\n return this.request(buildQuery({ ...params, format: \"csv\" } satisfies StatsQuery & { format: StatsFormat }), \"/api/v1/stats\", \"text\");\n }\n\n /** Walk every page of getStats. */\n async *iterateStats(params: StatsQuery = {}): AsyncGenerator<StatsRow[], void, undefined> {\n let page = params.page ?? 1;\n for (;;) {\n const res = await this.getStats({ ...params, page });\n yield res.data;\n if (page >= res.pagination.total_pages || res.data.length === 0) return;\n page += 1;\n }\n }\n\n private getJson<T>(path: string, params: object = {}): Promise<T> {\n return this.request<T>(buildQuery(params), path, \"json\");\n }\n\n private async request<T>(query: URLSearchParams, path: string, as: \"json\" | \"text\"): Promise<T> {\n const url = `${this.baseUrl}${path}?${query.toString()}`;\n const res = await this.doFetch(url, {\n method: \"GET\",\n headers: {\n Authorization: `Bearer ${this.token}`,\n Accept: as === \"json\" ? \"application/json\" : \"text/csv\",\n },\n signal: AbortSignal.timeout(this.timeoutMs),\n });\n\n if (!res.ok) {\n const body = await res.text().catch(() => \"\");\n const hint =\n res.status === 401\n ? \"401 Unauthorized — missing or invalid bearer token (usage analytics requires an Enterprise API token).\"\n : `${res.status} ${res.statusText}`;\n throw new SuperwhisperApiError(res.status, hint, body.slice(0, 500));\n }\n\n return (as === \"json\" ? await res.json() : await res.text()) as T;\n }\n}\n\n/** Flattens nested params into the API's `filter[...]` query shape. */\nexport function buildQuery(params: object): URLSearchParams {\n const q = new URLSearchParams();\n for (const [key, value] of Object.entries(params as Record<string, unknown>)) {\n if (value === undefined || value === null) continue;\n if (Array.isArray(value)) {\n if (value.length === 0) continue;\n q.set(`filter[${key}]`, value.join(\",\"));\n } else {\n q.set(key, String(value));\n }\n }\n return q;\n}\n"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-b699eee9a09834ba",
"tool_kind": "file_edit"
}Recorded tool result
{
"type": "tool_result",
"seq": 68,
"ts": "2026-11-19T04:02:35.756Z",
"turn": 1,
"output": {
"content": [
{
"text": "Successfully wrote 6052 bytes to /sandbox/repo/src/client.ts",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-b699eee9a09834ba",
"is_error": false,
"tool_kind": "file_edit"
}›Thinking…
I'm working through how to structure the getStatsCsv function parameters, using a type assertion to ensure the format property is properly typed as StatsFormat alongside the StatsQuery type.
Now moving on to the demo and mock fetch implementation.
File edits
1 file
Writtensrc/mock.tsView changes
/sandbox/repo/src/mock.ts
Written content · previous contents were not recorded
/*** Offline transport for demos and tests: matches requests by pathname and* returns canned fixtures, so you can run the example without a token.*/import type { SuperwhisperClientOptions } from "./client.ts";import { fixtures } from "./fixtures.ts";export function mockFetch(): SuperwhisperClientOptions["fetch"] {return (async (input: string | URL | Request) => {const url = new URL(typeof input === "string" || input instanceof URL ? String(input) : input.url);const key = url.pathname;const body = fixtures[key];if (!body) {return new Response(`no fixture for ${key}`, { status: 404 });}const isCsv = url.searchParams.get("format") === "csv";return new Response(isCsv && key === "/api/v1/stats" ? fixtures["/api/v1/stats.csv"] : JSON.stringify(body), {status: 200,headers: { "content-type": isCsv ? "text/csv" : "application/json" },});}) as unknown as typeof fetch;}
Source: write · chatcmpl-tool-acc11059ae121dc4
Recorded tool call
{
"type": "tool_call",
"seq": 71,
"ts": "2026-11-19T04:02:41.617Z",
"name": "write",
"turn": 1,
"input": {
"path": "/sandbox/repo/src/mock.ts",
"content": "/**\n * Offline transport for demos and tests: matches requests by pathname and\n * returns canned fixtures, so you can run the example without a token.\n */\nimport type { SuperwhisperClientOptions } from \"./client.ts\";\nimport { fixtures } from \"./fixtures.ts\";\n\nexport function mockFetch(): SuperwhisperClientOptions[\"fetch\"] {\n return (async (input: string | URL | Request) => {\n const url = new URL(typeof input === \"string\" || input instanceof URL ? String(input) : input.url);\n const key = url.pathname;\n const body = fixtures[key];\n\n if (!body) {\n return new Response(`no fixture for ${key}`, { status: 404 });\n }\n\n const isCsv = url.searchParams.get(\"format\") === \"csv\";\n return new Response(isCsv && key === \"/api/v1/stats\" ? fixtures[\"/api/v1/stats.csv\"] : JSON.stringify(body), {\n status: 200,\n headers: { \"content-type\": isCsv ? \"text/csv\" : \"application/json\" },\n });\n }) as unknown as typeof fetch;\n}\n"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-acc11059ae121dc4",
"tool_kind": "file_edit"
}Recorded tool result
{
"type": "tool_result",
"seq": 73,
"ts": "2026-11-19T04:02:41.617Z",
"turn": 1,
"output": {
"content": [
{
"text": "Successfully wrote 952 bytes to /sandbox/repo/src/mock.ts",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-acc11059ae121dc4",
"is_error": false,
"tool_kind": "file_edit"
}File edits
1 file
Writtensrc/fixtures.tsView changes
/sandbox/repo/src/fixtures.ts
Written content · previous contents were not recorded
/** Canned responses shaped exactly like the documented OpenAPI schemas. */export const fixtures = {"/api/v1/stats/dimensions": {voice_models: ["whisper-large-v3-turbo", "parakeet-tdt-0.6b-v3"],language_models: ["gpt-4o-mini", "claude-sonnet-4"],app_names: ["Cursor", "Slack", "Gmail"],},"/api/v1/stats/summary": {total_recordings: 412,total_duration_minutes: 96.5,total_words: 14_830,avg_llm_processing_seconds: 1.4,avg_voice_processing_seconds: 0.9,},"/api/v1/stats": {data: [{time_bucket: "2026-01-05T00:00:00Z",recording_count: 58,total_words: 2_110,total_duration: 828_000,avg_llm_processing_time: 1_380,avg_voice_processing_time: 910,avg_wpm: 153,},{time_bucket: "2026-01-06T00:00:00Z",recording_count: 71,total_words: 2_640,total_duration: 1_014_000,avg_llm_processing_time: 1_250,avg_voice_processing_time: 860,avg_wpm: 156,},{time_bucket: "2026-01-07T00:00:00Z",recording_count: 64,total_words: 2_305,total_duration: 903_000,avg_llm_processing_time: 1_410,avg_voice_processing_time: 940,avg_wpm: 153,},],pagination: { page: 1, page_size: 200, total_rows: 3, total_pages: 1, count: 3 },meta: {start_date: "2026-01-05",end_date: "2026-01-07",granularity: "day",group_by: null,},},"/api/v1/stats.csv":"time_bucket,recording_count,total_words,avg_wpm\n2026-01-05,58,2110,153\n2026-01-06,71,2640,156\n2026-01-07,64,2305,153\n",};
Source: write · chatcmpl-tool-968ab37416cf122a
Recorded tool call
{
"type": "tool_call",
"seq": 72,
"ts": "2026-11-19T04:02:41.617Z",
"name": "write",
"turn": 1,
"input": {
"path": "/sandbox/repo/src/fixtures.ts",
"content": "/** Canned responses shaped exactly like the documented OpenAPI schemas. */\nexport const fixtures = {\n \"/api/v1/stats/dimensions\": {\n voice_models: [\"whisper-large-v3-turbo\", \"parakeet-tdt-0.6b-v3\"],\n language_models: [\"gpt-4o-mini\", \"claude-sonnet-4\"],\n app_names: [\"Cursor\", \"Slack\", \"Gmail\"],\n },\n\n \"/api/v1/stats/summary\": {\n total_recordings: 412,\n total_duration_minutes: 96.5,\n total_words: 14_830,\n avg_llm_processing_seconds: 1.4,\n avg_voice_processing_seconds: 0.9,\n },\n\n \"/api/v1/stats\": {\n data: [\n {\n time_bucket: \"2026-01-05T00:00:00Z\",\n recording_count: 58,\n total_words: 2_110,\n total_duration: 828_000,\n avg_llm_processing_time: 1_380,\n avg_voice_processing_time: 910,\n avg_wpm: 153,\n },\n {\n time_bucket: \"2026-01-06T00:00:00Z\",\n recording_count: 71,\n total_words: 2_640,\n total_duration: 1_014_000,\n avg_llm_processing_time: 1_250,\n avg_voice_processing_time: 860,\n avg_wpm: 156,\n },\n {\n time_bucket: \"2026-01-07T00:00:00Z\",\n recording_count: 64,\n total_words: 2_305,\n total_duration: 903_000,\n avg_llm_processing_time: 1_410,\n avg_voice_processing_time: 940,\n avg_wpm: 153,\n },\n ],\n pagination: { page: 1, page_size: 200, total_rows: 3, total_pages: 1, count: 3 },\n meta: {\n start_date: \"2026-01-05\",\n end_date: \"2026-01-07\",\n granularity: \"day\",\n group_by: null,\n },\n },\n\n \"/api/v1/stats.csv\":\n \"time_bucket,recording_count,total_words,avg_wpm\\n2026-01-05,58,2110,153\\n2026-01-06,71,2640,156\\n2026-01-07,64,2305,153\\n\",\n};\n"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-968ab37416cf122a",
"tool_kind": "file_edit"
}Recorded tool result
{
"type": "tool_result",
"seq": 74,
"ts": "2026-11-19T04:02:41.617Z",
"turn": 1,
"output": {
"content": [
{
"text": "Successfully wrote 1689 bytes to /sandbox/repo/src/fixtures.ts",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-968ab37416cf122a",
"is_error": false,
"tool_kind": "file_edit"
}›Thinking…
I need to verify that the client import is working correctly—since it's only used as a type, the import type statement handles it fine. Now I'm moving on to build out the demo script.
File edits
1 file
Writtendemo/usage-report.tsView changes
/sandbox/repo/demo/usage-report.ts
Written content · previous contents were not recorded
/*** Usage report demo for the hosted Superwhisper API.** # real (Enterprise API token required):* SUPERWHISPER_API_TOKEN=sk-sw-... npm run demo** # offline, no token needed:* npm run demo:mock*/import { SuperwhisperClient, SuperwhisperApiError } from "../src/client.ts";import { mockFetch } from "../src/mock.ts";const useMock = process.env.MOCK === "1" || !process.env.SUPERWHISPER_API_TOKEN;const days = Number(process.env.DAYS ?? 7);const end = new Date();const start = new Date(end.getTime() - days * 86_400_000);const iso = (d: Date) => d.toISOString().slice(0, 10);const client = new SuperwhisperClient({token: process.env.SUPERWHISPER_API_TOKEN ?? "sk-sw-mock-token",...(useMock ? { fetch: mockFetch() } : {}),});console.log(`Superwhisper usage ${iso(start)} → ${iso(end)} [${useMock ? "MOCK data" : "live api.superwhisper.com"}]\n`,);try {const [dims, summary, page] = await Promise.all([client.getDimensions(),client.getSummary({ start_date: iso(start), end_date: iso(end) }),client.getStats({ start_date: iso(start), end_date: iso(end), granularity: "day" }),]);console.log(`Recordings : ${summary.total_recordings}`);console.log(`Words : ${summary.total_words.toLocaleString("en-US")}`);console.log(`Audio : ${summary.total_duration_minutes.toFixed(1)} min`);console.log(`Latency : voice ${summary.avg_voice_processing_seconds}s / llm ${summary.avg_llm_processing_seconds}s\n`,);console.log("Per day:");for (const r of page.data) {console.log(` ${r.time_bucket.slice(0, 10)} ${String(r.recording_count).padStart(4)} recordings ` +`${String(r.total_words).padStart(6)} words ${r.avg_wpm.toFixed(0)} wpm`,);}console.log(`\n(page ${page.pagination.page}/${page.pagination.total_pages}, ${page.pagination.total_rows} rows)`);console.log("\nAvailable filters:");console.log(` voice models : ${dims.voice_models.join(", ") || "—"}`);console.log(` language models : ${dims.language_models.join(", ") || "—"}`);console.log(` apps : ${dims.app_names.join(", ") || "—"}`);// Example of a filtered, grouped query + CSV export.const top = dims.app_names[0];if (top) {const byModel = await client.getStats({start_date: iso(start),end_date: iso(end),granularity: "week",group_by: "voice_model",app_name: [top],page_size: 5,});console.log(`\nGrouped by voice_model for app "${top}": ${byModel.data.length} bucket(s)`);const csv = await client.getStatsCsv({ start_date: iso(start), end_date: iso(end) });console.log(`\nCSV export (${csv.split("\n").length - 1} lines):\n${csv.trimEnd()}`);}} catch (err) {if (err instanceof SuperwhisperApiError) {console.error(`API error: ${err.message}`);if (err.body) console.error(`body: ${err.body}`);} else {console.error(err);}process.exitCode = 1;}
Source: write · chatcmpl-tool-83e9e6f873c0733b
Recorded tool call
{
"type": "tool_call",
"seq": 77,
"ts": "2026-11-19T04:02:47.038Z",
"name": "write",
"turn": 1,
"input": {
"path": "/sandbox/repo/demo/usage-report.ts",
"content": "/**\n * Usage report demo for the hosted Superwhisper API.\n *\n * # real (Enterprise API token required):\n * SUPERWHISPER_API_TOKEN=sk-sw-... npm run demo\n *\n * # offline, no token needed:\n * npm run demo:mock\n */\nimport { SuperwhisperClient, SuperwhisperApiError } from \"../src/client.ts\";\nimport { mockFetch } from \"../src/mock.ts\";\n\nconst useMock = process.env.MOCK === \"1\" || !process.env.SUPERWHISPER_API_TOKEN;\n\nconst days = Number(process.env.DAYS ?? 7);\nconst end = new Date();\nconst start = new Date(end.getTime() - days * 86_400_000);\nconst iso = (d: Date) => d.toISOString().slice(0, 10);\n\nconst client = new SuperwhisperClient({\n token: process.env.SUPERWHISPER_API_TOKEN ?? \"sk-sw-mock-token\",\n ...(useMock ? { fetch: mockFetch() } : {}),\n});\n\nconsole.log(\n `Superwhisper usage ${iso(start)} → ${iso(end)} [${useMock ? \"MOCK data\" : \"live api.superwhisper.com\"}]\\n`,\n);\n\ntry {\n const [dims, summary, page] = await Promise.all([\n client.getDimensions(),\n client.getSummary({ start_date: iso(start), end_date: iso(end) }),\n client.getStats({ start_date: iso(start), end_date: iso(end), granularity: \"day\" }),\n ]);\n\n console.log(`Recordings : ${summary.total_recordings}`);\n console.log(`Words : ${summary.total_words.toLocaleString(\"en-US\")}`);\n console.log(`Audio : ${summary.total_duration_minutes.toFixed(1)} min`);\n console.log(\n `Latency : voice ${summary.avg_voice_processing_seconds}s / llm ${summary.avg_llm_processing_seconds}s\\n`,\n );\n\n console.log(\"Per day:\");\n for (const r of page.data) {\n console.log(\n ` ${r.time_bucket.slice(0, 10)} ${String(r.recording_count).padStart(4)} recordings ` +\n `${String(r.total_words).padStart(6)} words ${r.avg_wpm.toFixed(0)} wpm`,\n );\n }\n console.log(`\\n(page ${page.pagination.page}/${page.pagination.total_pages}, ${page.pagination.total_rows} rows)`);\n\n console.log(\"\\nAvailable filters:\");\n console.log(` voice models : ${dims.voice_models.join(\", \") || \"—\"}`);\n console.log(` language models : ${dims.language_models.join(\", \") || \"—\"}`);\n console.log(` apps : ${dims.app_names.join(\", \") || \"—\"}`);\n\n // Example of a filtered, grouped query + CSV export.\n const top = dims.app_names[0];\n if (top) {\n const byModel = await client.getStats({\n start_date: iso(start),\n end_date: iso(end),\n granularity: \"week\",\n group_by: \"voice_model\",\n app_name: [top],\n page_size: 5,\n });\n console.log(`\\nGrouped by voice_model for app \"${top}\": ${byModel.data.length} bucket(s)`);\n\n const csv = await client.getStatsCsv({ start_date: iso(start), end_date: iso(end) });\n console.log(`\\nCSV export (${csv.split(\"\\n\").length - 1} lines):\\n${csv.trimEnd()}`);\n }\n} catch (err) {\n if (err instanceof SuperwhisperApiError) {\n console.error(`API error: ${err.message}`);\n if (err.body) console.error(`body: ${err.body}`);\n } else {\n console.error(err);\n }\n process.exitCode = 1;\n}\n"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-83e9e6f873c0733b",
"tool_kind": "file_edit"
}Recorded tool result
{
"type": "tool_result",
"seq": 79,
"ts": "2026-11-19T04:02:47.038Z",
"turn": 1,
"output": {
"content": [
{
"text": "Successfully wrote 2975 bytes to /sandbox/repo/demo/usage-report.ts",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-83e9e6f873c0733b",
"is_error": false,
"tool_kind": "file_edit"
}File edits
1 file
Writtentsconfig.jsonView changes
/sandbox/repo/tsconfig.json
Written content · previous contents were not recorded
{"compilerOptions": {"target": "ES2022","module": "NodeNext","moduleResolution": "NodeNext","lib": ["ES2022", "DOM"],"strict": true,"noEmit": true,"allowImportingTsExtensions": true,"verbatimModuleSyntax": true,"skipLibCheck": true,"types": ["node"]},"include": ["src", "demo"]}
Source: write · chatcmpl-tool-ad9b5842a8cd0e7b
Recorded tool call
{
"type": "tool_call",
"seq": 78,
"ts": "2026-11-19T04:02:47.038Z",
"name": "write",
"turn": 1,
"input": {
"path": "/sandbox/repo/tsconfig.json",
"content": "{\n \"compilerOptions\": {\n \"target\": \"ES2022\",\n \"module\": \"NodeNext\",\n \"moduleResolution\": \"NodeNext\",\n \"lib\": [\"ES2022\", \"DOM\"],\n \"strict\": true,\n \"noEmit\": true,\n \"allowImportingTsExtensions\": true,\n \"verbatimModuleSyntax\": true,\n \"skipLibCheck\": true,\n \"types\": [\"node\"]\n },\n \"include\": [\"src\", \"demo\"]\n}\n"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-ad9b5842a8cd0e7b",
"tool_kind": "file_edit"
}Recorded tool result
{
"type": "tool_result",
"seq": 80,
"ts": "2026-11-19T04:02:47.038Z",
"turn": 1,
"output": {
"content": [
{
"text": "Successfully wrote 339 bytes to /sandbox/repo/tsconfig.json",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-ad9b5842a8cd0e7b",
"is_error": false,
"tool_kind": "file_edit"
}›Thinking…
I'm thinking through the typecheck setup — I need TypeScript installed to run tsc, but I want to avoid the overhead of local service stacks and long-running commands. A quick npm install of TypeScript in the dev dependencies should work fine, and if the network is available, I can run the mock demo with Node's type-stripping flag to test it out.
cd /sandbox/repo && MOCK=1 node --experimental-strip-types demo/usage-report.ts 2>&1 | head -40
node:internal/modules/run_main:123
node:internal/modules/run_main:123
triggerUncaughtException(
^
file:///sandbox/repo/src/client.ts:88
constructor(
public readonly status: number,
^^^^^^^^^^^^^^
message: string,
SyntaxError [ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX]: TypeScript parameter property is not supported in strip-only mode
at parseTypeScript (node:internal/modules/typescript:63:40)
at processTypeScriptCode (node:internal/modules/typescript:133:42)
at stripTypeScriptModuleTypes (node:internal/modules/typescript:163:10)
at ModuleLoader.<anonymous> (node:internal/modules/esm/translators:660:29)
at #translate (node:internal/modules/esm/loader:559:20)
at afterLoad (node:internal/modules/esm/loader:612:29)
at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:617:12)
at #createModuleJob (node:internal/modules/esm/loader:640:36)
at #getJobFromResolveResult (node:internal/modules/esm/loader:353:34)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:321:41) {
code: 'ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX'
}
Node.js v22.23.4
Recorded tool call
{
"type": "tool_call",
"seq": 83,
"ts": "2026-11-19T04:02:47.038Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cd /sandbox/repo && MOCK=1 node --experimental-strip-types demo/usage-report.ts 2>&1 | head -40"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-b6eaa2f72b8396eb",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 84,
"ts": "2026-11-19T04:02:47.038Z",
"turn": 1,
"output": {
"content": [
{
"text": "node:internal/modules/run_main:123\n triggerUncaughtException(\n ^\n\nfile:///sandbox/repo/src/client.ts:88\n constructor(\n public readonly status: number,\n ^^^^^^^^^^^^^^\n message: string,\n\nSyntaxError [ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX]: TypeScript parameter property is not supported in strip-only mode\n at parseTypeScript (node:internal/modules/typescript:63:40)\n at processTypeScriptCode (node:internal/modules/typescript:133:42)\n at stripTypeScriptModuleTypes (node:internal/modules/typescript:163:10)\n at ModuleLoader.<anonymous> (node:internal/modules/esm/translators:660:29)\n at #translate (node:internal/modules/esm/loader:559:20)\n at afterLoad (node:internal/modules/esm/loader:612:29)\n at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:617:12)\n at #createModuleJob (node:internal/modules/esm/loader:640:36)\n at #getJobFromResolveResult (node:internal/modules/esm/loader:353:34)\n at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:321:41) {\n code: 'ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX'\n}\n\nNode.js v22.23.4\n",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-b6eaa2f72b8396eb",
"is_error": false,
"tool_kind": "shell"
}›Thinking…
I need to refactor the code to use explicit fields instead of parameter properties, and replace the satisfies operator with a simpler cast since strip-only mode doesn't support it.
File edits
1 file
Modifiedsrc/client.ts+20−18View changes
/sandbox/repo/src/client.ts
Replacement excerpt
export class SuperwhisperApiError extends Error {- constructor(- public readonly status: number,- message: string,- public readonly body?: string,- ) {+ readonly status: number;+ readonly body?: string;++ constructor(status: number, message: string, body?: string) {super(message);this.name = "SuperwhisperApiError";+ this.status = status;+ this.body = body;}}
Replacement excerpt
- private readonly token: string;- private readonly baseUrl: string;- private readonly doFetch: typeof fetch;- private readonly timeoutMs: number;+ #token: string;+ #baseUrl: string;+ #fetch: typeof fetch;+ #timeoutMs: number;constructor(opts: SuperwhisperClientOptions = {}) {
Replacement excerpt
- this.token = token;- this.baseUrl = (opts.baseUrl ?? DEFAULT_BASE_URL).replace(/\/+$/, "");- this.doFetch = opts.fetch ?? fetch;- this.timeoutMs = opts.timeoutMs ?? 15_000;+ this.#token = token;+ this.#baseUrl = (opts.baseUrl ?? DEFAULT_BASE_URL).replace(/\/+$/, "");+ this.#fetch = opts.fetch ?? fetch;+ this.#timeoutMs = opts.timeoutMs ?? 15_000;
Replacement excerpt
/** Time-series stats as CSV text (format=csv). */async getStatsCsv(params: StatsQuery = {}): Promise<string> {- return this.request(buildQuery({ ...params, format: "csv" } satisfies StatsQuery & { format: StatsFormat }), "/api/v1/stats", "text");+ const csvParams: StatsQuery & { format: StatsFormat } = { ...params, format: "csv" };+ return this.request(buildQuery(csvParams), "/api/v1/stats", "text");}
Replacement excerpt
- const url = `${this.baseUrl}${path}?${query.toString()}`;- const res = await this.doFetch(url, {+ const url = `${this.#baseUrl}${path}?${query.toString()}`;+ const res = await this.#fetch(url, {method: "GET",headers: {- Authorization: `Bearer ${this.token}`,+ Authorization: `Bearer ${this.#token}`,
Replacement excerpt
- signal: AbortSignal.timeout(this.timeoutMs),+ signal: AbortSignal.timeout(this.#timeoutMs),
Source: edit · chatcmpl-tool-81404ea4f8ee7dff
Recorded tool call
{
"type": "tool_call",
"seq": 87,
"ts": "2026-11-19T04:02:47.038Z",
"name": "edit",
"turn": 1,
"input": {
"path": "/sandbox/repo/src/client.ts",
"edits": [
{
"newText": "export class SuperwhisperApiError extends Error {\n readonly status: number;\n readonly body?: string;\n\n constructor(status: number, message: string, body?: string) {\n super(message);\n this.name = \"SuperwhisperApiError\";\n this.status = status;\n this.body = body;\n }\n}",
"oldText": "export class SuperwhisperApiError extends Error {\n constructor(\n public readonly status: number,\n message: string,\n public readonly body?: string,\n ) {\n super(message);\n this.name = \"SuperwhisperApiError\";\n }\n}"
},
{
"newText": " #token: string;\n #baseUrl: string;\n #fetch: typeof fetch;\n #timeoutMs: number;\n\n constructor(opts: SuperwhisperClientOptions = {}) {",
"oldText": " private readonly token: string;\n private readonly baseUrl: string;\n private readonly doFetch: typeof fetch;\n private readonly timeoutMs: number;\n\n constructor(opts: SuperwhisperClientOptions = {}) {"
},
{
"newText": " this.#token = token;\n this.#baseUrl = (opts.baseUrl ?? DEFAULT_BASE_URL).replace(/\\/+$/, \"\");\n this.#fetch = opts.fetch ?? fetch;\n this.#timeoutMs = opts.timeoutMs ?? 15_000;",
"oldText": " this.token = token;\n this.baseUrl = (opts.baseUrl ?? DEFAULT_BASE_URL).replace(/\\/+$/, \"\");\n this.doFetch = opts.fetch ?? fetch;\n this.timeoutMs = opts.timeoutMs ?? 15_000;"
},
{
"newText": " /** Time-series stats as CSV text (format=csv). */\n async getStatsCsv(params: StatsQuery = {}): Promise<string> {\n const csvParams: StatsQuery & { format: StatsFormat } = { ...params, format: \"csv\" };\n return this.request(buildQuery(csvParams), \"/api/v1/stats\", \"text\");\n }",
"oldText": " /** Time-series stats as CSV text (format=csv). */\n async getStatsCsv(params: StatsQuery = {}): Promise<string> {\n return this.request(buildQuery({ ...params, format: \"csv\" } satisfies StatsQuery & { format: StatsFormat }), \"/api/v1/stats\", \"text\");\n }"
},
{
"newText": " const url = `${this.#baseUrl}${path}?${query.toString()}`;\n const res = await this.#fetch(url, {\n method: \"GET\",\n headers: {\n Authorization: `Bearer ${this.#token}`,",
"oldText": " const url = `${this.baseUrl}${path}?${query.toString()}`;\n const res = await this.doFetch(url, {\n method: \"GET\",\n headers: {\n Authorization: `Bearer ${this.token}`,"
},
{
"newText": " signal: AbortSignal.timeout(this.#timeoutMs),",
"oldText": " signal: AbortSignal.timeout(this.timeoutMs),"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-81404ea4f8ee7dff",
"tool_kind": "file_edit"
}Recorded tool result
{
"type": "tool_result",
"seq": 88,
"ts": "2026-11-19T04:02:47.038Z",
"turn": 1,
"output": {
"content": [
{
"text": "Successfully replaced 6 block(s) in /sandbox/repo/src/client.ts.",
"type": "text"
}
],
"details": {
"diff": " ...\n 83 page_size?: number; // max 1000\n 84 }\n 85 \n 86 export class SuperwhisperApiError extends Error {\n- 87 constructor(\n- 88 public readonly status: number,\n- 89 message: string,\n- 90 public readonly body?: string,\n- 91 ) {\n+ 87 readonly status: number;\n+ 88 readonly body?: string;\n+ 89 \n+ 90 constructor(status: number, message: string, body?: string) {\n 92 super(message);\n 93 this.name = \"SuperwhisperApiError\";\n+ 93 this.status = status;\n+ 94 this.body = body;\n 94 }\n 95 }\n 96 \n 97 export interface SuperwhisperClientOptions {\n ...\n 103 timeoutMs?: number;\n 104 }\n 105 \n 106 export class SuperwhisperClient {\n-107 private readonly token: string;\n-108 private readonly baseUrl: string;\n-109 private readonly doFetch: typeof fetch;\n-110 private readonly timeoutMs: number;\n+108 #token: string;\n+109 #baseUrl: string;\n+110 #fetch: typeof fetch;\n+111 #timeoutMs: number;\n 111 \n 112 constructor(opts: SuperwhisperClientOptions = {}) {\n 113 const token = opts.token ?? process.env.SUPERWHISPER_API_TOKEN ?? \"\";\n 114 if (!token) {\n 115 throw new Error(\n 116 \"Missing API token. Pass { token } or set SUPERWHISPER_API_TOKEN (sk-sw-...).\",\n 117 );\n 118 }\n-119 this.token = token;\n-120 this.baseUrl = (opts.baseUrl ?? DEFAULT_BASE_URL).replace(/\\/+$/, \"\");\n-121 this.doFetch = opts.fetch ?? fetch;\n-122 this.timeoutMs = opts.timeoutMs ?? 15_000;\n+120 this.#token = token;\n+121 this.#baseUrl = (opts.baseUrl ?? DEFAULT_BASE_URL).replace(/\\/+$/, \"\");\n+122 this.#fetch = opts.fetch ?? fetch;\n+123 this.#timeoutMs = opts.timeoutMs ?? 15_000;\n 123 }\n 124 \n 125 /** Distinct filter values: voice models, language models, app names. */\n 126 getDimensions(): Promise<Dimensions> {\n ...\n 138 }\n 139 \n 140 /** Time-series stats as CSV text (format=csv). */\n 141 async getStatsCsv(params: StatsQuery = {}): Promise<string> {\n-142 return this.request(buildQuery({ ...params, format: \"csv\" } satisfies StatsQuery & { format: StatsFormat }), \"/api/v1/stats\", \"text\");\n+143 const csvParams: StatsQuery & { format: StatsFormat } = { ...params, format: \"csv\" };\n+144 return this.request(buildQuery(csvParams), \"/api/v1/stats\", \"text\");\n 143 }\n 144 \n 145 /** Walk every page of getStats. */\n 146 async *iterateStats(params: StatsQuery = {}): AsyncGenerator<StatsRow[], void, undefined> {\n ...\n 157 return this.request<T>(buildQuery(params), path, \"json\");\n 158 }\n 159 \n 160 private async request<T>(query: URLSearchParams, path: string, as: \"json\" | \"text\"): Promise<T> {\n-161 const url = `${this.baseUrl}${path}?${query.toString()}`;\n-162 const res = await this.doFetch(url, {\n+163 const url = `${this.#baseUrl}${path}?${query.toString()}`;\n+164 const res = await this.#fetch(url, {\n 163 method: \"GET\",\n 164 headers: {\n-165 Authorization: `Bearer ${this.token}`,\n+167 Authorization: `Bearer ${this.#token}`,\n 166 Accept: as === \"json\" ? \"application/json\" : \"text/csv\",\n 167 },\n-168 signal: AbortSignal.timeout(this.timeoutMs),\n+170 signal: AbortSignal.timeout(this.#timeoutMs),\n 169 });\n 170 \n 171 if (!res.ok) {\n 172 const body = await res.text().catch(() => \"\");\n ...",
"patch": "--- /sandbox/repo/src/client.ts\n+++ /sandbox/repo/src/client.ts\n@@ -83,15 +83,16 @@\n page_size?: number; // max 1000\n }\n \n export class SuperwhisperApiError extends Error {\n- constructor(\n- public readonly status: number,\n- message: string,\n- public readonly body?: string,\n- ) {\n+ readonly status: number;\n+ readonly body?: string;\n+\n+ constructor(status: number, message: string, body?: string) {\n super(message);\n this.name = \"SuperwhisperApiError\";\n+ this.status = status;\n+ this.body = body;\n }\n }\n \n export interface SuperwhisperClientOptions {\n@@ -103,24 +104,24 @@\n timeoutMs?: number;\n }\n \n export class SuperwhisperClient {\n- private readonly token: string;\n- private readonly baseUrl: string;\n- private readonly doFetch: typeof fetch;\n- private readonly timeoutMs: number;\n+ #token: string;\n+ #baseUrl: string;\n+ #fetch: typeof fetch;\n+ #timeoutMs: number;\n \n constructor(opts: SuperwhisperClientOptions = {}) {\n const token = opts.token ?? process.env.SUPERWHISPER_API_TOKEN ?? \"\";\n if (!token) {\n throw new Error(\n \"Missing API token. Pass { token } or set SUPERWHISPER_API_TOKEN (sk-sw-...).\",\n );\n }\n- this.token = token;\n- this.baseUrl = (opts.baseUrl ?? DEFAULT_BASE_URL).replace(/\\/+$/, \"\");\n- this.doFetch = opts.fetch ?? fetch;\n- this.timeoutMs = opts.timeoutMs ?? 15_000;\n+ this.#token = token;\n+ this.#baseUrl = (opts.baseUrl ?? DEFAULT_BASE_URL).replace(/\\/+$/, \"\");\n+ this.#fetch = opts.fetch ?? fetch;\n+ this.#timeoutMs = opts.timeoutMs ?? 15_000;\n }\n \n /** Distinct filter values: voice models, language models, app names. */\n getDimensions(): Promise<Dimensions> {\n@@ -138,9 +139,10 @@\n }\n \n /** Time-series stats as CSV text (format=csv). */\n async getStatsCsv(params: StatsQuery = {}): Promise<string> {\n- return this.request(buildQuery({ ...params, format: \"csv\" } satisfies StatsQuery & { format: StatsFormat }), \"/api/v1/stats\", \"text\");\n+ const csvParams: StatsQuery & { format: StatsFormat } = { ...params, format: \"csv\" };\n+ return this.request(buildQuery(csvParams), \"/api/v1/stats\", \"text\");\n }\n \n /** Walk every page of getStats. */\n async *iterateStats(params: StatsQuery = {}): AsyncGenerator<StatsRow[], void, undefined> {\n@@ -157,16 +159,16 @@\n return this.request<T>(buildQuery(params), path, \"json\");\n }\n \n private async request<T>(query: URLSearchParams, path: string, as: \"json\" | \"text\"): Promise<T> {\n- const url = `${this.baseUrl}${path}?${query.toString()}`;\n- const res = await this.doFetch(url, {\n+ const url = `${this.#baseUrl}${path}?${query.toString()}`;\n+ const res = await this.#fetch(url, {\n method: \"GET\",\n headers: {\n- Authorization: `Bearer ${this.token}`,\n+ Authorization: `Bearer ${this.#token}`,\n Accept: as === \"json\" ? \"application/json\" : \"text/csv\",\n },\n- signal: AbortSignal.timeout(this.timeoutMs),\n+ signal: AbortSignal.timeout(this.#timeoutMs),\n });\n \n if (!res.ok) {\n const body = await res.text().catch(() => \"\");\n",
"firstChangedLine": 87
}
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-81404ea4f8ee7dff",
"is_error": false,
"tool_kind": "file_edit"
}›Thinking…
I'm checking the type signatures across the mock implementation — the request method returns a cast value that works fine, the async generator's yield and return types are valid, and the private getJson method with its object parameter default is properly typed. Let me run the demo again to verify everything works.
cd /sandbox/repo && MOCK=1 node --experimental-strip-types demo/usage-report.ts 2>&1 | head -40
Superwhisper usage 2026-11-12 → 2026-11-19 [MOCK data]
Superwhisper usage 2026-11-12 → 2026-11-19 [MOCK data] Recordings : 412 Words : 14,830 Audio : 96.5 min Latency : voice 0.9s / llm 1.4s Per day: 2026-01-05 58 recordings 2110 words 153 wpm 2026-01-06 71 recordings 2640 words 156 wpm 2026-01-07 64 recordings 2305 words 153 wpm (page 1/1, 3 rows) Available filters: voice models : whisper-large-v3-turbo, parakeet-tdt-0.6b-v3 language models : gpt-4o-mini, claude-sonnet-4 apps : Cursor, Slack, Gmail Grouped by voice_model for app "Cursor": 3 bucket(s) CSV export (4 lines): time_bucket,recording_count,total_words,avg_wpm 2026-01-05,58,2110,153 2026-01-06,71,2640,156 2026-01-07,64,2305,153
Recorded tool call
{
"type": "tool_call",
"seq": 91,
"ts": "2026-11-19T04:02:47.038Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cd /sandbox/repo && MOCK=1 node --experimental-strip-types demo/usage-report.ts 2>&1 | head -40"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-bcedbf8946ea80d3",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 92,
"ts": "2026-11-19T04:02:47.038Z",
"turn": 1,
"output": {
"content": [
{
"text": "Superwhisper usage 2026-11-12 → 2026-11-19 [MOCK data]\n\nRecordings : 412\nWords : 14,830\nAudio : 96.5 min\nLatency : voice 0.9s / llm 1.4s\n\nPer day:\n 2026-01-05 58 recordings 2110 words 153 wpm\n 2026-01-06 71 recordings 2640 words 156 wpm\n 2026-01-07 64 recordings 2305 words 153 wpm\n\n(page 1/1, 3 rows)\n\nAvailable filters:\n voice models : whisper-large-v3-turbo, parakeet-tdt-0.6b-v3\n language models : gpt-4o-mini, claude-sonnet-4\n apps : Cursor, Slack, Gmail\n\nGrouped by voice_model for app \"Cursor\": 3 bucket(s)\n\nCSV export (4 lines):\ntime_bucket,recording_count,total_words,avg_wpm\n2026-01-05,58,2110,153\n2026-01-06,71,2640,156\n2026-01-07,64,2305,153\n",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-bcedbf8946ea80d3",
"is_error": false,
"tool_kind": "shell"
}›Thinking…
I should verify the error handling works correctly by testing with a fake token against the live endpoint, and I need to check if Node 22 has TypeScript installed—though I can skip the type checking if it's not available since the code is already written to be type-safe.
cd /sandbox/repo && SUPERWHISPER_API_TOKEN=sk-sw-invalid node --experimental-strip-types demo/usage-report.ts 2>&1 | head -8; echo "exit=$?"; echo "=== unauthenticated spec ==="; curl -s -o /dev/null -w "%{http_code}\n" --max-time 15 https://api.superwhisper.com/api/v1/stats/dimensionsSuperwhisper usage 2026-11-12 → 2026-11-19 [live api.superwhisper.com]
Superwhisper usage 2026-11-12 → 2026-11-19 [live api.superwhisper.com] API error: 401 Unauthorized — missing or invalid bearer token (usage analytics requires an Enterprise API token). body: Unauthorized: invalid token exit=0 === unauthenticated spec === 401
Recorded tool call
{
"type": "tool_call",
"seq": 95,
"ts": "2026-11-19T04:02:51.863Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cd /sandbox/repo && SUPERWHISPER_API_TOKEN=sk-sw-invalid node --experimental-strip-types demo/usage-report.ts 2>&1 | head -8; echo \"exit=$?\"; echo \"=== unauthenticated spec ===\"; curl -s -o /dev/null -w \"%{http_code}\\n\" --max-time 15 https://api.superwhisper.com/api/v1/stats/dimensions"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-933154350dde9aaa",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 98,
"ts": "2026-11-19T04:02:51.863Z",
"turn": 1,
"output": {
"content": [
{
"text": "Superwhisper usage 2026-11-12 → 2026-11-19 [live api.superwhisper.com]\n\nAPI error: 401 Unauthorized — missing or invalid bearer token (usage analytics requires an Enterprise API token).\nbody: Unauthorized: invalid token\nexit=0\n=== unauthenticated spec ===\n401\n",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-933154350dde9aaa",
"is_error": false,
"tool_kind": "shell"
}cd /tmp && (npx -y typescript@5.6 tsc --version 2>&1 | tail -2)
npm notice
npm notice npm error A complete log of this run can be found in: /sandbox/.npm/_logs/2026-11-19T04_02_47_654Z-debug-0.log
Recorded tool call
{
"type": "tool_call",
"seq": 97,
"ts": "2026-11-19T04:02:51.863Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cd /tmp && (npx -y typescript@5.6 tsc --version 2>&1 | tail -2) "
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-8c6d4e0da23a5dcb",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 99,
"ts": "2026-11-19T04:02:51.863Z",
"turn": 1,
"output": {
"content": [
{
"text": "npm notice\nnpm error A complete log of this run can be found in: /sandbox/.npm/_logs/2026-11-19T04_02_47_654Z-debug-0.log\n",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-8c6d4e0da23a5dcb",
"is_error": false,
"tool_kind": "shell"
}›Thinking…
The live API confirms the 401 error handling works correctly—the endpoint exists and returns "Unauthorized: invalid token" as expected. The issue with the demo is that process.exitCode = 1 was set inside the catch block, but the piped output through head captured the exit code of head itself (which is 0) rather than the Node process, so that's working as intended. Now I'm checking what went wrong with the TypeScript installation via npx.
Since network access to npm appears limited or npx failed, I'll skip the full typecheck and just document the limitation rather than trying to install TypeScript locally. Time to write up the README with pricing details and the assessment.
cd /tmp && npx -y typescript@5.6 tsc --version 2>&1 | grep -E "npm error (code|404|network)" | head -5
(no output)
(no output)
Recorded tool call
{
"type": "tool_call",
"seq": 102,
"ts": "2026-11-19T04:02:56.343Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cd /tmp && npx -y typescript@5.6 tsc --version 2>&1 | grep -E \"npm error (code|404|network)\" | head -5"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-8ee59523580702f3",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 104,
"ts": "2026-11-19T04:02:56.343Z",
"turn": 1,
"output": {
"content": [
{
"text": "(no output)",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-8ee59523580702f3",
"is_error": false,
"tool_kind": "shell"
}›Thinking…
The API validated end-to-end with a 401 response as expected, so the integration is working correctly. TypeScript typechecking failed due to registry restrictions, but that's fine since Node's type-stripping already ran successfully. Now I'll write the README with pricing information and the manageability assessment.
File edits
1 file
WrittenREADME.mdView changes
/sandbox/repo/README.md
Written content · previous contents were not recorded
# Superwhisper API exampleA minimal, dependency-free example against the **hosted Superwhisper API** (`https://api.superwhisper.com`).No local services, no builds, no long-running processes.## What Superwhisper exposes to developers| Surface | Where it runs | What you can do || :- | :- | :- || **REST API** (this example) | Hosted, `api.superwhisper.com` | Read-only **usage analytics** for an Enterprise org: recordings, words, duration, latency, grouped by member / voice model / language model / app. Bearer token `sk-sw-...`. || `superwhisper` CLI + MCP server | Local, **macOS only** | Search your own dictation history/meetings, manage vocabulary & snippets, expose them to Claude Code / Codex / Cursor over MCP. Reads the app's local DB. || Agent extensions (`@superwhisper/pi`, `-claude-code`, `-codex`, …) | Local, macOS | Voice loop: agent finishes → Superwhisper notification → you speak → response goes back to the agent. |OpenAPI spec: <https://api.superwhisper.com/api/v1/openapi.json> · Docs: <https://superwhisper.com/docs/llms.txt>There is **no hosted API for transcription itself** — dictation is an app-side feature (local Whisper modelsor cloud models the app calls). So "build with Superwhisper" via pure HTTP means the analytics API.## Files```src/client.ts # Typed client: getDimensions, getSummary, getStats, getStatsCsv, iterateStatssrc/mock.ts # Injectable fetch that serves fixtures (offline demos/tests)src/fixtures.ts # Canned responses matching the OpenAPI schemasdemo/usage-report.ts # Runnable example report```## RunRequires Node 18+ (uses global `fetch`). Node runs the `.ts` files directly — no build step.```bash# Offline, no token needed (mock transport):npm run demo:mock# Live, against a real Enterprise org:export SUPERWHISPER_API_TOKEN=sk-sw-...npm run demoDAYS=30 npm run demo # change the window```Expected output (mock):```Superwhisper usage 2026-11-12 → 2026-11-19 [MOCK data]Recordings : 412Words : 14,830Audio : 96.5 minLatency : voice 0.9s / llm 1.4sPer day:2026-01-05 58 recordings 2110 words 153 wpm...Available filters:voice models : whisper-large-v3-turbo, parakeet-tdt-0.6b-v3...CSV export (4 lines):time_bucket,recording_count,total_words,avg_wpm```Without a token the live API returns `401 Unauthorized: invalid token` — the client surfaces that as a`SuperwhisperApiError` with a hint.## Using the client in your own code```tsimport { SuperwhisperClient } from "./src/client.ts";const sw = new SuperwhisperClient({ token: process.env.SUPERWHISPER_API_TOKEN });const summary = await sw.getSummary({ start_date: "2026-01-01", end_date: "2026-01-31" });console.log(summary.total_words);// Filtered + grouped, all pages:for await (const rows of sw.iterateStats({granularity: "week",group_by: "voice_model",app_name: ["Cursor", "Slack"], // -> filter[app_name]=Cursor,Slackpage_size: 500,})) {console.table(rows);}```## PricingSuperwhisper is a per-user product, not a metered API. One Pro license covers **all** your devices(unlimited Macs/Windows PCs + iPhone + Android).| Plan | Price | Notes || :- | :- | :- || Free | $0 | Unlimited dictation with **local** Whisper models, custom vocabulary, text replacements, up to 2 modes (no AI processing). Nothing leaves the device. || Pro Monthly | $8.49/mo | || Pro Annual | $84.99/yr | ~17% cheaper than monthly || Pro Lifetime | $249.99 once | Key never expires, recoverable if lost |Pro adds cloud voice models, Cohere Transcribe/Parakeet, file transcription, unlimited modes, AI modes(Super, Mail, …), context awareness, realtime, system audio, speaker separation, Meetings, andbring-your-own-API-keys. All plans have the same features — only billing differs.- New users get **3,000 free Pro words**, then fall back to Free (nothing deleted).- **40% off** for verified students/educators and non-profits — request before purchase.- Buy on superwhisper.com (cheapest) or via App Store / Google Play (higher, and Apple/Google handle that billing).- **Enterprise** is separate: seat-based, with SAML SSO, SCIM, MDM deployment, org-wide model policy, andthe usage-analytics API used in this example. Refunds: 14 days.## Caveats found while building this- The analytics API is **Enterprise-only** — a personal Free/Pro license won't get you an `sk-sw-` token.- Only 3 endpoints exist today (dimensions, summary, paginated stats). All GET, all read-only; no writes,no webhooks, no transcription endpoint.- The CLI/MCP/extensions path is macOS-only and talks to the app's local database, so it can't be exercisedfrom a Linux CI box or container.- No official JS/Python SDK is published; this repo is a hand-rolled client from the OpenAPI spec.
Source: write · chatcmpl-tool-866d3a38f0685ec0
Recorded tool call
{
"type": "tool_call",
"seq": 107,
"ts": "2026-11-19T04:03:04.952Z",
"name": "write",
"turn": 1,
"input": {
"path": "/sandbox/repo/README.md",
"content": "# Superwhisper API example\n\nA minimal, dependency-free example against the **hosted Superwhisper API** (`https://api.superwhisper.com`).\nNo local services, no builds, no long-running processes.\n\n## What Superwhisper exposes to developers\n\n| Surface | Where it runs | What you can do |\n| :- | :- | :- |\n| **REST API** (this example) | Hosted, `api.superwhisper.com` | Read-only **usage analytics** for an Enterprise org: recordings, words, duration, latency, grouped by member / voice model / language model / app. Bearer token `sk-sw-...`. |\n| `superwhisper` CLI + MCP server | Local, **macOS only** | Search your own dictation history/meetings, manage vocabulary & snippets, expose them to Claude Code / Codex / Cursor over MCP. Reads the app's local DB. |\n| Agent extensions (`@superwhisper/pi`, `-claude-code`, `-codex`, …) | Local, macOS | Voice loop: agent finishes → Superwhisper notification → you speak → response goes back to the agent. |\n\nOpenAPI spec: <https://api.superwhisper.com/api/v1/openapi.json> · Docs: <https://superwhisper.com/docs/llms.txt>\n\nThere is **no hosted API for transcription itself** — dictation is an app-side feature (local Whisper models\nor cloud models the app calls). So \"build with Superwhisper\" via pure HTTP means the analytics API.\n\n## Files\n\n```\nsrc/client.ts # Typed client: getDimensions, getSummary, getStats, getStatsCsv, iterateStats\nsrc/mock.ts # Injectable fetch that serves fixtures (offline demos/tests)\nsrc/fixtures.ts # Canned responses matching the OpenAPI schemas\ndemo/usage-report.ts # Runnable example report\n```\n\n## Run\n\nRequires Node 18+ (uses global `fetch`). Node runs the `.ts` files directly — no build step.\n\n```bash\n# Offline, no token needed (mock transport):\nnpm run demo:mock\n\n# Live, against a real Enterprise org:\nexport SUPERWHISPER_API_TOKEN=sk-sw-...\nnpm run demo\nDAYS=30 npm run demo # change the window\n```\n\nExpected output (mock):\n\n```\nSuperwhisper usage 2026-11-12 → 2026-11-19 [MOCK data]\n\nRecordings : 412\nWords : 14,830\nAudio : 96.5 min\nLatency : voice 0.9s / llm 1.4s\n\nPer day:\n 2026-01-05 58 recordings 2110 words 153 wpm\n ...\nAvailable filters:\n voice models : whisper-large-v3-turbo, parakeet-tdt-0.6b-v3\n ...\nCSV export (4 lines):\ntime_bucket,recording_count,total_words,avg_wpm\n```\n\nWithout a token the live API returns `401 Unauthorized: invalid token` — the client surfaces that as a\n`SuperwhisperApiError` with a hint.\n\n## Using the client in your own code\n\n```ts\nimport { SuperwhisperClient } from \"./src/client.ts\";\n\nconst sw = new SuperwhisperClient({ token: process.env.SUPERWHISPER_API_TOKEN });\n\nconst summary = await sw.getSummary({ start_date: \"2026-01-01\", end_date: \"2026-01-31\" });\nconsole.log(summary.total_words);\n\n// Filtered + grouped, all pages:\nfor await (const rows of sw.iterateStats({\n granularity: \"week\",\n group_by: \"voice_model\",\n app_name: [\"Cursor\", \"Slack\"], // -> filter[app_name]=Cursor,Slack\n page_size: 500,\n})) {\n console.table(rows);\n}\n```\n\n## Pricing\n\nSuperwhisper is a per-user product, not a metered API. One Pro license covers **all** your devices\n(unlimited Macs/Windows PCs + iPhone + Android).\n\n| Plan | Price | Notes |\n| :- | :- | :- |\n| Free | $0 | Unlimited dictation with **local** Whisper models, custom vocabulary, text replacements, up to 2 modes (no AI processing). Nothing leaves the device. |\n| Pro Monthly | $8.49/mo | |\n| Pro Annual | $84.99/yr | ~17% cheaper than monthly |\n| Pro Lifetime | $249.99 once | Key never expires, recoverable if lost |\n\nPro adds cloud voice models, Cohere Transcribe/Parakeet, file transcription, unlimited modes, AI modes\n(Super, Mail, …), context awareness, realtime, system audio, speaker separation, Meetings, and\nbring-your-own-API-keys. All plans have the same features — only billing differs.\n\n- New users get **3,000 free Pro words**, then fall back to Free (nothing deleted).\n- **40% off** for verified students/educators and non-profits — request before purchase.\n- Buy on superwhisper.com (cheapest) or via App Store / Google Play (higher, and Apple/Google handle that billing).\n- **Enterprise** is separate: seat-based, with SAML SSO, SCIM, MDM deployment, org-wide model policy, and\n the usage-analytics API used in this example. Refunds: 14 days.\n\n## Caveats found while building this\n\n- The analytics API is **Enterprise-only** — a personal Free/Pro license won't get you an `sk-sw-` token.\n- Only 3 endpoints exist today (dimensions, summary, paginated stats). All GET, all read-only; no writes,\n no webhooks, no transcription endpoint.\n- The CLI/MCP/extensions path is macOS-only and talks to the app's local database, so it can't be exercised\n from a Linux CI box or container.\n- No official JS/Python SDK is published; this repo is a hand-rolled client from the OpenAPI spec.\n"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-866d3a38f0685ec0",
"tool_kind": "file_edit"
}Recorded tool result
{
"type": "tool_result",
"seq": 108,
"ts": "2026-11-19T04:03:04.952Z",
"turn": 1,
"output": {
"content": [
{
"text": "Successfully wrote 4818 bytes to /sandbox/repo/README.md",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-866d3a38f0685ec0",
"is_error": false,
"tool_kind": "file_edit"
}›Thinking…
I should add a minimal test file using Node's built-in test runner to verify the mock transport works correctly—checking that buildQuery and the client function as expected. This keeps things lightweight since node --test is quick to run.
File edits
1 file
Writtentest/client.test.tsView changes
/sandbox/repo/test/client.test.ts
Written content · previous contents were not recorded
/** Tiny offline checks against the mock transport. Run: npm test */import test from "node:test";import assert from "node:assert/strict";import { SuperwhisperClient, SuperwhisperApiError, buildQuery } from "../src/client.ts";import { mockFetch } from "../src/mock.ts";const client = new SuperwhisperClient({ token: "sk-sw-test", fetch: mockFetch() });test("buildQuery flattens filters and drops empties", () => {const q = buildQuery({ granularity: "day", app_name: ["Cursor", "Slack"], voice_model: [], page: undefined });assert.equal(q.toString(), "granularity=day&filter%5Bapp_name%5D=Cursor%2CSlack");});test("missing token throws", () => {const saved = process.env.SUPERWHISPER_API_TOKEN;delete process.env.SUPERWHISPER_API_TOKEN;assert.throws(() => new SuperwhisperClient(), /Missing API token/);if (saved) process.env.SUPERWHISPER_API_TOKEN = saved;});test("summary + stats + csv", async () => {const summary = await client.getSummary({ start_date: "2026-01-05" });assert.equal(summary.total_recordings, 412);const page = await client.getStats({ granularity: "day" });assert.equal(page.data.length, 3);assert.equal(page.meta.group_by, null);const csv = await client.getStatsCsv({});assert.match(csv, /^time_bucket,recording_count/);});test("iterateStats stops at total_pages", async () => {let batches = 0;for await (const rows of client.iterateStats({})) {assert.ok(rows.length > 0);batches++;}assert.equal(batches, 1);});test("401 is reported as SuperwhisperApiError", async () => {const failing = new SuperwhisperClient({token: "sk-sw-bad",fetch: (async () => new Response("Unauthorized: invalid token", { status: 401 })) as unknown as typeof fetch,});await assert.rejects(() => failing.getDimensions(), SuperwhisperApiError);});
Source: write · chatcmpl-tool-958ed26653f41e9a
Recorded tool call
{
"type": "tool_call",
"seq": 111,
"ts": "2026-11-19T04:03:09.527Z",
"name": "write",
"turn": 1,
"input": {
"path": "/sandbox/repo/test/client.test.ts",
"content": "/** Tiny offline checks against the mock transport. Run: npm test */\nimport test from \"node:test\";\nimport assert from \"node:assert/strict\";\nimport { SuperwhisperClient, SuperwhisperApiError, buildQuery } from \"../src/client.ts\";\nimport { mockFetch } from \"../src/mock.ts\";\n\nconst client = new SuperwhisperClient({ token: \"sk-sw-test\", fetch: mockFetch() });\n\ntest(\"buildQuery flattens filters and drops empties\", () => {\n const q = buildQuery({ granularity: \"day\", app_name: [\"Cursor\", \"Slack\"], voice_model: [], page: undefined });\n assert.equal(q.toString(), \"granularity=day&filter%5Bapp_name%5D=Cursor%2CSlack\");\n});\n\ntest(\"missing token throws\", () => {\n const saved = process.env.SUPERWHISPER_API_TOKEN;\n delete process.env.SUPERWHISPER_API_TOKEN;\n assert.throws(() => new SuperwhisperClient(), /Missing API token/);\n if (saved) process.env.SUPERWHISPER_API_TOKEN = saved;\n});\n\ntest(\"summary + stats + csv\", async () => {\n const summary = await client.getSummary({ start_date: \"2026-01-05\" });\n assert.equal(summary.total_recordings, 412);\n\n const page = await client.getStats({ granularity: \"day\" });\n assert.equal(page.data.length, 3);\n assert.equal(page.meta.group_by, null);\n\n const csv = await client.getStatsCsv({});\n assert.match(csv, /^time_bucket,recording_count/);\n});\n\ntest(\"iterateStats stops at total_pages\", async () => {\n let batches = 0;\n for await (const rows of client.iterateStats({})) {\n assert.ok(rows.length > 0);\n batches++;\n }\n assert.equal(batches, 1);\n});\n\ntest(\"401 is reported as SuperwhisperApiError\", async () => {\n const failing = new SuperwhisperClient({\n token: \"sk-sw-bad\",\n fetch: (async () => new Response(\"Unauthorized: invalid token\", { status: 401 })) as unknown as typeof fetch,\n });\n await assert.rejects(() => failing.getDimensions(), SuperwhisperApiError);\n});\n"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-958ed26653f41e9a",
"tool_kind": "file_edit"
}Recorded tool result
{
"type": "tool_result",
"seq": 112,
"ts": "2026-11-19T04:03:09.527Z",
"turn": 1,
"output": {
"content": [
{
"text": "Successfully wrote 1842 bytes to /sandbox/repo/test/client.test.ts",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-958ed26653f41e9a",
"is_error": false,
"tool_kind": "file_edit"
}›Thinking…
I need to update the package.json to add a test script that runs Node with the experimental type-stripping flag on the test directory, and make sure the tsconfig includes the test files.
cd /sandbox/repo && python3 - <<'EOF'
import json,re
p='package.json'; d=json.load(open(p))
d['scripts']['test']='node --experimental-strip-types --test test/'
json.dump(d,open(p,'w'),indent=2); open(p,'a').write('\n')
t='tsconfig.json'; s=open(t).read().replace('"include": ["src", "demo"]','"include": ["src", "demo", "test"]')
open(t,'w').write(s)
EOF
npm test 2>&1 | tail -20not ok 1 - test
not ok 1 - test --- duration_ms: 65.157118 type: 'test' location: '/sandbox/repo/test:1:1' failureType: 'testCodeFailure' exitCode: 1 signal: ~ error: 'test failed' code: 'ERR_TEST_FAILURE' ... 1..1 # tests 1 # suites 0 # pass 0 # fail 1 # cancelled 0 # skipped 0 # todo 0 # duration_ms 73.607941
Recorded tool call
{
"type": "tool_call",
"seq": 115,
"ts": "2026-11-19T04:03:09.527Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cd /sandbox/repo && python3 - <<'EOF'\nimport json,re\np='package.json'; d=json.load(open(p))\nd['scripts']['test']='node --experimental-strip-types --test test/'\njson.dump(d,open(p,'w'),indent=2); open(p,'a').write('\\n')\nt='tsconfig.json'; s=open(t).read().replace('\"include\": [\"src\", \"demo\"]','\"include\": [\"src\", \"demo\", \"test\"]')\nopen(t,'w').write(s)\nEOF\nnpm test 2>&1 | tail -20"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-98463b084f927efd",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 116,
"ts": "2026-11-19T04:03:09.527Z",
"turn": 1,
"output": {
"content": [
{
"text": "not ok 1 - test\n ---\n duration_ms: 65.157118\n type: 'test'\n location: '/sandbox/repo/test:1:1'\n failureType: 'testCodeFailure'\n exitCode: 1\n signal: ~\n error: 'test failed'\n code: 'ERR_TEST_FAILURE'\n ...\n1..1\n# tests 1\n# suites 0\n# pass 0\n# fail 1\n# cancelled 0\n# skipped 0\n# todo 0\n# duration_ms 73.607941\n",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-98463b084f927efd",
"is_error": false,
"tool_kind": "shell"
}›Thinking…
I need to investigate why the test execution failed and run the file directly to see what the actual error is.
cd /sandbox/repo && node --experimental-strip-types --test test/client.test.ts 2>&1 | head -40
TAP version 13
TAP version 13 # Subtest: buildQuery flattens filters and drops empties ok 1 - buildQuery flattens filters and drops empties --- duration_ms: 1.112645 type: 'test' ... # Subtest: missing token throws ok 2 - missing token throws --- duration_ms: 0.492994 type: 'test' ... # Subtest: summary + stats + csv ok 3 - summary + stats + csv --- duration_ms: 26.600827 type: 'test' ... # Subtest: iterateStats stops at total_pages ok 4 - iterateStats stops at total_pages --- duration_ms: 0.616736 type: 'test' ... # Subtest: 401 is reported as SuperwhisperApiError ok 5 - 401 is reported as SuperwhisperApiError --- duration_ms: 0.858559 type: 'test' ... 1..5 # tests 5 # suites 0 # pass 5 # fail 0 # cancelled 0 # skipped 0 # todo 0 # duration_ms 181.25294
Recorded tool call
{
"type": "tool_call",
"seq": 119,
"ts": "2026-11-19T04:03:13.408Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cd /sandbox/repo && node --experimental-strip-types --test test/client.test.ts 2>&1 | head -40"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-bcf47b6e6d45b765",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 120,
"ts": "2026-11-19T04:03:13.408Z",
"turn": 1,
"output": {
"content": [
{
"text": "TAP version 13\n# Subtest: buildQuery flattens filters and drops empties\nok 1 - buildQuery flattens filters and drops empties\n ---\n duration_ms: 1.112645\n type: 'test'\n ...\n# Subtest: missing token throws\nok 2 - missing token throws\n ---\n duration_ms: 0.492994\n type: 'test'\n ...\n# Subtest: summary + stats + csv\nok 3 - summary + stats + csv\n ---\n duration_ms: 26.600827\n type: 'test'\n ...\n# Subtest: iterateStats stops at total_pages\nok 4 - iterateStats stops at total_pages\n ---\n duration_ms: 0.616736\n type: 'test'\n ...\n# Subtest: 401 is reported as SuperwhisperApiError\nok 5 - 401 is reported as SuperwhisperApiError\n ---\n duration_ms: 0.858559\n type: 'test'\n ...\n1..5\n# tests 5\n# suites 0\n# pass 5\n# fail 0\n# cancelled 0\n# skipped 0\n# todo 0\n# duration_ms 181.25294\n",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-bcf47b6e6d45b765",
"is_error": false,
"tool_kind": "shell"
}›Thinking…
The tests are passing, but running --test test/ as a directory is failing—likely because Node 22 spawns each .ts file in the directory but doesn't pass the necessary flags down to child processes. I should configure the test script to use glob patterns instead so it properly handles TypeScript files.
cd /sandbox/repo && python3 - <<'EOF'
import json
p='package.json'; d=json.load(open(p))
d['scripts']['test']='node --experimental-strip-types --test "test/*.test.ts"'
json.dump(d,open(p,'w'),indent=2); open(p,'a').write('\n')
EOF
npm test 2>&1 | tail -12; echo "--- tree ---"; find . -path ./.git -prune -o -type f -print | sortduration_ms: 0.787347
duration_ms: 0.787347 type: 'test' ... 1..5 # tests 5 # suites 0 # pass 5 # fail 0 # cancelled 0 # skipped 0 # todo 0 # duration_ms 177.657189 --- tree --- ./.gitignore ./README.md ./demo/usage-report.ts ./package.json ./src/client.ts ./src/fixtures.ts ./src/mock.ts ./test/client.test.ts ./tsconfig.json
Recorded tool call
{
"type": "tool_call",
"seq": 123,
"ts": "2026-11-19T04:03:13.408Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cd /sandbox/repo && python3 - <<'EOF'\nimport json\np='package.json'; d=json.load(open(p))\nd['scripts']['test']='node --experimental-strip-types --test \"test/*.test.ts\"'\njson.dump(d,open(p,'w'),indent=2); open(p,'a').write('\\n')\nEOF\nnpm test 2>&1 | tail -12; echo \"--- tree ---\"; find . -path ./.git -prune -o -type f -print | sort"
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-a32233ee6d3e4b0c",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 124,
"ts": "2026-11-19T04:03:18.862Z",
"turn": 1,
"output": {
"content": [
{
"text": " duration_ms: 0.787347\n type: 'test'\n ...\n1..5\n# tests 5\n# suites 0\n# pass 5\n# fail 0\n# cancelled 0\n# skipped 0\n# todo 0\n# duration_ms 177.657189\n--- tree ---\n./.gitignore\n./README.md\n./demo/usage-report.ts\n./package.json\n./src/client.ts\n./src/fixtures.ts\n./src/mock.ts\n./test/client.test.ts\n./tsconfig.json\n",
"type": "text"
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-a32233ee6d3e4b0c",
"is_error": false,
"tool_kind": "shell"
}›Thinking…
I need to update the README with instructions for running tests and note that while TypeScript type-checking isn't available due to npm registry restrictions, the test runner handles type stripping instead. Then I'll wrap up with a final summary covering the pricing model, manageability considerations, and any blockers we've identified.
File edits
1 file
ModifiedREADME.md+9−0View changes
/sandbox/repo/README.md
Replacement excerpt
+Tests (offline, ~0.2s):++```bash+npm test+```+## Using the client in your own code
Replacement excerpt
- No official JS/Python SDK is published; this repo is a hand-rolled client from the OpenAPI spec.+- `tsconfig.json` is included for editor/IDE type checking, but `npm i -D typescript` was blocked in this+ sandbox's registry, so `tsc --noEmit` isn't wired into `npm test`. Node's built-in type stripping+ (`--experimental-strip-types`) is what actually runs the code; `npm run demo` and `npm test` need no deps.
Source: edit · chatcmpl-tool-bad9963ddc7446ca
Recorded tool call
{
"type": "tool_call",
"seq": 127,
"ts": "2026-11-19T04:03:18.862Z",
"name": "edit",
"turn": 1,
"input": {
"path": "/sandbox/repo/README.md",
"edits": [
{
"newText": "Tests (offline, ~0.2s):\n\n```bash\nnpm test\n```\n\n## Using the client in your own code",
"oldText": "## Using the client in your own code"
},
{
"newText": "- No official JS/Python SDK is published; this repo is a hand-rolled client from the OpenAPI spec.\n- `tsconfig.json` is included for editor/IDE type checking, but `npm i -D typescript` was blocked in this\n sandbox's registry, so `tsc --noEmit` isn't wired into `npm test`. Node's built-in type stripping\n (`--experimental-strip-types`) is what actually runs the code; `npm run demo` and `npm test` need no deps.",
"oldText": "- No official JS/Python SDK is published; this repo is a hand-rolled client from the OpenAPI spec."
}
]
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-bad9963ddc7446ca",
"tool_kind": "file_edit"
}Recorded tool result
{
"type": "tool_result",
"seq": 128,
"ts": "2026-11-19T04:03:18.862Z",
"turn": 1,
"output": {
"content": [
{
"text": "Successfully replaced 2 block(s) in /sandbox/repo/README.md.",
"type": "text"
}
],
"details": {
"diff": " ...\n 61 \n 62 Without a token the live API returns `401 Unauthorized: invalid token` — the client surfaces that as a\n 63 `SuperwhisperApiError` with a hint.\n 64 \n+ 65 Tests (offline, ~0.2s):\n+ 66 \n+ 67 ```bash\n+ 68 npm test\n+ 69 ```\n+ 70 \n 65 ## Using the client in your own code\n 66 \n 67 ```ts\n 68 import { SuperwhisperClient } from \"./src/client.ts\";\n ...\n 112 no webhooks, no transcription endpoint.\n 113 - The CLI/MCP/extensions path is macOS-only and talks to the app's local database, so it can't be exercised\n 114 from a Linux CI box or container.\n 115 - No official JS/Python SDK is published; this repo is a hand-rolled client from the OpenAPI spec.\n+122 - `tsconfig.json` is included for editor/IDE type checking, but `npm i -D typescript` was blocked in this\n+123 sandbox's registry, so `tsc --noEmit` isn't wired into `npm test`. Node's built-in type stripping\n+124 (`--experimental-strip-types`) is what actually runs the code; `npm run demo` and `npm test` need no deps.",
"patch": "--- /sandbox/repo/README.md\n+++ /sandbox/repo/README.md\n@@ -61,8 +61,14 @@\n \n Without a token the live API returns `401 Unauthorized: invalid token` — the client surfaces that as a\n `SuperwhisperApiError` with a hint.\n \n+Tests (offline, ~0.2s):\n+\n+```bash\n+npm test\n+```\n+\n ## Using the client in your own code\n \n ```ts\n import { SuperwhisperClient } from \"./src/client.ts\";\n@@ -112,4 +118,7 @@\n no webhooks, no transcription endpoint.\n - The CLI/MCP/extensions path is macOS-only and talks to the app's local database, so it can't be exercised\n from a Linux CI box or container.\n - No official JS/Python SDK is published; this repo is a hand-rolled client from the OpenAPI spec.\n+- `tsconfig.json` is included for editor/IDE type checking, but `npm i -D typescript` was blocked in this\n+ sandbox's registry, so `tsc --noEmit` isn't wired into `npm test`. Node's built-in type stripping\n+ (`--experimental-strip-types`) is what actually runs the code; `npm run demo` and `npm test` need no deps.\n",
"firstChangedLine": 65
}
},
"run_id": "cmwn0u87x01fr0iocve1bql7q",
"tool_id": "chatcmpl-tool-bad9963ddc7446ca",
"is_error": false,
"tool_kind": "file_edit"
}›Thinking…
I'm ready to wrap this up with a final summary that covers what was built, the pricing structure, manageability considerations, and any blockers we identified. The key constraint to note is that while Superwhisper offers developer workflows like the hosted analytics API we used, it lacks a transcription API, and the CLI is limited to macOS and requires the app to be installed—neither of which is feasible in this Linux environment.
Done. Superwhisper does have a developer workflow I could act on, so I built against it — no local services, nothing long-running.
What I built (/sandbox/repo)
src/client.ts # typed client for the hosted REST API (zero deps, Node 18+ fetch)
src/mock.ts # injectable fetch serving fixtures → runs offline
src/fixtures.ts # canned responses matching the published OpenAPI schemas
demo/usage-report.ts # runnable example report
test/client.test.ts # 5 offline tests (node:test)
README.md, package.json, tsconfig.json
The hosted API is https://api.superwhisper.com (spec published at /api/v1/openapi.json). It's 3 read-only endpoints — GET /api/v1/stats/dimensions, /stats/summary, /stats (paginated, groupable, JSON or CSV) — auth is a bearer token sk-sw-.... The client wraps all three plus getStatsCsv() and an iterateStats() async pager, and flattens app_name: [...] into the API's filter[app_name]=a,b shape.
Verified runs:
npm run demo:mock→ full report output (summary, per-day table, filters, grouped query, CSV).npm test→ 5/5 pass in ~0.2s.- Live call with a fake token → real API answered
401 Unauthorized: invalid token, surfaced asSuperwhisperApiError. So the endpoint, auth scheme, and error path are confirmed against production, not just fixtures.
Pricing
Per-user subscription, not metered; one Pro license covers unlimited Macs/PCs + iPhone + Android.
| Plan | Price |
|---|---|
| Free | $0 — unlimited dictation on local Whisper models, vocabulary, replacements, ≤2 modes |
| Pro Monthly | $8.49 |
| Pro Annual | $84.99 (~17% off) |
| Pro Lifetime | $249.99 once |
All plans have identical features. Pro adds cloud models, file transcription, AI modes, realtime, speaker separation, Meetings, BYO API keys. New users get 3,000 free Pro words then fall back to Free. 40% off for verified students/educators/non-profits (request before buying). Enterprise is separate and seat-based (SSO/SCIM/MDM) — that's the tier the analytics API belongs to. 14-day refunds.
Is it easy for me to manage?
Partly — and it's worth being blunt about the split:
- Easy: the hosted analytics API. Small, stable, documented via OpenAPI, plain HTTPS GETs, testable offline with an injected fetch. That's what this example uses.
- Not manageable from here: the analytics API needs an Enterprise org token — I have no credentials, so live data stays blocked at 401 (handled, not fatal).
- Not actable at all in this environment: the CLI/MCP server and the agent extensions (
@superwhisper/pi,-claude-code,-codex) are macOS-only and read the desktop app's local database. This sandbox is Linux with no app installed, so the actual voice/dictation half of the product is out of reach. There is no hosted transcription API — dictation is app-side. - Minor blocker:
npm i -D typescriptfailed (registry restricted), sotsc --noEmitisn't wired in; Node's type stripping runs the code instead. Noted in the README.
If you want the voice loop rather than analytics, that has to happen on a Mac with the app installed — say the word and I'll write the macOS-side setup (CLI install + MCP wiring for your agent) as a script you run locally.
AX Fundamentals
23 checks. Open an area for details.
This check is a quick preview. Test more tasks and models with Gauge Agents.
Test your product with Gauge Agents