Forked from VisionClaw
A multi-mode AI assistant that works with Meta Ray-Ban smart glasses, iPhone camera, or just voice. It sees what you see, hears what you say, and takes actions on your behalf.
Built on Meta Wearables DAT SDK + Gemini Live API + OpenClaw.
- ποΈ Real-time voice: Bidirectional audio via Gemini Live (native audio, not speech-to-text)
- π Smart glasses: See through Meta Ray-Ban camera, respond in real-time
- π± iPhone camera: Visual AI without glasses
- π Audio-only mode: Voice conversations with AirPods, speakers, or built-in mic
- π§ Action execution: Messaging, web search, smart home, notes, and more via OpenClaw
- π Background mode: Conversation continues when you lock your phone or switch apps
- ποΈ Live Activity: Session status on lock screen and Dynamic Island
- βοΈ Configurable: xcconfig for builds, in-app settings for runtime changes
- π§ Setup wizard: First-launch walkthrough, no code editing required
NixClaw started from a conversation with Nix, my personal OpenClaw agent. I was using VisionClaw to stream video from Meta Ray-Ban glasses to Gemini. Great for real-time voice + vision, but it had two limitations: no way to call your agent by name and route actions through a tool call, and the app had to stay in the foreground at all times.
Meanwhile, Nix could send messages, search the web, manage my lists, control smart home devices, and more. But it had no eyes or ears.
NixClaw bridges the two. I added an execute tool that lets Gemini call your OpenClaw agent by name, routing actions through the gateway. I also added background audio mode so the conversation keeps running when you lock your phone or switch apps. The name is just Nix + OpenClaw: the AI assistant that can see, hear, and act.
Choose your mode and talk:
- Smart Glasses: Gemini sees through your Meta Ray-Ban camera and responds in real-time
- Audio Only: Voice conversations using any audio device (AirPods, speakers, built-in mic), continues in background
- iPhone Camera: Use your iPhone camera for visual AI without glasses
Example commands:
- "What am I looking at?": Gemini sees through your camera and describes the scene
- "Add milk to my shopping list": delegates to OpenClaw, which adds it via your connected apps
- "Send a message to John saying I'll be late": routes through OpenClaw to WhatsApp/Telegram/iMessage
- "Search for the best coffee shops nearby": web search via OpenClaw, results spoken back
Key pieces:
- Gemini Live β real-time voice + vision AI over WebSocket (native audio, not STT-first)
- OpenClaw β local gateway that gives Gemini access to 56+ tools and all your connected apps
- Three modes β glasses (video + audio), iPhone camera (video + audio), audio-only (runs in background)
NixClaw is designed to work with an OpenClaw agent. Without it, you get voice + vision but no ability to take actions.
Follow the OpenClaw setup guide to install and configure your agent. Make sure the gateway is enabled:
In ~/.openclaw/openclaw.json:
{
"gateway": {
"port": 18789,
"bind": "lan",
"auth": {
"mode": "token",
"token": "your-gateway-token-here"
},
"http": {
"endpoints": {
"chatCompletions": { "enabled": true }
}
}
}
}Key settings:
bind: "lan": exposes the gateway on your local network so your iPhone can reach itchatCompletions.enabled: true: enables the/v1/chat/completionsendpoint (off by default)auth.token: the token your iOS app will use to authenticate
Start the gateway:
openclaw gateway restartVerify it's running:
curl http://localhost:18789/healthgit clone https://github.com/arniesaha/NixClaw.git
cd NixClaw
open NixClaw.xcodeprojCopy the template config:
cp Config/NixClaw.xcconfig Config/Nix.xcconfigEdit Config/Nix.xcconfig and fill in your values:
GEMINI_API_KEY = your-gemini-api-key
DEFAULT_OPENCLAW_SCHEME = http
DEFAULT_OPENCLAW_HOSTNAME = Your-Mac.local
DEFAULT_OPENCLAW_PORT = 18789
DEFAULT_OPENCLAW_TOKEN = your-gateway-token-here
Get a free Gemini API key at Google AI Studio.
To find your Mac's hostname: System Settings > General > Sharing, shown at the top (e.g., Johns-MacBook-Pro.local).
Note: The scheme and hostname are separate because
//in URLs is interpreted as a comment by the xcconfig parser.
Then in Xcode, set the configuration file: Project > Info > Configurations > set all to Nix.xcconfig.
Alternatively, skip the xcconfig step. The app shows a setup wizard on first launch where you can enter everything.
Select your iPhone as the target device and hit Run (Cmd+R).
From the home screen, choose your mode:
Audio Only:
- Tap "Audio Only" to start a voice conversation using your current audio device
- Talk to the AI. No camera needed, keeps running in background
iPhone Camera:
- Tap "iPhone Camera" to use your iPhone's back camera
- Talk to the AI. It can see through your iPhone camera
With Meta Ray-Ban glasses:
First, enable Developer Mode in the Meta AI app:
- Open the Meta AI app on your iPhone
- Go to Settings (gear icon, bottom left)
- Tap App Info
- Tap the App version number 5 times to unlock Developer Mode
- Go back to Settings β you'll now see a Developer Mode toggle. Turn it on.
Then in NixClaw:
- Tap "Connect Glasses" in the app
- Tap the AI button for voice + vision conversation
All source code is in NixClaw/:
| File | Purpose |
|---|---|
Config/AppConfig.swift |
Centralized runtime config (UserDefaults > Info.plist > fallback) |
Config/SetupWizardView.swift |
First-launch setup wizard |
Config/SettingsView.swift |
Runtime settings UI |
Gemini/GeminiConfig.swift |
Model config, system prompt (reads from AppConfig) |
Gemini/GeminiLiveService.swift |
WebSocket client for Gemini Live API |
Gemini/AudioManager.swift |
Mic capture (PCM 16kHz) + audio playback (PCM 24kHz) |
Gemini/GeminiSessionViewModel.swift |
Session lifecycle, tool call wiring, transcript state |
OpenClaw/ToolCallModels.swift |
Tool declarations, data types |
OpenClaw/OpenClawBridge.swift |
HTTP client for OpenClaw gateway |
OpenClaw/ToolCallRouter.swift |
Routes Gemini tool calls to OpenClaw |
iPhone/IPhoneCameraManager.swift |
AVCaptureSession wrapper for iPhone camera mode |
Background/BackgroundModeManager.swift |
App lifecycle and background mode transitions |
- Input: iPhone mic -> AudioManager (PCM Int16, 16kHz mono, 100ms chunks) -> Gemini WebSocket
- Output: Gemini WebSocket -> AudioManager playback queue -> iPhone speaker
- iPhone mode: Uses
.voiceChataudio session for echo cancellation + mic gating during AI speech - Glasses mode: Uses
.videoChataudio session (mic is on glasses, speaker is on phone β no echo)
- Glasses: DAT SDK
videoFramePublisher(24fps) -> throttle to ~1fps -> JPEG (50% quality) -> Gemini - iPhone:
AVCaptureSessionback camera (30fps) -> throttle to ~1fps -> JPEG -> Gemini
Gemini Live supports function calling. This app declares a single execute tool that routes everything through OpenClaw:
- User says "Add eggs to my shopping list"
- Gemini speaks "Sure, adding that now" (verbal acknowledgment before tool call)
- Gemini sends
toolCallwithexecute(task: "Add eggs to the shopping list") ToolCallRoutersends HTTP POST to OpenClaw gateway- OpenClaw executes the task using its 56+ connected skills
- Result returns to Gemini via
toolResponse - Gemini speaks the confirmation
- iOS 17.0+
- Xcode 15.0+
- Gemini API key (get one free)
- OpenClaw running on your Mac
- Meta Ray-Ban glasses (optional β use iPhone camera or audio-only mode)
"Gemini API key not configured": Enter your API key in the setup wizard or in Settings.
OpenClaw connection timeout: Make sure your iPhone and Mac are on the same Wi-Fi network, the gateway is running (openclaw gateway restart), and the hostname in your config matches your Mac's Bonjour name.
Echo/feedback in iPhone mode: The app mutes the mic while the AI is speaking. If you still hear echo, try turning down the volume.
Gemini doesn't hear me: Check that microphone permission is granted. The app uses aggressive voice activity detection, so speak clearly and at normal volume.
Using NixClaw away from home: The default setup uses your local network. For remote access, you can either use Tailscale (add an ATS exception in Info.plist for HTTP over Tailscale IPs) or expose your gateway via Cloudflare Tunnel for HTTPS access from anywhere.
Background audio stops after a while: iOS may suspend background audio if no sound is playing. The app uses background audio mode to stay alive, but extended silence may cause iOS to reclaim resources. Speak or tap the screen periodically to keep the session active.
For DAT SDK issues, see the developer documentation or the discussions forum.
NixClaw is a fork of VisionClaw with these additions:
| Feature | VisionClaw | NixClaw |
|---|---|---|
| Voice + Vision | β | β |
| OpenClaw integration | β Optional | β Built-in with named agent routing |
| Background audio | β | β |
| Live Activity / Dynamic Island | β | β |
| Configurable (xcconfig) | β | β |
| Setup wizard | β | β |
| In-app settings | β | β |
This source code is licensed under the license found in the LICENSE file in the root directory of this source tree.



