rayl15/OpenVision
Über uns
Open-source iOS app connecting Meta Ray-Ban smart glasses to AI — 5 backends (on-device MLX models, Apple Intelligence, OpenAI, Gemini Live, OpenClaw), on-device neural voice, face recognition & live web search. Private and offline-capable.
Web- und App-EntwicklungWhat you can do
- Instant Translation - Point at a menu or sign abroad and get real-time translation
- Hands-Free Cooking - "What's the next step?" while your hands are covered in dough
- Smart Shopping - "Is this a good deal?" - get price comparisons and reviews
- Travel Guide - "Tell me about this building" - instant history and facts
Gemessener Sternzuwachs
- in 24h
- +3
- in 7 days
- +16
- in 15 days
- +39
- in 1 month
- +55
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
Original
OpenVision
The open-source iOS app connecting Meta Ray-Ban smart glasses to AI assistants — cloud or fully on-device.
Your glasses. Your AI. Your rules.
Demo

What Can You Do?
"Ok Vision, what am I looking at?"
| Use Case | Example |
|---|---|
| Instant Translation | Point at a menu or sign abroad and get real-time translation |
| Hands-Free Cooking | "What's the next step?" while your hands are covered in dough |
| Smart Shopping | "Is this a good deal?" - get price comparisons and reviews |
| Travel Guide | "Tell me about this building" - instant history and facts |
| Accessibility | Describe surroundings, read text aloud, identify objects |
| Meeting Notes | "Ok Vision, start taking notes" — transcribed on your phone (Hindi and Hinglish too), then a summary with decisions and action items from your AI backend |
| Remember People | "Remember this person is John from Marketing" |
| Learning | "What plant is this?" - identify flora, fauna, landmarks |
| DIY Helper | "How do I fix this?" - show the problem, get step-by-step help |
| Fitness Coach | "Is my form correct?" - real-time posture feedback |
With OpenClaw's 56+ tools: Send emails, control smart home, set reminders, search the web - all hands-free through your glasses.
Features
Seven AI Backends — Cloud or Fully On-Device
- Local (MLX): A choice of on-device models via Apple MLX — Qwen 2.5 (0.5B/3B), Gemma 2 2B, Gemma 4 E2B, SmolVLM2 2.2B — so you can trade capability for memory/speed. Private, offline, zero API cost. Pick SmolVLM2 to unlock on-device vision — photo Q&A and a fully-offline live video mode (see below).
- Apple Intelligence: Apple's on-device Foundation Model (iOS 26+). No download, no memory pressure (OS-managed), private and offline. Uses guided generation + Apple's native tool-calling.
- OpenClaw: Wake word activation, 56+ tools, task execution via WebSocket
- Gemini Live: Real-time voice + vision with native audio streaming
- OpenAI: GPT-4o text + vision over the Chat Completions API — works with any OpenAI-compatible endpoint (OpenRouter, Groq, local servers, etc.). Also drives live video via the Realtime API (
gpt-realtime) — continuous voice + camera frames (see below). No API key? Sign in with your ChatGPT subscription instead (text + photos; live video needs a key). - Grok: xAI Grok text + vision over xAI's API, with an xAI API key or by signing in with your SuperGrok subscription. Same web search and productivity tools as OpenAI.
- Hermes: your own Hermes Agent server, reached over the internet with its API key or by signing in to its web UI with your username and password. Hermes answers with its own tools, memory and skills, sees photos from the glasses, asks before risky commands (you answer yes or no), and runs its slash commands by voice. The username and password option uses the Hermes Desktop app's protocol, which isn't a public API and can change between Hermes versions; the API key is the stable option.
Live Video — Real-Time Voice + Vision
Say "Ok Vision, start video stream" to enter a live mode where the glasses camera stays on and the AI answers questions about what you're seeing. Ask freely — no wake word between questions — until you say "stop video". Live video routes to whichever backend you've selected:
- Gemini Live — native continuous audio + 1fps video (cloud).
- OpenAI — the Realtime API (
gpt-realtime): streaming voice + camera frames over WebSocket. Uses the same OpenAI key/base URL you already set (so OpenAI-compatible gateways work too). - Local (SmolVLM2) — fully on-device live video: Apple speech-to-text in, on-device SmolVLM2 answers on the latest frame, spoken back with your chosen voice. No cloud, no cost, works with no signal.
On-Device Photos (SmolVLM2)
With SmolVLM2 selected as your local model, "Ok Vision, take a photo and tell me what this is" captures a frame from the glasses and answers entirely on-device — nothing leaves the phone. Other local models stay text-only and hand camera questions to a cloud backend. (Images are resized on-device to keep the vision encoder within iOS memory limits.)
Natural Voices — On-Device or Cloud
- Kokoro: a natural, offline, private voice (Kokoro-82M) running on-device via MLX.
- Grok (xAI, 28 multilingual voices) and OpenAI (
gpt-4o-mini-tts, 13 voices) cloud voices. Grok works with your SuperGrok sign-in or an xAI key; OpenAI needs an API key with credits. - If a cloud voice can't read a sentence (rate limit, timeout, no network), that sentence is spoken in the Apple voice instead of being skipped, and after two failures in a row the rest of the reply is too.
- Pick one from the Speech Engine dropdown; every voice list has a ▶ button to hear a sample before choosing.
- Apple's system voice stays the default (with Premium/Enhanced voice support).
Agentic Web Search — Real Live Information
- The models search the web whenever they're unsure or asked about current things — news, weather, prices, scores — and never answer "I can't access real-time data" without trying.
- Tavily (free tier) returns real live content for the model to summarize; DuckDuckGo is the keyless fallback.
- Smart flow: local models reformulate + retry a weak query; the OpenAI and Grok backends run a real function-calling loop (call
web_search→ refine → answer).
Conversation Memory
- Multi-turn context on the on-device, OpenAI and Grok backends (Hermes keeps one chat per conversation): "What's the capital of France?" → "What's its population?" just works.
- Bounded per session so local memory stays safe; Apple keeps context via a reused native session.
Hands-Free Productivity Tools
- Run real actions by voice: timers, Pomodoro sessions, reminders (Apple Reminders), calendar events (read today/upcoming, add), notes (auto-tagged with place + time), and copy to clipboard.
- Built on stable Apple frameworks (EventKit, UserNotifications, CoreLocation, UIPasteboard) — deterministic, no hallucination surface.
- Pixel-perfect times: the tool does the date math, not the model. Say "remind me at 6 PM" and it lands at exactly 6:00 PM — even on the tiny on-device model.
- One tool registry, five backends: OpenAI, Grok and Gemini Live (function-calling), Apple Intelligence (
Toolprotocol), and on-device Gemma 4 (JSON tool-calls) all share the same tools. (Hermes and OpenClaw bring their own.) - See docs/native-tools.md for the full design.
Meeting Notes — Transcribed on Your Phone, Summarised by Your AI
- Say "Ok Vision, start taking notes" (or tap Start in the Meetings tab). Put the phone on the table and talk; say "stop taking notes" when you're done.
- Audio and transcription stay on the phone. It uses Apple's on-device SpeechAnalyzer on iOS 26+ (long-form, no time limit), falling back to on-device speech recognition for English on older systems. Audio is never uploaded.
- Where the transcript goes for the summary: to your current AI backend. With Apple Intelligence or Local (MLX) that's on the phone too. With OpenAI (or the OpenAI-compatible server set as its base URL), Grok or Gemini, the transcript text is sent to that provider — even if the request fails and Apple Intelligence ends up writing the notes. Hermes and OpenClaw never receive it; Apple Intelligence writes their summaries.
- The spoken recap (a sentence of the summary, the counts and the first action item) is read by your Speech Engine. Apple or Kokoro keep it on the phone; a cloud voice (Grok, OpenAI) receives that text. For a meeting that never leaves the phone, use Apple Intelligence or Local (MLX) with the Apple or Kokoro voice.
- Hindi, Hinglish and 10 more Indian languages. Pick a language in Settings → Voice → Meeting Notes. Hinglish uses Apple's multilingual Indian model, so meetings that switch between Hindi and English mid-sentence come out as one transcript. Hindi and Hinglish have their own stop phrases ("नोट्स बंद करो", "notes band karo"). The language's speech model downloads once, with progress shown.
- Summary with decisions and action items, written by your current AI backend (OpenAI, Grok, Gemini, Local MLX or Apple Intelligence; Hermes and OpenClaw fall back to Apple Intelligence). Mixed-language meetings get English notes; Apple Intelligence can't write Hindi, so it writes those in English too. A short recap is read aloud.
- The Meetings tab: live transcript and timer while recording, open action items across meetings, past meetings grouped by day, search, share, and Add to Reminders for any action item.
- Ask about them later on any tool-calling backend: "What did we decide in this morning's meeting?", "What are my action items?"
- Built for long meetings: saved every 30 seconds (a crash keeps the transcript), a watchdog restarts the recognizer if it stalls, it keeps recording with the phone locked, and if the summary needs on-device AI it's written automatically the next time you open the app. Long meetings are summarised in parts sized to the model's real context window (8K tokens for Apple Intelligence on iOS 27).
- See docs/meeting-notes.md for the design.
On-Device Face Recognition (Apple Vision)
- Teach it faces hands-free: "Ok Vision, remember this person as Sara"
- Recognize them later: "Ok Vision, who is this?"
- Runs entirely on-device (Apple Vision
computeDistance) — no cloud, no photos leave your phone - Intent is parsed by the on-device model (agentic) — any phrasing works, and it only triggers for a person actually in view
Smart Voice Control
- Reliable wake word activation ("Ok Vision") for privacy — primed recognition + self-restart so it keeps listening (survives idle, replies, and glasses off/on)
- Barge-in support - interrupt AI anytime by saying "Ok Vision"
- Conversation mode - follow-up questions without wake word
- "Ok Vision stop" - stop AI mid-speech
- Audio routes correctly whether you're using the glasses or the phone alone (loud speaker, not the earpiece)
On-Device Model Management
- Pick a local model, download it on demand, and delete it to reclaim storage anytime from Settings — swap between a tiny 0.5B model and a larger one as you like.
Glasses Integration
- Photo capture on voice command ("take a photo")
- Live video streaming to Gemini (1fps)
- Seamless glasses registration via Meta AI app
Production-Ready
- Auto-reconnect with exponential backoff (12 attempts)
- Network monitoring (auto-pause on WiFi drop)
- App lifecycle handling (suspend/resume connections)
- Secure credential storage
Zero Hardcoding
- All API keys configurable in-app
- No code changes needed to use
- Example config files included
Screenshots
| Screen | Description |
|---|---|
| Voice Assistant | Tap the orb or say "Ok Vision" — live transcripts, distinct listening/thinking/speaking states |
| Settings | Configure AI backend, web search, glasses, voice control, and advanced options |
| AI Backends | Choose Local (MLX), Apple Intelligence (on-device), OpenClaw (tools), Gemini Live (low latency), OpenAI, Grok, or Hermes |
| Local Models | Download and manage on-device models (Qwen, Gemma, SmolVLM2, FastVLM) with real sizes and one-tap switching |
Quick Start
Prerequisites
- macOS with Xcode 15+
- Physical iOS 18+ device (simulator doesn't support Bluetooth; on-device MLX models need iOS 18)
- Meta Ray-Ban smart glasses
- Meta Developer account for glasses registration
- An AI backend — one of:
- Local (MLX) — no account/key needed; a choice of on-device models (Bonsai 8B, Qwen 2.5, Gemma, SmolVLM). Runs on a recent iPhone (e.g. 15 Pro/16/17)
- Apple Intelligence — no key or download; needs iOS 26+ on an Apple-Intelligence device (iPhone 15 Pro and newer)
- OpenClaw instance
- Gemini API key
- OpenAI API key (or any OpenAI-compatible endpoint), or a ChatGPT Plus/Pro subscription
- A SuperGrok subscription or xAI API key
- A Hermes Agent server
Step 1: Clone & Configure
git clone https://github.com/rayl15/OpenVision.git
cd OpenVision
# Copy config templates
cp Config.xcconfig.example Config.xcconfig
cp OpenVision/Config/Config.swift.example OpenVision/Config/Config.swift
Step 2: Get Meta Credentials
- Go to the Wearables Developer Center and sign in
- Create an organization and an app (project), and add the Meta Wearables product
- In the project's Configuration, fill in your Apple Team ID and turn on Camera access with a short reason. Without these the glasses end every session with "Device unavailable"
- Copy your App ID and Client Token
The portal shows code snippets for adding these to an app; you don't need them. The project passes the values from Config.xcconfig (step 3) into Info.plist for you. Details: SETUP.md §2.4.
Step 3: Edit Config.xcconfig
# Your Apple Team ID (from Xcode or Apple Developer Portal)
DEVELOPMENT_TEAM = ABC123XYZ
# Your app's bundle identifier
PRODUCT_BUNDLE_IDENTIFIER = com.yourname.openvision
# Meta App ID from developer console
META_APP_ID = 1234567890
# Client Token - MUST be in this format: AR|APP_ID|TOKEN
CLIENT_TOKEN = AR|1234567890|abcdef123456789
# URL scheme for Meta AI callback
APP_LINK_URL_SCHEME = openvision
Step 4: Build & Run
brew install xcodegen # one-time
xcodebuild -downloadComponent MetalToolchain # one-time (~688 MB, for the on-device AI shaders)
xcodegen generate
open OpenVision.xcodeproj
- Enable Developer Mode in the Meta AI app (Settings → About → tap the version 5×)
- Select your iOS device (not simulator) and unlock it
- Build and run (⌘R)
- On first launch, go to Settings → Glasses → Register
- This opens Meta AI app to grant access
- Return to OpenVision and tap Install/Update Glasses App in the same screen (needed once per pair of glasses)
Full instructions, CLI build commands, and troubleshooting: SETUP.md
Step 5: Configure AI Backend
For Gemini Live:
- Get API key from AI Studio
- Settings → AI Backend → Gemini Settings
- Paste your API key
For OpenClaw:
- Install OpenClaw
- Settings → AI Backend → OpenClaw Settings
- Enter gateway URL and auth token
For OpenAI (text, vision + live video):
- Get an OpenAI API key
- Settings → AI Backend → OpenAI, paste the key (and optionally a base URL / models)
- Say "Ok Vision, start video stream" to use live video over the Realtime API
For OpenAI with a ChatGPT subscription (no API key):
- Settings → AI Backend → OpenAI → ChatGPT Subscription → Sign in with ChatGPT
- Pick a model from your plan's list (smaller models answer faster)
- Text, photo questions, web search and tools work; live video still needs an API key (or Gemini)
This signs in the way the Codex CLI does and uses the backend the CLI talks to. It's not an official OpenAI API, so it can change or stop working without notice. Tokens are stored in the iOS Keychain. Signing in on the phone appears to end an existing Codex CLI session for the same account (and vice versa), so if you use both, expect to sign in again on the other device.
For Grok (text + vision):
- Settings → AI Backend → Grok → choose SuperGrok Subscription (Sign in with SuperGrok) or API Key (from console.x.ai)
- Pick a model (non-reasoning models answer fastest)
SuperGrok sign-in works the way the Grok CLI signs in; requests then go to xAI's public API.
For Hermes Agent (your own server):
- On the server, enable Hermes' API server (see SETUP.md) and make it reachable over https or Tailscale
- Settings → AI Backend → Hermes Settings: enter the server address and its
API_SERVER_KEY, then tap Test Connection. Or choose Username & Password and sign in with your Hermes web UI login - Select Hermes as the backend
For on-device vision (SmolVLM2):
- Settings → AI Backend → Local (MLX)
- Pick SmolVLM2 2.2B and tap download (~2.6 GB, one time)
- Say "take a photo and tell me what this is", or "start video stream" — all on-device
Usage
OpenClaw Mode (Default)
You: "Ok Vision" → Wake word activates listening
You: "What's the weather today?" → AI processes and responds via TTS
You: "Take a photo" → Captures from glasses, analyzes
You: "Ok Vision stop" → Interrupts AI mid-speech
[Silence for 30s] → Conversation ends
Live Video Mode (Gemini · OpenAI · Local)
Works with whichever backend is selected — Gemini Live, OpenAI Realtime, or fully on-device SmolVLM2.
You: "Ok Vision, start video stream" → Enters live video mode (uses your selected backend)
[Glasses camera streams; the AI sees continuously]
You: "What am I looking at?" → AI sees and responds
You: "And is this a good deal?" → Keep asking — no wake word needed
You: "Stop video" → Exits live video mode
On the Local (SmolVLM2) backend this runs entirely on-device (speak toward the phone; audio and vision never leave it). On Gemini/OpenAI the camera frames stream to the cloud provider.
On-Device Photo (SmolVLM2)
[Select Local → SmolVLM2 in Settings]
You: "Ok Vision, take a photo and tell me what this is"
[Glasses capture a frame → SmolVLM2 answers on-device → spoken reply]
Voice Commands
| Command | Action |
|---|---|
| "Ok Vision" | Activate listening (wake word) |
| "Ok Vision stop" | Stop AI while speaking |
| "Take a photo" | Capture and analyze view (on-device with SmolVLM2, else cloud) |
| "What do you see?" | Describe current view |
| "Remember this person as Sara" | Enroll a face (on-device) |
| "Who is this?" | Identify the person in view (on-device) |
| "Forget Sara" / "Who do you know?" | Remove / list known faces |
| "What's today's news?" / "Weather in Tokyo?" | Web search (on-device backends) |
| "What's its population?" (as a follow-up) | Uses conversation memory |
| "Set a 5 minute timer" / "Start a Pomodoro" | Timer / focus session (native tools) |
| "Remind me to call mom at 6 PM" | Reminder in Apple Reminders (exact time) |
| "Add a meeting tomorrow at 9:30am" / "What's on my calendar today?" | Calendar add / read |
| "Note that I parked in lot B" / "Search my notes for parking" | Notes, auto-tagged with place + time |
| "Start taking notes" … "Stop taking notes" | Meeting notes: transcript + summary with decisions and action items |
| "Notes lena shuru karo" … "Notes band karo" / "नोट्स बंद करो" | Meeting notes in Hinglish or Hindi |
| "What did we decide in the meeting?" / "What are my action items?" | Ask about recorded meetings |
| "Start video stream" | Enter live video mode (Gemini / OpenAI Realtime / on-device SmolVLM2) |
| "Stop video" | Exit live video mode |
| "Slash usage" / "Slash model GPT five point five" | Run a Hermes slash command or skill (Hermes, username & password) |
| "Yes" / "No" | Answer when Hermes asks before a risky command |
Commands are routed by the on-device model, so you don't need exact wording — natural phrasing works, and it searches the web on its own when it doesn't know.
AI Backend Comparison
| Backend | Voice | Vision | Cost / Privacy | Best For |
|---|---|---|---|---|
| Local (MLX) | Wake word + Apple STT | On-device photo + live video (SmolVLM2); else via a cloud backend | Free · fully on-device | Private chat, face commands, offline vision — pick Qwen/Gemma/SmolVLM |
| Apple Intelligence | Wake word + Apple STT | via a cloud backend | Free · on-device, no download | Private chat on iOS 26+ devices, lowest setup |
| OpenClaw | Wake word + Apple STT | Photo on request | Self-hosted | Tasks, 56+ tools, control |
| Gemini Live | Native VAD (always on) | Continuous 1fps video | Cloud API | Natural, low-latency conversation |
| OpenAI | Wake word + Apple STT · Realtime VAD in live mode | Photo on request (GPT-4o) · live video (Realtime gpt-realtime) |
Cloud API · OpenAI-compatible · or ChatGPT subscription | Cloud text + vision, live video, cross-checking |
| Grok | Wake word + Apple STT | Photo on request | Cloud API · or SuperGrok subscription | Fast cloud answers; pairs with the Grok voice |
| Hermes | Wake word + Apple STT | Photo on request | Self-hosted | Real work on your server: its tools, memory, skills and slash commands |
Face recognition, web search, and conversation memory all run on the on-device backends (Gemma, Apple) — private, no photos or queries leave your phone unless you pick a cloud backend. With SmolVLM2, photo Q&A and live video are on-device too.
Settings
AI Section
| Setting | Description |
|---|---|
| AI Backend | Choose Local (MLX), Apple Intelligence, OpenClaw, Gemini Live, OpenAI, Grok, or Hermes |
| Local (MLX) | Pick a model (Bonsai 8B, Qwen 2.5, Gemma, SmolVLM), download it, or delete to reclaim storage. Bonsai 8B is an 8B model in 1.28 GB; SmolVLM2 adds on-device photo + live video |
| Apple Intelligence | On-device model status (no key or download needed; iOS 26+) |
| Web Search | Tavily key for real live results (news/prices/scores); DuckDuckGo fallback |
| OpenClaw Gateway | WebSocket URL (e.g., wss://localhost:18789) |
| OpenClaw Token | Authentication token |
| Gemini API Key | Google API key |
| OpenAI | API key, chat model (default gpt-4o-mini), base URL (OpenAI-compatible), and realtime model (default gpt-realtime) for live video; or Sign in with ChatGPT and pick a model from your plan |
| Grok | xAI API key or Sign in with SuperGrok, and a model (default grok-4.20-non-reasoning) |
| Hermes | API server address + key, or the web UI address and Sign in to Hermes |
| Custom Instructions | Additional system prompt |
| Memories | Key-value context for AI |
Voice Section
| Setting | Description |
|---|---|
| Wake Word | Activation phrase (default: "Ok Vision") |
| Wake Word Enabled | Toggle wake word requirement |
| Activation Sound | Play chime on wake word |
| Conversation Timeout | Auto-end after silence (15s-2min) |
| Speech Engine | Apple, Kokoro (on-device), Grok or OpenAI (cloud), each with a voice list and ▶ previews |
| Meeting Notes → Language | Phone language, English, Hindi, Hinglish (mixed), or another Indian language |
| Meeting Notes → Microphone | Phone (hears the whole room; default) or glasses (mostly hears you) |
Hardware Section
| Setting | Description |
|---|---|
| Glasses Registration | Register/unregister with Meta AI |
| Connection Status | View connected devices |
| Camera Controls | Manual stream start/stop |
Architecture
Deep dive (MVVM, the
AIBackendseam, how to add a backend or tool, tests): docs/architecture.md
┌─────────────────────────────────────────────────────────────────┐
│ OpenVision App │
├─────────────────────────────────────────────────────────────────┤
│ Views (SwiftUI) │
│ ├── VoiceAgentView Main conversation interface │
│ ├── SettingsView Configuration panels │
│ └── HistoryView Past conversations │
├─────────────────────────────────────────────────────────────────┤
│ Services │
│ ├── OpenClawService WebSocket client, auto-reconnect │
│ ├── GeminiLiveService Native audio/video WebSocket │
│ ├── CloudChat Shared prompt, tools + tool loop │
│ ├── OpenAIService API key or ChatGPT subscription │
│ ├── OpenAIRealtimeService Live voice + video (gpt-realtime) │
│ ├── GrokService xAI API (key or SuperGrok) │
│ ├── HermesService Hermes API server or web UI gateway │
│ ├── GemmaLocalService On-device MLX models (LLM + VLM) │
│ ├── AppleFoundationService Apple Intelligence (iOS 26 model) │
│ ├── LocalAgent Shared agentic routing + conversation │
│ ├── WebSearchService Web search (Tavily + DuckDuckGo) │
│ ├── KokoroTTSService On-device neural voice (Kokoro/MLX) │
│ ├── CloudTTSService Grok and OpenAI cloud voices │
│ ├── FaceRecognitionService On-device faces (Apple Vision) │
│ ├── VoiceCommandService Wake word detection, Apple STT │
│ ├── TTSService Apple text-to-speech │
│ ├── AudioCaptureService Microphone input for Gemini │
│ └── AudioPlaybackService Speaker output for Gemini │
├─────────────────────────────────────────────────────────────────┤
│ Managers │
│ ├── GlassesManager Meta DAT SDK wrapper │
│ ├── SettingsManager JSON settings, API keys in Keychain │
│ └── ConversationManager Chat history storage │
├─────────────────────────────────────────────────────────────────┤
│ External │
│ ├── Meta DAT SDK Glasses camera & registration │
│ ├── Apple MLX On-device Gemma 4 inference │
│ ├── Apple Vision On-device face recognition │
│ ├── Apple Speech Speech recognition │
│ └── AVFoundation Audio capture & playback │
└─────────────────────────────────────────────────────────────────┘
Troubleshooting
Glasses won't register
- Ensure Meta AI app is installed and you're signed in
- Enable Developer Mode in Meta AI app settings
- Check that your Meta App ID matches the developer console
"Device unavailable" or "Session ended by device"
The glasses connect but end the camera session seconds after it starts. Work through these in order:
- In the Wearables Developer Center project's Configuration, make sure your Apple Team ID is filled in and Camera access is on (projects created before these fields existed lack them)
- In OpenVision: Settings → Glasses → Unregister, then Register again
- Tap Install/Update Glasses App in the same screen
"Configuration Invalid" error
- Verify
CLIENT_TOKENformat:AR|APP_ID|TOKEN - Check all Config.xcconfig values are filled in
- Ensure bundle ID matches what's in Meta Developer Console
No audio from glasses
- Check Bluetooth connection in iOS Settings
- Ensure glasses are set as audio output device
- Try disconnecting and reconnecting glasses
Gemini Live fails to connect
- Verify API key is correct
- Check internet connection
- Ensure you have Gemini API access (not all regions supported)
OpenClaw connection drops
- App auto-reconnects up to 12 times with exponential backoff
- Check if OpenClaw server is running
- Verify gateway URL uses
wss://(notws://) for secure connection
Development
Project Structure
OpenVision/
├── App/ App entry point, URL handling
├── Config/ Configuration files
├── Models/ Data models (Settings, Conversation)
├── Services/
│ ├── AIBackend/ Connection state, errors
│ ├── OpenClaw/ WebSocket client
│ ├── GeminiLive/ Native audio WebSocket
│ ├── Voice/ Wake word, STT
│ ├── Meetings/ Meeting notes: transcriber, store, summariser
│ ├── Audio/ Capture & playback
│ └── TTS/ Text-to-speech
├── Managers/ Singletons (Settings, Glasses)
├── Views/
│ ├── VoiceAgent/ Main UI
│ ├── Settings/ Config screens
│ ├── Meetings/ Meetings tab and meeting detail
│ ├── History/ Chat history
│ └── Components/ Reusable UI
└── Utilities/ Extensions, helpers
Key Patterns
- @MainActor - All managers and services are main-actor isolated
- Callbacks - Services use callbacks (not Combine) for events
- Singleton managers - GlassesManager, SettingsManager, etc.
- Exponential backoff - OpenClaw reconnects with jittered delay
Building
# Build for device
xcodebuild -scheme OpenVision -destination 'platform=iOS,name=iPhone' build
# Install on connected device
xcrun devicectl device install app --device <DEVICE_ID> \
~/Library/Developer/Xcode/DerivedData/.../OpenVision.app
Contributing
Contributions are welcome!
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Code Style
- Follow Swift API Design Guidelines
- Use
@MainActorfor UI-related code - Add documentation comments for public APIs
- Keep services focused and single-responsibility
Contributors
Thanks to everyone who has contributed code, testing and ideas.
Field testers and issue reporters make this project work on hardware the maintainers don't own — see the closed issues for the people who debugged glasses, gateways and models with us.
Star History
License
MIT License - see LICENSE for details.
Acknowledgments
- Meta Wearables DAT SDK - Glasses integration
- Apple MLX - On-device model inference (Qwen, Gemma, SmolVLM)
- Kokoro TTS - On-device neural voice (Kokoro-82M via MLX)
- Apple Foundation Models - On-device Apple Intelligence
- Google Gemini - Live audio/video AI
- OpenClaw - AI assistant framework
- OpenAI - GPT-4o text + vision, and
gpt-4o-mini-ttscloud voice - xAI - Grok text + vision, and Grok cloud voice
- Tavily - Live web search built for AI assistants
- DuckDuckGo - Keyless web-search fallback
Built with Swift and ❤️
Ähnliche Projekte entdecken
Wird geladen…