Skip to main content
Mentra Miniapp SDK betaThe SDK is in beta, so its APIs may change before general availability.There is currently no way to distribute a miniapp built with the Miniapp SDK. In a future release, developers will upload miniapps through the Mentra Developer Console, and users will download them from the Mentra Miniapp Store. Neither service supports Miniapp SDK distribution in MentraOS 3.0.Only use the Miniapp SDK if you are comfortable with these limitations.Developing on Mentra Live? We recommend using the Mentra Bluetooth SDK.The developer tools are available in the Mentra App under Settings → Miniapp Developer Settings.Share feedback with an in-app bug report, on Discord, or by email at help@mentra.glass.
session.cloud reports whether the phone currently has a connection to MentraOS cloud. The phone owns that connection. Your miniapp does not open, configure, or close it. This module only observes and reports the current state, so you can render honest UX (an online/offline indicator, a “reconnecting” hint).
src/background/index.ts
This module needs no permission. It’s read-only.

Reading status

status returns the latest CloudClientStatus snapshot. connected is true only when status.status is "connected". isConnected() is a method alias for connected.

Watching for changes

onStatusChanged delivers the current value to your handler immediately, then calls it again on every change. You don’t need a separate read to hydrate UI.

CloudClientStatus

status is the connection state: audioTransport is how audio reaches the cloud when a connection exists:
Some capabilities depend on the cloud connection. session.transcription, session.translation, and cloud text-to-speech on session.speaker degrade or stop while status.status is not "connected". Use session.cloud to tell the user why, not to control the connection.