whatisgithub

What is chrome-ai-tools?

donpark/chrome-ai-tools — explained in plain English

Analysis updated 2026-05-18

0PythonAudience · developerComplexity · 2/5Setup · easy

In one sentence

A bridge that lets you call Chrome's built in Gemini Nano AI features from the command line, Node.js, or Python, instead of only from inside a browser page.

Mindmap

mindmap
  root((chrome-ai-tools))
    What it does
      Bridges Chrome AI to CLI
      Runs Gemini Nano locally
      Queues prompts via server
    Tech stack
      Python server
      Node.js client
      Chrome bridge page
    Use cases
      Prompt summarize translate write
      No API keys needed
      Pi agent skill
    Audience
      Developers
      AI prototypers
    Setup
      Install with npm
      Run python3 server.py
      Keep bridge tab open

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Call Chrome's on device AI for prompting, summarizing, translating, or writing text from a script or CLI.

USE CASE 2

Prototype AI features without needing API keys or a paid cloud AI service.

USE CASE 3

Automate text tasks by piping file contents into the chrome-ai command line tool.

USE CASE 4

Install chrome-ai-tools as a skill for the Pi coding agent.

What is it built with?

PythonNode.jsTypeScriptChrome

How does it compare?

donpark/chrome-ai-tools0xallam/my-recipe0xhassaan/nn-from-scratch
Stars00
LanguagePythonPythonPython
Last pushed2022-11-22
MaintenanceDormant
Setup difficultyeasymoderatemoderate
Complexity2/52/54/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires a recent desktop Chrome (v129+) with the Prompt API and Python 3.9 or newer, keep the bridge tab open while using it.

The README does not state a license.

So what is it?

chrome-ai-tools lets you call Chrome's built in AI features, which run on a model called Gemini Nano, from a command line, from Node.js, or from Python, instead of only from inside a browser page. Chrome's AI APIs are normally locked to running inside browser pages, so this project bridges that gap. A small Python server manages a queue of prompts, and a page you open once in Chrome picks up those prompts and actually calls the AI directly, then sends the result back to the server. You install it with npm, then start the included Python server, which listens on a local address, and open that address once in a Chrome browser tab, leaving it open in the background. After that, you can send prompts using a command line tool called chrome-ai, or by importing helper functions into a Node.js or Python project, or even by sending plain HTTP requests with a tool like curl. Four kinds of tasks are supported: general prompting with an optional system instruction, summarizing a block of text, translating text between two languages, and writing new text such as a poem, given an optional context. Each of these can be piped text from a file, called from code, or requested with a single command line call. No browser extensions, no separate automated browser tooling, and no API keys are required, only a recent desktop version of Chrome and Python 3.9 or newer. The project is described as alpha status: it is not yet published to npm, the interfaces may still change, and some edge cases are not yet handled, but it works for prototyping through a local install. It also ships as an installable skill for a coding agent called Pi.

Copy-paste prompts

Prompt 1
Help me install chrome-ai-tools and start the Python server so I can use Chrome's built in AI from the command line.
Prompt 2
Show me how to call the summarize and translate functions from a Node.js script using chrome-ai-tools.
Prompt 3
Write a small Python script that uses chrome-ai-tools' prompt function with a system message.
Prompt 4
Explain how the bridge page and Python server pass prompts and results back and forth in chrome-ai-tools.

Frequently asked questions

What is chrome-ai-tools?

A bridge that lets you call Chrome's built in Gemini Nano AI features from the command line, Node.js, or Python, instead of only from inside a browser page.

What language is chrome-ai-tools written in?

Mainly Python. The stack also includes Python, Node.js, TypeScript.

What license does chrome-ai-tools use?

The README does not state a license.

How hard is chrome-ai-tools to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is chrome-ai-tools for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.