Mai - Meta Glasses API for Messenger
Note: by using this project you agree to the terms of use outlined in TERMS_OF_USE.md
This is a browser extension to add custom AI bots to messenger that can be used with the Meta Rayban Smart Glasses or the standalone messenger app.
Features:
-
Hey Meta send a photo to my food log: Video Demo
-
Hey Meta send a message to ChatGPT
-
Video Monitoring: Send screenshots of your video calls to your chosen provider (ChatGPT, Claude etc) and then log the output to the log viewer

Requirements:
a) Meta Rayban Smart Glasses (or the standalone messenger app)
b) OpenAI/Perplexity/Claude etc Api Key
c) Alternative Facebook/Messenger account
Browser Extension Setup
-
bun install
-
bun run dev:chrome (or brave, firefox)
-
This should build and run the extension and automatically open it
-
Add any api keys you want to use in the extension: the API settings tab has more information on how to get them
-
Sigin into your alt Facebook account and head to facebook.com/messages/t and start monitoring the conversation
Hey Meta Send a Photo/Message to _____
Before we setup our extension we're going to trick the Meta Glasses into allowing us to send a message to (nearly) any name e.g: "Hey Meta send a message to ChatGPT".
Tricking Meta
- Create a messenger group chat with 2 other facebook accounts (the minimum amount allowed to create a group chat)
I believe this step resyncs all your latest chats and friends which then allows that Meta Glasses to become aware of your newly created group chat to allow for voice commands!
Chat Monitoring
-
On your alt account head to messenger.com or facebook.com/messages then open your newly created group chat
-
Start monitoring the chat
-
With each new message/image request it will send it to your chosen provider (ChatGPT, Claude etc) and then respond to you with the output
-
If enabled: It will then generate an audio clip of that output using OpenAI and send it back to you
Examples
All chats can be done via voice commands "Hey Meta send a message to ___" or by simply messaging the group chat.
OpenAI query with Minimax text to speech
Using Perplexity to answer a question accurately
Using GPT 4.1 to describe an image
Please reach out if there are any issues or feature requests :)
Hopefully the Meta Reality Labs team will provide an SDK in the future so these types of integrations can be ✨productionised✨
Credits:
Anime Sky from Vecteezy is used in the icon










