xg.glass SDK
xg.glass is one SDK for smart-glasses apps from HKUST: camera, microphone, display and audio, working across Rokid, Meta, Brilliant Labs Frame, RayNeo, INMO, Omi and a simulator.
- Hardware:
- Rokid, Meta Ray-Ban, Brilliant Frame, RayNeo
- Difficulty:
- Advanced
- Creator:
- hkust-spark
One API for camera, mic and display across many glasses.

By hkust-spark
- Posted
What it does
xg.glass is one SDK for smart-glasses apps from HKUST: camera, microphone, display and audio, working across Rokid, Meta, Brilliant Labs Frame, RayNeo, INMO, Omi and a simulator.
What you need
- Difficulty
- Advanced
- License
- No license stated
Parts
- Rokid, Meta Ray-Ban, Brilliant Frame, RayNeo
Steps
- Difficulty
- Advanced
- One extra repository is required in
settings.gradle.kts: https://maven.rokid.com/repository/maven-public/ withincludeGroupByRegex("com\\.rokid(\\..+)?"). - app module
build.gradle.kts:implementation("io.github.hkust-spark:xgglass-universal:0.3.0"). - App module
build.gradle.kts:compileSdk = 36,minSdk = 28,JavaVersion.VERSION_17. src/main/AndroidManifest.xml:CAMERAandRECORD_AUDIOpermissions.- For Rokid, swap
SimulatorGlassesClient(this)forRokidGlassesClient(this); it implements the sameGlassesClientAPI.
Full instructions: View original
How it works
It wraps the various vendors' SDKs behind four interfaces: video in, audio in, display out and audio out. The same app code runs on any supported pair or on the simulator. Support levels vary by device; for example, RayNeo X2 supports video streaming and battery events. Android, iOS and CLI tools are included.
Limits and caveats
- The SDK minSdk is 28; Meta support and the RayNeo glasses host require minSdk 29.
- RayNeo support additionally requires the vendor AARs downloaded from RayNeo's developer docs.
- Frame is only the bridge API from Maven; a working Frame integration needs the source/CLI flow because the embedded Flutter module is not published.
Like this build? Get the weekly builds
Every Thursday: the 5 best gadget hacks you can copy. Free.
Built something? Submit a build
Hardware
- Rokid, Meta Ray-Ban, Brilliant Frame, RayNeo
Open source smart glasses: AI glasses and Meta Ray-Ban apps →
This page is a short summary written by HardwareLab. Build steps, code and photos belong to the creator; follow “View original” for the full project.
Featured? Add this badge
Built this? Paste the badge into your README. It links back to this page.
Markdown
[](https://hardwarelab.dev/projects/xg-glass-sdk/?utm_source=badge&utm_medium=referral&utm_campaign=launch_2w)HTML
<a href="https://hardwarelab.dev/projects/xg-glass-sdk/?utm_source=badge&utm_medium=referral&utm_campaign=launch_2w"><img src="https://hardwarelab.dev/badge.svg" alt="Featured on HardwareLab" width="188" height="20"></a>Related builds
All 31 in Smart Glasses

OpenGlasses
Make Meta Ray-Ban and Oakley glasses smarter with your own models.
- Meta/Oakley glasses
- iPhone
Intermediate130
VisionClaw
A real-time AI assistant for Meta Ray-Ban smart glasses: it sees what you see, hears what you say, and takes actions on your behalf, all through voice.
- Meta Ray-Ban glasses
- phone
Intermediate · Our suggestion2.6K

HeyCyanSmartGlassesSDK
Cross-platform SDK for cheap HeyCyan glasses: capture, record, AI.
- HeyCyan smart glasses
Advanced89
Frame Realtime Gemini Voicevision
Realtime voice and vision on Brilliant Labs Frame.
- Brilliant Labs Frame
- phone
Intermediate82
Sources
- github.com/hkust-spark/xg-glass-sdk/blob/c697e7faadde27762c9aa3954f6ed7e65961c28f/README.md
- github.com/hkust-spark/xg-glass-sdk/blob/c697e7faadde27762c9aa3954f6ed7e65961c28f/README.md#L67-L67
- github.com/hkust-spark/xg-glass-sdk/blob/c697e7faadde27762c9aa3954f6ed7e65961c28f/README.md#L68-L68
- github.com/hkust-spark/xg-glass-sdk/blob/c697e7faadde27762c9aa3954f6ed7e65961c28f/README.md#L204-L204