Gemma 4 Browser Extension

Gemma 4 Browser Extension: on-device Gemma 4 agent for Chrome.

Working when we checked on .

Visit Gemma 4 Browser Extension

What is Gemma 4 Browser Extension?

Gemma 4 Browser Extension is an open-source on-device AI assistant that runs entirely in the Chrome browser using WebGPU and Transformers.js. It is aimed at developers and privacy-conscious users who want local AI browser automation without sending data to external servers. The agent understands natural language commands and manages browser tabs (open, close, switch, list), interacts with webpage content through retrieval-augmented generation, and performs semantic search over browsing history stored in IndexedDB. It uses the instruction-tuned gemma-4-E2B-it-ONNX model from Hugging Face for in-browser inference.

Gemma 4 Browser Extension pricing

Pricing model: Free

Free and open source

Gemma 4 Browser Extension pros

  • All processing happens locally on device with no data sent to external servers
  • Tab management via natural language: list, switch, open, and close tabs
  • RAG-based website interaction with semantic search and element highlighting
  • History vector database in IndexedDB enables semantic search with time filtering
  • Models loaded once in background service worker and shared across all tabs
  • Open-source repository under a public GitHub license

Gemma 4 Browser Extension cons

  • Requires Chrome 113+ with WebGPU support and a modern GPU
  • Must be manually built with pnpm and loaded as an unpacked developer extension
  • First use requires a one-time multi-gigabyte model download
  • Requests broad host permissions to access webpage content on all URLs

Frequently asked questions about Gemma 4 Browser Extension

What does the Gemma 4 Browser Extension do?

It is an on-device AI assistant Chrome extension that runs locally with WebGPU and Transformers.js. It can manage tabs, interact with webpage content via RAG, and semantically search browsing history through natural language commands.

Does my data leave my device?

No. All processing happens locally on your device and no data is sent to external servers, ensuring complete privacy.

Which model powers the extension?

It uses the instruction-tuned onnx-community/gemma-4-E2B-it-ONNX model from Hugging Face, in ONNX format optimized for browser inference with Transformers.js and WebGPU.

What are the system requirements?

You need a Chrome browser with WebGPU support (Chrome 113 or newer) and a modern GPU with WebGPU capabilities.

How is the extension installed?

Clone the repository, run pnpm install and pnpm run build, then load the dist folder in Chrome via chrome://extensions with Developer mode enabled and 'Load unpacked'.

Can it interact with webpage content?

Yes. Using retrieval-augmented generation, it extracts structured content, generates embeddings with all-MiniLM-L6-v2, returns relevant sections for queries, and can visually highlight and scroll to specific elements.

Can it search my browsing history?

Yes. The find_history tool searches browsing history with natural language queries using vector embeddings of titles, descriptions, and URLs stored in IndexedDB, with time-based filtering.

What tab management features does the agent have?

It can list open tabs with titles, URLs and descriptions, switch to a tab by ID, open new URLs in background or foreground tabs, and close specific tabs.

Who is this extension for?

It is aimed at developers and privacy-conscious users interested in running an AI browser agent locally, and it also demonstrates an architecture for integrating Transformers.js into browser extensions.

What happens on first use?

The models download automatically one time on first use. Once loaded, you interact with the AI agent through the chat interface in the extension's sidebar panel.

Categories

Use cases

Alternatives to Gemma 4 Browser Extension

Similar AI tools

Search AI tools on NeedAnAI · All AI tools A–Z