Inspiration

Independent consultants and freelancers do confidential client work all day, on a phone and a laptop, across mail, documents, sheets and chat. Today's assistants fail them in three ways:

  1. Context is scattered. The request is in mail, the numbers are in a sheet, the plan is on the phone. People carry it all by hand.
  2. Privacy is all or nothing. A cloud assistant gets everything. A local model can't hold a spoken conversation or reach your services.
  3. You can't rely on it. It stops when the network does, or it acts before you've read what it's about to do.

Hybrid inference can answer the last two, but only if people can see where each task runs and can forbid the cloud. A fallback they can't see doesn't earn trust. So Orbit treats refusing as a real outcome, next to local and cloud.

And real work doesn't stay on one device. A laptop may have an on-device model while the phone in your pocket doesn't. So Orbit moves the work across devices, and lets each device choose its own route.

What it does

Orbit is one personal assistant for web, Android, iPhone and Mac. Start work on one device and finish it on another. Each device runs short tasks locally or in the cloud and says which, and nothing happens without your yes.

Across your devices

In the video, on four devices:

  1. Android phone: you ask for a plan: revise the scope, prepare the rate card, and a reminder tomorrow at 8 to check the numbers. Orbit drafts it. Nothing is created yet.
  2. Mac, web and iPhone: the same plan appears within seconds, waiting for review.
  3. Mac: you approve. The reminder is created once, and every device shows where it was approved.
  4. Web: you tick a step, and every device shows it.
  5. Mac to phone: the Mac sends a checklist straight to the Android phone.
  6. Airplane mode: you tick a plan's step on the phone. It's saved, says so, and is sent when you're back online.

What follows you:

  • Plans, reminders and pending reviews. Approve on whichever device is in your hand.
  • The conversation, if you turn memory on. Start talking on another device within 10 minutes and it continues by itself. Within 2 hours it offers to.
  • Cards. "Put this checklist on my phone" or "show the chart on my Mac". Opening a page on the Mac still needs a tap there.
  • Saved workflows. Made on one device, run from any.

What stays where it is:

  • What you show Orbit of your screen, your questions about it, and the answers. They never leave the device.
  • Summaries. They stay on their card, neither stored nor synced.
  • The device's own choice about the cloud. A shared laptop and a private phone can differ.

The same Summarize button shows why that matters: local on the web, the Mac and the iPhone, cloud on an Android phone without Nano, and refused on that phone when its owner forbids the cloud.

Three problems, answered

Scattered context

  • Talk or type. Gemini Live answers aloud and shows cards that name their source: Gmail, Calendar, Docs, Sheets, Drive, Chat, Notion, GitHub, Maps. On Android, an optional "Hey Orbit" wake word is detected on the phone itself.
  • Workflows by voice. Do something once and say "save that as a workflow called client call, and ask me for the client each time". Review every step, say yes, and next time "run client call for Cedar" is enough.

All-or-nothing privacy

  • Private screen questions. Ask about a confidential window. The answer comes from the on-device model only. There is no cloud path in that code, and a result that isn't reported as on-device is thrown away.
  • Local first, and it says so. Summaries, titles and rewrites try the device first. Summaries carry an "On this device" or "In the cloud" label. Turn the cloud off and the task refuses, sending nothing.

Can't rely on it

  • Works without a network. Offline, the model in the browser understands "remind me at 9 tomorrow to send Meridian the revised scope", saves it, and syncs later. That task has no cloud model, by design.
  • Nothing without your yes. The model can only prepare a change. You see the exact recipient and text, and approve by voice, by typing or with a tap. Email then has ten seconds to undo.

How I built it

Firebase AI Logic does three jobs

  • Conversation: Gemini Live (gemini-3.1-flash-live-preview) through each client's Firebase Live SDK, with streaming audio, transcription and function calling.
  • Six short hybrid tasks: memory learning, card summaries, draft rewrites, offline reminders, conversation titles and workflow names. Each call chooses PREFER_ON_DEVICE, ONLY_ON_DEVICE or ONLY_IN_CLOUD (gemini-3.5-flash-lite).
  • Private screen analysis: ONLY_ON_DEVICE with image input, as a separate runner.

Cloud calls use limited-use App Check tokens. Firebase Authentication is the Orbit identity.

One rule, written before any model is called

platform not supported by the task           -> refuse
local model ready AND input within budget    -> local
task has a cloud model AND cloud is allowed  -> cloud
otherwise                                    -> refuse, and nothing is sent

Budgets, models and output limits live in one shared JSON contract. The same test vectors are replayed in TypeScript, Kotlin and Swift, so a phone and a laptop can't disagree about privacy.

One task on many devices

  • The server owns the task, the devices own their inference. FastAPI and SQLite keep plans, reviews, reminders and workflows. Model calls never pass through it: each client calls Firebase AI Logic directly.
  • Every device has its own identity. A request needs the user's Firebase sign-in and that device's credential, both for the same account. A device can be revoked from another one.
  • An approval is bound to what you saw. It carries a digest of the exact steps and the plan's revision. If another device changed the plan meanwhile, the approval is refused and the card refreshes.
  • Exactly once. Each change goes into a durable outbox with its own command ID and is sent in order. A lost response is safe to retry, and the reminder is created in the same transaction that records its step.
  • The model can't cross the line. It can draft, revise and submit a plan. It can't approve, tick a step or answer for a device, and the server refuses a forged approval.
  • Proven with generated cases. A state-machine property test drives several devices through edits, approvals, retries and crashes, and one contract fixture is replayed by the TypeScript, Kotlin and Swift clients.

What runs where, and why

  • Conversation with tools and audio: cloud. On-device mode is single-turn and has no tools or audio.
  • Short one-shot text: local first. Small input, no tools, no extra request.
  • Screen images: local only. One mistake can't be taken back, so there is no path to make it.
  • Offline capture: local only. It has to work when the cloud can't.
  • Sending, posting, creating: neither. A person decides.

Platforms

  • Web (Chrome): Gemini Nano 4 through Firebase AI Logic, for text, structured output and images. It's enabled with Chrome's "Gemma 4 for Built-in AI" flag.
  • Android: the same modes with firebase-ai and firebase-ai-ondevice. The Galaxy S23 FE in the video doesn't have Nano, so it shows the other two routes: cloud with a label, and refusal.
  • iPhone and Mac: additional clients under the same contract. Firebase AI Logic runs Gemini Live and the permitted cloud path. The local half calls Apple Foundation Models directly, because the pinned firebase-ios-sdk 13.2.0 has no hybrid model. The iPhone footage is from the iOS Simulator.

The clients are React and TypeScript, Kotlin and Compose, and SwiftUI, with a FastAPI and SQLite backend for accounts, sync, reviews and integrations. Specs, steering rules and checks are kept in the repository's .kiro/ folder, and AI coding assistants were used in development.

Challenges I ran into

  • Never overclaiming "local". The label comes from the SDK's reported inference source, never from what we asked for. A missing report counts as cloud.
  • Keeping screens off the cloud. A flag on the hybrid runner would be one bug away from a leak, so the screen runner is separate code, and a static check fails if it can reach the network.
  • Small models need narrow jobs. On the demo Mac, the on-device model read a rate card correctly 8 times out of 8, but compared two numbers correctly only 1 time in 10. Orbit asks it to read, not to calculate, and reviews what it produces.
  • A yes is harder than it looks. The model hears your spoken yes at the same moment the app does. Orbit matches it against your own transcript, binds it to the exact text you saw, and tells the model what really happened, so it can't claim a save or a send that didn't happen.
  • Two devices, one approval. A plan can change on the Mac while the phone still shows the old card. Binding approval to the digest and revision turned a race into a clear message: "Changed on another device. Review the latest version."
  • Four clients, one behavior. Shared JSON contracts and fixtures test routing, approvals, card layout and even the orb's motion in three languages.

Accomplishments I'm proud of

  • A real hybrid product, not a model picker: three modes, one rule, and refusal as a feature people can see.
  • Measured on Chrome 158 on an M5 MacBook Air: summaries in 2.5 to 3.0 s and offline reminders in 1.3 to 1.9 s (8 of 8 correct), with zero model requests leaving the page.
  • One plan made on an Android phone, approved on a Mac, ticked on the web and shown on an iPhone (Simulator), recorded on all four screens at the same time.
  • 650 backend tests, 201 Android unit tests, and shared fixtures replayed on every client.

What I learned

  • Route by the work, not by the model. "Can this mistake be undone?" turned out to be a better question than "is the local model good enough?".
  • Hybrid is a property of the device, not the app. The same person has a laptop with Nano and a phone without it. Moving the work while each device picks its own route is what makes hybrid inference useful all day.
  • Showing the route changes the product. Once every result says where it ran, people can make a real choice.
  • Say the limits plainly. Opening a mail thread in conversation sends it to Gemini Live, and Orbit says so before you connect Google. The local summary avoids a second request. Only screen questions and offline capture are private end to end.

What's next for Orbit

  • Move the Apple clients' local calls to Firebase AI Logic's hybrid API when the pinned SDK has it.
  • Test the Android on-device path on Nano 4 phones such as the Pixel 10 and Galaxy S26.
  • Push notifications. Today a device learns about a pending approval when it next checks, about every 4 seconds while it's open and in view.
  • A hosted version, so people can try it without setting up a Firebase project.

Built With

Share this project:

Updates

Submission history