Skip to main content
Mentra Miniapp SDK betaThe SDK is in beta, so its APIs may change before general availability.To put a miniapp in front of users, host it at an HTTPS URL and share the link, or get it listed in the Mentra Miniapp Store. See Publish your miniapp.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.