Chrome2api is an open-source project that creates a local wrapper around Google's on-device Gemini Nano AI model, which is built into the Chrome browser. It allows users to run the AI directly on their Windows computer without needing Chrome open, without an internet connection, and without sending data to the cloud. The project provides both a command-line tool for quick AI queries and a local web server that mimics the popular OpenAI API format, so existing chat tools can use it. Users must provide their own copy of Chrome's AI model files (extracted from their installed Chrome browser), which the project clearly explains are proprietary Google files and are intentionally not included in the repository.
How It Works
You find Chrome2api, a project that lets you run Google's on-device AI model (Gemini Nano) directly on your Windows computer without needing the Chrome browser open.
You copy a few large files from your installed Chrome browser into the project folder—the AI model weights and two supporting libraries that Chrome uses to run AI.
You run a simple script that compiles the source code into a small executable that can talk to Chrome's AI runtime.
You type a simple command with your prompt, and the AI responds instantly—no internet, no browser, just your local machine thinking.
You run a single command with your prompt and get an immediate text response, with optional support for images or audio.
You start a local server that works like OpenAI's API, so any chat tool that supports OpenAI can talk to your local AI.
You send prompts with text, images, or audio, and the AI responds—everything runs privately on your own computer.
You now have a fast, local AI that works without internet, keeps your conversations private, and responds like a cloud AI service.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.