Install
openclaw plugins install @local/browser-voice-gatewayBrowser voice gateway plugin for OpenClaw
openclaw plugins install @local/browser-voice-gatewaybrowser-voice-gateway is a browser and mobile client plugin for OpenClaw.
It gives OpenClaw a dedicated HTTPS web UI for:
It is designed so the user can open a web page on another device, authenticate that browser once, and use OpenClaw without exposing long-term provider API keys to the browser.
Voice home, Coast Glass theme:

OpenAI Realtime live response:

Voice mode selector:

Conversation history:

Settings drawer:

Voice home, Studio Slate theme:

This plugin now includes a few different documents for different audiences.
Current implemented features:
OpenAI Realtime
OpenAI Whisper
whisper-1 for STTtts-1 for spoken playbackGemini Live
Coast GlassStudio SlateGemini Live
This plugin keeps the important control plane inside OpenClaw.
OpenClaw owns:
The browser does not store or paste real OpenAI or Gemini API keys.
The browser only receives short-lived session/bootstrap material when needed.
This plugin expects the long-term provider keys to already exist inside OpenClaw.
Required providers:
openaigoogleThe real keys are resolved server-side from OpenClaw runtime auth/key-store support. They are not copied into the browser UI and they are not pasted by the user into the web page.
For OpenAI Realtime, the plugin does this:
POST /v1/realtime/client_secretsThis is implemented in:
For Gemini Live, the plugin does this:
This is implemented in:
This is the more secure browser pattern.
Why:
In short:
The plugin does use Google SDK code, but only on the server side for ephemeral token minting.
What is true today:
Why the browser SDK is not the live runtime path here:
So the current runtime design is:
not:
The main page is:
/browser-voice/Voice modes available there:
OpenAI RealtimeOpenAI WhisperGemini LiveThe separate chat page is:
/browser-voice/chatThe chat page is intentionally simpler:
openclaw.jsonThe JSON examples in this README use Linux absolute paths because this plugin was built and tested on Linux.
Use the same structure on your own machine, but change the path to match where your OpenClaw data directory lives.
The important idea is:
plugins.load.paths entry in openclaw.json must point at that folderLinux example:
/home/<you>/.openclaw/plugins/browser-voice-gatewaymacOS example:
/Users/<you>/.openclaw/plugins/browser-voice-gatewayWindows / WSL example:
/home/<you>/.openclaw/plugins/browser-voice-gatewayIf your OpenClaw directory is not under .openclaw, use the real directory for your installation. The examples here are only examples of shape.
Place this directory at:
/home/<you>/.openclaw/plugins/browser-voice-gateway/If you are packaging it for GitHub, the plugin directory should contain only the plugin source and docs. It should not contain scratch files or unused debug assets.
From inside the plugin directory, run:
cd /home/<you>/.openclaw/plugins/browser-voice-gateway
npm install
This plugin now owns its own Gemini-related dependencies. A fresh download should not rely on gemini-provisioner being present just to get @google/genai or ws.
Do this before exposing the plugin to any real network.
The example access code in this plugin is generic. You should replace it with your own value in openclaw.json.
The setting is:
plugins.entries.browser-voice-gateway.config.browserAccessCodeExample:
"browserAccessCode": "replace-this-with-your-own-secret-code"
Important:
Practical length rule from the current code:
There is no stricter format requirement in the plugin code beyond being a non-empty string, so you can use letters, numbers, and punctuation if you want.
This plugin expects OpenClaw auth/key-store support for:
openaigoogleThe plugin resolves provider keys through OpenClaw runtime auth. The browser does not ask the user for provider API keys.
For the current text-chat, Whisper reasoning, and summary path, the OpenClaw default model should be an OpenAI model.
openclaw.jsonFile:
~/.openclaw/openclaw.jsonYou need to update:
toolsplugins.allowplugins.load.pathsplugins.entries.browser-voice-gatewayThe plugin gets loaded in two places:
plugins.load.paths
plugins.entries.browser-voice-gateway
This is a safe example of the relevant shape. You do not need to replace your whole config with this, but your file needs equivalent blocks.
{
"agents": {
"defaults": {
"model": {
"primary": "openai/gpt-4o-2024-11-20"
}
}
},
"tools": {
"profile": "full",
"deny": [
"sessions_spawn",
"sessions_send",
"agents_list"
]
},
"plugins": {
"allow": [
"browser-voice-gateway"
],
"load": {
"paths": [
"/home/<you>/.openclaw/plugins/browser-voice-gateway"
]
},
"entries": {
"browser-voice-gateway": {
"enabled": true,
"config": {
"enabled": true,
"routeBase": "/browser-voice",
"browserAccessCode": "replace-this-with-your-own-secret-code",
"browserSessionTtlHours": 720,
"defaultProvider": "openai",
"openaiModel": "gpt-4o-mini-realtime-preview",
"openaiVoice": "alloy",
"geminiModel": "gemini-2.5-flash-native-audio-preview-12-2025",
"sessionKey": "agent:main:browser-voice",
"serve": {
"enabled": true,
"bind": "0.0.0.0",
"port": 19443,
"publicHost": "YOUR-LAN-IP-OR-HOSTNAME",
"autoSelfSigned": true
}
}
}
}
}
}
If the brackets feel confusing, use this rule:
Important:
openclaw.json must stay valid JSON{ must have a matching }[ must have a matching ]The safest way to edit it is:
plugins objectIf you already have other plugins configured, do not delete their blocks. Add browser-voice-gateway next to them inside the existing plugins.entries object.
toolsThis is a top-level block.
"tools": {
"profile": "full",
"deny": [
"sessions_spawn",
"sessions_send",
"agents_list"
]
}
This plugin reads the same global OpenClaw tools policy. That means browser sessions inherit the normal tool profile, while the denied tools above stay blocked.
plugins.allowInside the top-level plugins object:
"plugins": {
"allow": [
"browser-voice-gateway"
]
}
plugins.load.pathsInside the same plugins object:
"plugins": {
"load": {
"paths": [
"/home/<you>/.openclaw/plugins/browser-voice-gateway"
]
}
}
This is the line that tells OpenClaw where the plugin folder is.
If you are on another machine, this path should be the absolute path to your own browser-voice-gateway folder.
plugins.entriesInside the same plugins object:
"plugins": {
"entries": {
"browser-voice-gateway": {
"enabled": true,
"config": {
"enabled": true,
"routeBase": "/browser-voice",
"browserAccessCode": "replace-this-with-your-own-secret-code",
"browserSessionTtlHours": 720,
"defaultProvider": "openai",
"openaiModel": "gpt-4o-mini-realtime-preview",
"openaiVoice": "alloy",
"geminiModel": "gemini-2.5-flash-native-audio-preview-12-2025",
"sessionKey": "agent:main:browser-voice",
"serve": {
"enabled": true,
"bind": "0.0.0.0",
"port": 19443,
"publicHost": "YOUR-LAN-IP-OR-HOSTNAME",
"autoSelfSigned": true
}
}
}
}
}
This is the block that actually enables the plugin and gives it its runtime config.
If you already have other plugin entries, add browser-voice-gateway alongside them inside the same plugins.entries object.
browserAccessCode
browserSessionTtlHours
defaultProvider
openaiModel
OpenAI RealtimeopenaiVoice
geminiModel
sessionKey
agent:main:browser-voice:<conversationId>serve.bind
0.0.0.0 makes the HTTPS server reachable from other devices on the networkserve.publicHost
serve.port
serve.autoSelfSigned
After installing dependencies and updating openclaw.json, restart the gateway:
openclaw gateway restart
Then open:
https://<publicHost>:<port>/browser-voice/Example:
https://<your-host-or-ip>:19443/browser-voice/This plugin serves HTTPS because mobile browsers require secure contexts for microphone access.
Important distinction:
If the certificate is self-signed, the page may still say Not Secure or the browser may behave inconsistently with microphone/audio access, especially on iPhone.
What that means in practice:
Recommended first test browser:
Not recommended for initial testing:
Why Safari is not recommended first:
Important note:
For OpenAI Whisper, iPhone silent mode matters.
What was observed during testing:
So if OpenAI Whisper appears to respond in text but you hear nothing on iPhone:
This was a browser/device playback issue, not a failed STT/TTS response generation issue.
If the phone/browser does not trust the certificate:
Not SecureThe What Is Trusted HTTPS? button in Settings explains this in the UI.
In practice:
This section is the actual plugin flow, not a hand-wavy overview.
plugins.entries.browser-voice-gateway.config.browserAccessCodeHttpOnly cookie.~/.openclaw/browser-voice/trusted-browsers.jsonAfter that, the same browser usually does not need the code again until the cookie expires or is cleared.
/api/session/start./api/bootstrap/openai.This is the turn-based audio mode.
OpenAI Whisper.Start./api/chat/turn with mode: openai_stt_tts.whisper-1tts-1End explicitly closes the Whisper session on the page.Gemini is intentionally not raw browser-to-Gemini WebSocket on iPhone/WebKit because that path was unreliable.
The implemented shape is:
/api/session/start./browser-voice/ws/gemini-liveThere are three important storage layers.
Stored at:
~/.openclaw/browser-voice/trusted-browsers.jsonThis tracks:
Stored at:
~/.openclaw/browser-voice/conversations.jsonThis tracks:
Stored in OpenClaw session files under:
~/.openclaw/agents/main/sessions/The plugin mirrors transcript entries into the same OpenClaw session-style storage used by the rest of the system.
This full transcript is the source of truth.
Continuity is device-aware by default.
LatestBrowse HistoryThese are intentionally not the same thing.
Visible UI history:
Live Response when a conversation is selectedModel context injection:
This keeps the UI useful for the human while keeping provider context smaller and cleaner.
Voice sessions use summary generation.
Text chat does not currently use this summarization flow.
On voice session end, the plugin:
Title:Summary:In Browse History, the user can use:
Summarize SelectedThat is for older voice conversations that were created before summary support existed or for any conversation that needs to be refreshed manually.
The stored summary is used for:
URL:
/browser-voice/Controls:
Voice Mode
OpenAI RealtimeOpenAI WhisperGemini LiveChat
Latest
New
Browse History
Live Response
Settings
Logs
Whisper has a different interaction model.
Before session start:
StartAfter start:
End appears on the other side of the status bubblePlay Last Reply
End
URL:
/browser-voice/chatBehavior:
Latest, New, and Browse History behave the same way as on the voice pageSeparate pages:
/browser-voice/trace/browser-voice/session-logIn-page diagnostics:
Logs button on the voice pageLog Display in SettingsThe plugin includes:
Coast GlassStudio SlateTheme selection is stored in browser local storage and applies to both the voice and chat pages.
The OpenClaw default model from:
agents.defaults.model.primaryis used for:
It is not used for:
Current important limitation:
Browser sessions use the OpenClaw tool bridge.
The plugin exposes:
openclaw_toolwrite_fileActual tool availability still follows the global OpenClaw tools policy.
openclaw gateway install --forceOpenAI Realtime and confirm live voice works.OpenAI Whisper and confirm turn-based voice works.Gemini Live and confirm context continuity works on a summarized conversation.Browse History.Live Response.Summarize Selected on an older voice conversation and confirm it updates.This project is intended to be source-available for personal and noncommercial use.
Repository files:
Practical summary:
If you publish this on GitHub, do not use GitHub's auto-generated license picker for this repo. Create the repo with No license and commit the included LICENSE file yourself.