Open-source Grok Bot alternative with a virtual machine that bots can use
Talk shortcut (hold to talk from any app)
Hold ⌃⌥Space from any app, speak, let go. The words go to MausBot's "Quick asks" chat and a never-focused box at the bottom of the screen shows the reply.
The real hotkey, the microphone, window focus and Spaces are macOS behavior: the control surface cannot drive them, so this is not in the map in README. Verify them by hand on a packaged build, exactly as below.
Floor: automated checks
node --test electron/talk-*.node-test.mjs electron/home-window.node-test.mjs electron/desktop-prefs.node-test.mjs electron/preload.node-test.mjs electron/speech-helper-release.node-test.mjs
pnpm exec vitest run electron/speech.test.mjs electron/skin-overlay.test.mjs server/task-select.test.ts server/talk-server.e2e.test.ts src/lib/call-presence.test.ts src/components/TalkShortcutRow.test.ts --maxWorkers=1
pnpm typecheck && pnpm lint && pnpm i18n:check
They prove key parsing and registration, the key let go while home is My Cloud
and taken back when home is this computer again, the press/release state machine
with injected clocks and speech, the box's window flags, states, skin theme and
pinned display, the local-server ask (thread, owner header, send id, SSE follow,
needs-you, timeout, a 409 moved, a server still starting), preference storage,
the Settings row, scoped speech stop, the call-presence signal and the quiet
update waiting for a talk ask.
They do not prove the real hotkey, the microphone, that the box never takes
focus, that it shows over full-screen apps and other Spaces, or the release of
⌃⌥ after speech (no unit test covers that release path).
docs/verification/evidence/talk-shortcut/ holds the box page rendered in
headless Chrome for every state in the app's light and dark skins
(light-*.png, dark-*.png). Regenerate them with:
node scripts/talk-box-evidence.mjs # Chrome path as an argument or CHROME= when not in /Applications
It renders at the box's own size: a 400 px wide viewport as tall as the card
(56 to 240 px, the height render() returns, clamped as talkPanelBounds
does) at 2x, with the 56 px mascot, reduced motion (a still listening ring) and
a grey desktop behind the transparent page. Each skin is rendered with macOS's
appearance emulated the other way round, so a light card on a dark macOS shows
the box following the app's skin (render({state, text, theme})), not the
media query. reply-long is a 400-character reply cut with an ellipsis;
reply-wide is a reply of wide characters cut at ten lines, the tallest box.
Rendering by hand instead: pass theme, or the page falls back to the media
query, and Chrome's --blink-settings=preferredColorScheme=0 is dark and =1
light (the reverse of what it reads like); a --window-size wider than 400 px
or taller than the card shows a box the app never draws.
Setup
- A packaged build of the branch installed beside, never over, the installed
OpenMausBot (maintainers: the OMB2 side-by-side build). Never touch
/Applications/OpenMausBot.appor~/.openmausbot. - Launch with
OMB_DATA_DIR=$HOME/.openmausbot-testunless the check needs real bots. Only one running app may hold the key: quit any other MausBot first. - Use composer dictation once first so Microphone and Speech Recognition are granted.
By hand
- Settings row. Settings → General shows "Talk to MausBot from any app", on, "Hold ⌃⌥Space, speak, let go".
- Hold, speak, release in another app. In Safari's address bar: hold ⌃⌥,
tap Space, say "what can you do", let go of ⌃⌥ (not Space). Expect live
words, then the words send on the release (the path no unit test covers),
then the reply, bottom-centre of that display.
osascript -e 'tell application "System Events" to name of first application process whose frontmost is true'printsSafaribefore and after; the caret still blinks in Safari; the box never takes focus and the MausBot window never raises. - Hide timing. The box hides 12 s after the reply; with the pointer on it, it stays until the pointer leaves.
- Click opens the chat. Clicking it brings MausBot forward on the "Quick asks" chat; the chat open before the ask had not changed until then.
- Spaces and full screen. In a full-screen app and on another Space, the box shows there.
- No speech. Tap and let go without speaking: the box closes, no error.
- Voice already in use. During a voice call, and while composer dictation is on: "Voice is in use in MausBot"; the call or dictation carries on.
- Mic indicator off after every speech use (scoped speech stop). Start and stop composer dictation, take one push-to-talk call turn and one Live call turn: after each, the orange microphone indicator in the menu bar is off.
- Chat recreated. Delete the Quick asks chat, ask again: a new Quick asks chat.
- Other key presets. Switch to ⌃⇧Space: ⌃⌥Space does nothing in MausBot any more; ⌃⇧Space works and ends on letting go of ⌃ or ⇧. Repeat for ⌥⇧Space.
- Off. Turn it off: the key does nothing.
- Second keyboard layout. With a second input source enabled and System Settings → Keyboard → Keyboard Shortcuts → Input Sources → "Select next source in Input menu" on (⌃⌥Space): note whether Settings shows "⌃⌥Space is used by another app" or the press never arrives or switches the layout; either way the ⌃⇧Space and ⌥⇧Space presets must work.
- Dev loop.
pnpm dev:server,pnpm dev,pnpm dev:desktop: an ask reaches the dev server through Vite's/apiproxy, both the POST and the SSE stream (the reply arrives live, not only at the end). - Light and dark. Settings → Appearance → Theme: Light, then Dark, then System while switching macOS appearance. The box's colours, the warning and error text and the card height follow the app's theme, not macOS's (Dark with macOS light still gives a dark box; compare with the evidence PNGs). Long replies stop at 400 characters with an ellipsis, and the card grows to at most 240 px with its bottom edge showing (a Japanese reply is cut at ten lines).
- My Cloud home. After moving this computer's bots to My Cloud (window on
My Cloud's page): ⌃⌥Space does nothing in MausBot and another app can take
it (
talk-shortcut:statesays unavailable, so no Settings row). Come home to this computer again: the key works without a restart. A box still up when the move froze this computer says "MausBot lives on My Cloud now — talk to it there". A Quick asks chat link sent while My Cloud's page is shown does reach it aschat:open, and My Cloud has no such chat; with the key off there, no box makes one. - Server starting. Quit, relaunch and press at once, before the window loads: "MausBot is still starting. Try again in a moment."