Skip to content

About

Open-source (AGPL-3.0) local AI browser extension for Chrome, Firefox, Edge, Brave and Arc. Chat with web pages, summarize, run browser tasks and fill saved logins through Off Grid AI Desktop Pro.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

707 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Off Grid AI

Off Grid AI - Local AI Browser Extension

Chat with web pages. Summarize text. Run browser tasks with your local AI models.

A browser extension for Chrome, Firefox, Edge, Brave, Arc, and compatible Chromium browsers. Connect to Off Grid AI Desktop Pro. Ask questions in a side panel, use browser automation, and fill saved passwords from your desktop vault. Models run through the desktop app; no model download is needed in the extension.

Install · Features · Privacy · Development · Off Grid AI

Chrome, Edge, Brave, and Arc Firefox Requires Desktop Pro License: AGPL-3.0-only

Local AI for your browser

Use a local large language model (LLM) to summarize a web page, explain a passage, rewrite text, or translate selected text. Off Grid AI adds these tasks to a browser side panel and connects it to Off Grid AI Desktop.

For local processing, run Desktop and its model on the same computer as your browser. You can also connect to a desktop on your LAN or Tailscale network. Page content goes to that desktop; its selected model determines where inference runs. See Privacy for the data path.

The current extension requires a paired, compatible Off Grid AI Desktop Pro app. Chrome, Edge, Brave, Arc, and compatible Chromium browsers use the Chromium build. Firefox uses a separate build. Browser task capabilities differ between the two builds.

Features

Task What you can do Requirement
Chat with web pages Ask questions about readable page text in the side panel. Site access and an active text model in Desktop.
Summarize, rewrite, and translate Use selected text or ask about the current page. A text model suited to the task.
Ask about screenshots Attach the visible tab and ask questions about its content. An active model that accepts images.
Run browser tasks Use Agent mode and let Desktop act in a separate task tab. A model that supports tools, browser task access, and a compatible Desktop.
Continue conversations Return to each tab's chat, open Desktop chats, and stop or resume supported runs. The paired Desktop remains available.
Use images and speech Create images, dictate a message, or read a reply aloud. Matching image, transcription, or speech models in Desktop.
Autofill passwords Find saved logins, fill sign-in fields, and generate passwords for sign-up forms. An unlocked Desktop vault and access to the page.

The desktop controls model availability. Features that need an image, speech, or tool-capable model depend on what Desktop reports. Choosing a model in the extension changes Desktop's active model.

The extension acts as a client for the desktop password manager. Vault operations run in Desktop. The extension can receive a login to fill after Desktop checks the request and vault state. See autofill support and limits.

Install

Requirements

  • Chrome, Firefox, Edge, Brave, Arc, or another compatible Chromium browser.
  • Off Grid AI Desktop, running with Pro active and support for browser pairing and browser chat protocol v2 or later.
  • An active text model in Desktop. Other features need the matching models listed above.

From the store

Open the Off Grid AI toolbar icon, then pair with Desktop as described below.

From source

You need Git and Node.js 22.12 or later.

Note: a build from source currently needs two Off Grid AI packages that are not public yet (@offgrid/i18n and @offgrid/operator-ui), so npm ci fails outside our workspace. We are working on publishing them. Until then, use the store builds above.

git clone https://github.com/off-grid-ai/browser-extension.git
cd browser-extension
npm ci

Load in Chrome, Edge, Brave, or Arc

Build the Chromium extension:

npm run build:chrome
  1. Open your browser's extensions page (chrome://extensions in Chrome).
  2. Enable Developer mode.
  3. Select Load unpacked, then select dist/chrome.
  4. Start Off Grid AI Desktop, activate Pro, and load a text model.
  5. Select the Off Grid AI toolbar icon to open the side panel.
  6. Select Pair with desktop. Check that both apps show the same six words, then confirm in Desktop.
  7. Open a web page, allow access when requested, and ask: "Summarize this page in five points."

The default desktop address is http://127.0.0.1:7878/v1. If Desktop cannot be reached, check that its gateway is running:

curl http://127.0.0.1:7878/v1/models

A reply confirms that the gateway is reachable. Pairing, Pro, and browser chat support are still required. See release preparation for package and release checks.

Connect to another computer

Open Settings > General > Connection. Enter the desktop's private IP address or machine name, with an optional port, and select Save address. Grant browser access to that host. Both computers must be connected through your LAN or Tailscale network.

Open Settings > Desktop and pair. Confirm the matching words on that desktop. The desktop must support private network peers. Text settings can be read remotely, but must be changed in the desktop app.

Load in Firefox

npm run build:firefox

Open about:debugging#/runtime/this-firefox, select Load Temporary Add-on, then select dist/firefox/manifest.json. Open the Off Grid AI toolbar icon, then pair with Desktop as described above. Firefox has no Chrome debugger API, so browser task capabilities differ.

How it works

Browser side panel and page tools
               |
       Extension messaging
               |
    Background service worker
               |
       Paired encrypted link
               |
       Off Grid AI Desktop
               |
    Models, chats, tools, vault

The extension is a thin client. Desktop owns chat execution, model selection, tools, and vault operations. The background worker handles desktop requests. Content scripts extract page text or fill fields under browser permissions and communicate through extension messaging.

The paired link encrypts requests between the browser and Desktop. Desktop confirms pairing in its own window. See the bridge protocol documentation for details.

Desktop stores conversations. The browser keeps local preferences, pairing state, and a chat cache for display. Closing the panel can detach it from a Desktop run; use the run controls to stop work. If Desktop is unavailable, the extension reports the connection failure.

Privacy

Where data goes depends on your setup. With Desktop and a local model on this computer, inference runs on this computer. With a LAN or Tailscale desktop, page context travels to that computer. A remote model configured in Desktop can send prompts and context to its model server. The extension itself sends nothing to us or to any third party, and needs no separate account.

The extension sends Desktop page text and screenshots, the page's URL and title, and the username and password of a login you submit, only for the feature you use. Firefox lists these at install as website content, browsing activity and authentication information, because AMO counts data sent to a local app as transmitted. If you turn on Anonymous stats in Desktop (off by default), Desktop counts a model run the extension asked for as source: extension, with the model and timing only, never the prompt, page, URL or login. See Desktop's analytics list.

Browser permissions have specific uses:

  • Page access: activeTab and scripting let the extension read or act on a permitted tab. All-sites access is optional for browser tasks and in-field vault features.
  • Desktop access: required host permissions cover loopback addresses. A custom desktop address needs an optional host permission when you save it.
  • Local storage: storage keeps preferences, pairing state, and cached chat data.
  • Browser tasks in Chrome: debugger enables clicks, typing, screenshots, frame access, and file uploads in task tabs. tabGroups identifies the task's tabs. Chrome shows a debugging bar while attached; Cancel on that bar stops the attachment.
  • Other controls: contextMenus adds selection actions, alarms supports reconnection, and Chrome's sidePanel permission opens the chat surface.

The extension does not request browser history, cookies, or downloads permissions. Site access can be changed in Settings. Review the generated permission list in scripts/manifest.shared.mjs.

Common questions

Can I use this local AI extension offline?

After the app and models are downloaded, chat can run without internet when Desktop and a local model run on the same computer. The page content must already be available. Loading websites, using remote models, and tools that contact online services need connectivity. Access through Tailscale has separate network requirements.

Does the model run inside the browser?

No. Off Grid AI Desktop runs or connects to the model. The extension supplies the browser interface and page tools. It does not use WebGPU to run a model inside the browser.

Do I need an API key?

Local models in Off Grid AI Desktop do not need a cloud AI API key. If you select a remote model or service in Desktop, that service's connection and authentication requirements apply.

Does it work without Desktop Pro?

The current extension requires pairing with a compatible Desktop Pro app. Source availability under AGPL-3.0-only does not change the running app's Pro requirement.

Build from source

After the installation steps above:

npm run dev              # watch build for Chrome
npm run build            # build Chrome and Firefox
npm run typecheck        # TypeScript checks
npm test                 # unit and integration tests
npm run test:coverage    # enforce the coverage floor
npm run depcruise        # check import boundaries

For browser tests, install Chromium with npx playwright install chromium, then run npm run test:e2e. These tests use a synthetic desktop gateway and synthetic page data.

npm ci installs the Git hooks in scripts/hooks. The push hook checks types, lint, coverage, import boundaries, and manifest permissions. See CLAUDE.md.

Stack: TypeScript, React 19, Tailwind v4, Vite, and Manifest V3 with webextension-polyfill. Both browser manifests come from scripts/build-manifest.mjs.

Architecture

src/
  background/     desktop requests, task tabs, and browser permissions
  content/        page text, field controls, and autofill
  sidepanel/      chat, models, settings, and vault interface
  shared/
    bridge/       encrypted bridge and chat protocols
    desktop/      desktop link, chat state, and settings
    agent/        browser task access and page inspection
    autofill/     field detection and fill safety
    vault/        vault request and response contracts
    messaging/    extension message contracts
  ui/             shared components and design tokens
integration-tests/fixtures/
                  synthetic desktop services used by tests

Browser-independent logic lives in shared/. The background worker owns network access; ESLint and dependency-cruiser enforce that boundary. Manifest tests check that required host permissions stay limited to loopback and that broader site access stays optional.

Design tokens are copied from @offgrid/design into src/ui/tokens.css. Update them from that source. The extension's Tailwind theme uses the same token values as Desktop.

Contributing

Read CLAUDE.md before a change. It defines the repository's code, test, and review requirements. Use the pull request checklist and include the evidence relevant to your change.

License

AGPL-3.0-only. Copyright Off Grid AI / Wednesday Solutions, Inc.

About

Open-source (AGPL-3.0) local AI browser extension for Chrome, Firefox, Edge, Brave and Arc. Chat with web pages, summarize, run browser tasks and fill saved logins through Off Grid AI Desktop Pro.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages