Building a Voice Interface for OpenClaw Agents Using iPhone Shortcuts

A developer on r/openclaw shared their setup for creating a voice interface similar to Siri for OpenClaw agents. The system combines a local Python server with iPhone Shortcuts to enable voice interaction with OpenClaw agents.
System Architecture
The setup requires enabling OpenAI HTTP mode on the OpenClaw gateway and LAN. The core components are:
- Python Server: Originally a script that listened for keywords via microphone, performed speech-to-text, sent text to OpenClaw API, received responses, and performed text-to-speech using the user's voice. This was adapted into a basic server with an endpoint that can receive text from anywhere, send it to OpenClaw, and return the response.
- iPhone Shortcut: Handles speech-to-text and text-to-speech locally on the iPhone. The shortcut workflow includes:
- Dictate text (records voice to text)
- Get contents of URL: url/ask with dictated text in body (sends text to be routed to OpenClaw agent for response)
- Dictionary: Get value for reply in contents of URL (store response text)
- Speak: dictionary value (text-to-speech output)
Implementation Details
The developer runs this through WireGuard and operates entirely on LAN or through VPN when outside the local network. They emphasize a critical security consideration: "Be careful opening an endpoint for your OpenClaw agent to respond through. It can allow anyone to access your agent (computer). Use auth token."
The approach offloads speech processing to the iPhone while keeping the OpenClaw agent interaction centralized through the Python server endpoint. This allows for voice interaction with OpenClaw agents from anywhere while maintaining security through VPN and authentication tokens.
📖 Read the full source: r/openclaw
👀 See Also

Developer builds 6 iOS apps in 3 months using Claude Code, generates revenue
A developer used Claude Code to build and publish 6 iOS utility apps in 3 months, focusing on solving small real problems rather than perfection. The apps are now generating daily usage and revenue.

A Prompt Pipeline Demonstrates Meta-Programming Properties
A developer built a four-stage prompt pipeline for an Electron app that structurally resembles a programming language, featuring typed contracts, control flow, and automatic documentation. The system fixed 17 bugs and refactored 1,218 lines of code in one day.

Graduate Student Uses Claude to Build AI Image Detection Experiment
A graduate student at The New School collaborated with Claude to build a website called InPixelsWeTrust.org that tests whether users can distinguish real photos from AI-generated images in 6 rounds with 10-second decisions.

OpenClaw Agent Burned $20 in API Tokens Due to Web Scraping Context Bloat
A developer building an OpenClaw agent to monitor financial sites accidentally consumed $20 worth of API tokens in a few hours by fetching Yahoo Finance pages that included 609,000 tokens of extraneous HTML like nav bars and cookie banners in the context window.