Step 1: Install the Mentra app on your phone
Install MentraOS on your Android or iPhone from MentraGlass.com/OS.Step 2: Set up ngrok
We are going to use ngrok to expose your local app to the internet. This is useful for development, but when you’re ready to go live, you’ll want to deploy to a cloud service.- Install ngrok
- Create an ngrok account
- Set up a static address/URL in the ngrok dashboard
Make sure you run thengrok config add-authtoken <your_authtoken>line. Make sure you selectStatic Domain, then generate a static domain.
Step 3: Register your app with the Mentra Relay Server
This example app will send traffic through the Mentra Relay Server, which connects your phone to your app through the internet. Later, you can run your own Relay Server.- Log in to console.mentraglass.com with the same account you’re using for MentraOS.
- Click “Create App”. Set a unique package name like
com.yourName.yourAppName. For “Public URL”, enter your ngrok static URL. - Add microphone permission.
This automatically installs the app for your user - check the Mentra app on your phone. For other people to test the app, they need to install it. You can retrieve your app’s install link from “My Apps” page, click the Share icon.
Step 4: Start your app
Ensure you have Node.js v18 or later and Bun installed.- Choose an example app template based on your smart glasses type from our Example Apps page. For this quickstart, we’ll use the Display Example App. Go to this link and click Use this Template and Create a new repository.
- Clone your new repo locally:
- Navigate to your repo directory and install dependencies:
- Set up your environment variables:
- Create a
.envfile in the root directory by copying the example, then edit the.envfile with your own app’s details.
- Create a
- Run your app:
- Expose your app to the internet with ngrok:
Note:
3000is the port. It must match what is in the app config.
Step 5: App Running!
Go to your phone and open Mentra. Start your app. Begin speaking, and you’ll see what you say overlaid on your smart glasses display. You’ll also see logs in the console. Congratulations, you just built your first smart glasses app!Next Steps
- Check out our Example Apps page for more templates and advanced examples
- Join our Discord community for help and support

