Demo GitHub
Demo build · Chrome extension

Let your coding agent read the tabs you choose, safely.

B-Auth shares a signed-in browser tab with your coding agent for as long as you decide. Every page is cleaned on your own device by Gemini Nano: personal data becomes placeholders and secrets never leave the browser.

v0.1.0 · 914 KB · Chrome 138 or later on desktop · Free, 5 cloud credits per account

Before you start

The demo runs entirely from the downloaded folder. Nothing to install on your computer besides the extension.

Google Chrome 138+Desktop: Windows, macOS, Linux or ChromeOS
Gemini NanoChrome's built-in on-device model. Set it up in five steps.
A Google accountUsed only to sign in and to give you a personal agent link
An MCP-capable agentClaude Code, OpenCode, Cursor or any client with remote MCP
2 min · see B-Auth in action before you install

Install in a few minutes

Chrome loads the demo as an unpacked extension. Keep the folder where it is afterwards; Chrome runs it from there.

  1. Download and unzip

    Download bauth-demo.zip and extract it into a folder, for example bauth-demo. The extension files, including manifest.json, sit directly inside it.

  2. Turn on Developer mode

    Open chrome://extensions in a new tab and switch on Developer mode in the top-right corner.

  3. Load the folder

    Click Load unpacked and select that folder (the one with manifest.json). B-Auth appears in your extension list.

    Load the folder exactly as downloaded: Google sign-in is tied to this build's extension ID.

  4. Open the side panel

    Pin B-Auth from the puzzle-piece menu in the toolbar, then click its icon. The side panel opens on the right and stays open while you browse.

  5. Set up Gemini Nano

    B-Auth cleans every page with Chrome's on-device model. If it is not ready yet, follow Set up Gemini Nano below; the Status tab in B-Auth links here too.

  6. Sign in with Google

    Click Sign in with Google and choose your account. New accounts start with 5 cloud credits.

  7. Connect your agent

    In the Connect tab, create a token and paste the ready-made config into your agent. The demo guide walks through it.

Set up Gemini Nano

B-Auth runs Chrome's built-in model on your device. These five steps switch it on and download it; you only do this once per Chrome profile.

  1. Turn on On-device AI

    Open chrome://settings/ai (Settings › AI in Chrome) and make sure On-device AI is switched on.

    Chrome Settings, AI in Chrome: the On-device AI switch is on
  2. Enable the Prompt API

    Open chrome://flags , search for Prompt API, set it to Enabled, then click Relaunch.

    chrome://flags with the Prompt API flag set to Enabled
  3. Open On-Device Internals

    Go to chrome://on-device-internals . The first time, Chrome asks you to enable internal debugging pages: follow its prompt and reopen the page.

    On-Device Internals with the Tools, Event Logs and Broker State tabs
  4. Request the Prompt API model

    Open the Broker State tab, scroll to Use Cases and tick prompt_api. Chrome starts downloading the model.

    Broker State, Use Cases: prompt_api is ticked and shows Available
  5. Watch the download

    In the same Broker State tab, Assets shows the model download. It is ready when nano_v3_gpu_component reads Ready (about 4 GB).

    Broker State, Assets: nano_v3_gpu_component is Ready, 4.0 GB of 4.0 GB
Done. Reopen the B-Auth side panel: the Status tab shows Gemini Nano · Ready and the Share tab button becomes available. Chrome only offers the model on devices with enough free disk space and memory.

Questions

Short answers to what usually comes up during setup.

What does my agent actually receive?

Only the cleaned text of pages you visited in a shared tab, while its code is active. Names, emails and phone numbers become placeholders such as {{pii:email_1}}; passwords, keys and tokens are withheld. The Receipt tab shows exactly what was sent.

What are cloud credits used for?

When B-Auth sees a page layout for the first time, it can ask Gemini in the cloud to build a "recipe" for that layout, using the layout only, never the values. That costs 1 credit. Revisits and pages with a known layout are free, and so are agent reads. At 0 credits everything keeps working on-device.

Sign-in fails or closes immediately.

Make sure you loaded the extracted folder without changes, and that third-party sign-in is not blocked for Chrome. Then open the side panel and try again.

My agent says B-Auth is offline.

The agent reaches your browser through B-Auth, so Chrome has to be open with the extension signed in. Open the side panel once; the agent's bauth_status tool reports online=True within a few seconds.

How do I update or remove the demo?

To update, download the zip again, replace the folder and click the reload icon on B-Auth in chrome://extensions. To remove, click Remove there; signing out in the Connect tab clears everything B-Auth stored in your browser.