GlassKit gives you three ways to start building Rokid Glasses apps, depending on whether you want agent-assisted development, a minimal scaffold, or a feature-complete starting point. This page walks through each approach with the exact commands you need.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/RealComputer/GlassKit/llms.txt
Use this file to discover all available pages before exploring further.
Choose Your Starting Point
Agent Skill
Best when using Codex, Claude Code, Cursor, or another coding agent to build your app.
Starter App
Best when you want a minimal scaffold with HUD layout and navigation already wired up.
Complete Example
Best when an existing demo is close to the app you want to build.
Hardware Setup
Need to set up your Rokid Glasses or ADB first? Start here.
Option 1: Install the GlassKit Agent Skill
Use this approach when you want Codex, Claude Code, Cursor, or another coding agent to understand smart-glasses app development while it builds your app. Smart-glasses apps have unique aspects that coding agents are not used to handling: vision AI pipelines, small HUDs, camera and microphone access, touchpad and voice inputs, battery constraints, and wearer-facing UX. The GlassKit agent skill packages that context — along with reference patterns and the starter template — so agents can build more realistic glasses apps from the first pass.Install the skill
Run the following command in your project directory. It uses the Agent Skills CLI and does not require a global install.
Start building with your agent
Open your coding agent and describe what you want to build. The skill gives your agent the Rokid device constraints, HUD layout patterns, sensor access patterns, and real-time AI integration context it needs.Example prompts to get started:
Create a starter Rokid Glasses appAdd a camera preview to the first screen using the glasskit skillCreate a Rokid Glasses app that connects to OpenAI Realtime and talks about what it sees
Option 2: Copy the Rokid Starter App
Use this approach when you want a small app scaffold with Rokid HUD layout and navigation patterns already in place. The starter is the same template the agent skill uses — it is the recommended foundation for new apps.Clone the GlassKit repository and extract the starter
These commands clone the repo and extract just the starter app into a new directory, without copying the rest of the GlassKit repository:
Open the project in Android Studio
Open the
rokid-starter directory in Android Studio. Let Gradle sync complete before building.Build and install
Run these commands from the
rokid-starter directory with your Rokid Glasses connected via the development cable (or an Android phone/emulator):The starter app includes a touchpad navigation scaffold and a viewport wrapper that maps touchpad gestures to touchscreen controls for phone and emulator testing. See Hardware Setup for controls reference.
Option 3: Copy a Complete Example
Use this approach when one of the GlassKit demos is close to the app you want to build. Copying a complete example gives you working code with all integrations already in place. The pattern is the same for any example. The steps below userokid-feature-demo — a device-feature reference app covering touchpad navigation, offline voice commands, camera, mic, audio, and reusable screen controllers — but you can substitute any example name.
Clone the GlassKit repository and extract the example
Replace
rokid-feature-demo with the name of the example you want to copy:Follow the example's README
Each example has its own README with exact setup steps, required environment variables, and any backend setup. Open
my-glasses-app/README.md and follow it from the top.Requirements
All three approaches share the same base requirements:adb— Android Debug Bridge, included with Android Studio or installable separately- Rokid Glasses with a development cable — for on-device testing and debugging; see Hardware Setup
- Android phone or emulator — for quick iteration before testing on device
uv— for Python backendsnode— for TypeScript backends- API keys — such as
OPENAI_API_KEY,OVERSHOOT_API_KEY, orROBOFLOW_API_KEYdepending on the example