Right-click AI prompt actions in the browser backed by local Ollama models
From README links · today
Browser extension turns selected text into one-click LLM prompts, locally
What they did
They built and shipped Extension | OS, an open-source Chrome/Edge/Opera/Brave extension that puts LLM actions directly into the browser. Instead of copying text into ChatGPT or Claude tabs, a user selects text on any page, right-clicks, and picks a saved prompt such as 'Fix the grammar for this text.' The extension includes a Prompt Factory for authoring custom prompts and choosing what each one does — copy the result to the clipboard or open it in a sidebar. Users pick their provider and model from a selector, and API keys are stored in browser local storage so they never leave the device. For fully local inference, they installed Ollama, pulled a model like llama3.1, and started the server with OLLAMA_ORIGINS=chrome-extension://* so the extension origin is allowed to call it. They also experimented with a beta Mixture of Agents mode that queries multiple models. The project was started at the SF Hackathon x Build Club in July 2024 and published as a pre-release on the Chrome Web Store with a 100-person early adopter cap, plus a manual 'load unpacked' path from the release zip.
How it went
A working, published pre-release extension with a demo GIF, screenshots, and a Chrome Web Store listing compatible with Edge, Opera, and Brave. Core flows — right-click prompt, model selector, prompt authoring, local Ollama inference — are documented and usable. Mixture of Agents remains beta, and the store listing is capped at 100 early adopters, so distribution is still limited.
Worth knowing
Requires manual API key entry on first run, and local mode needs Ollama installed plus the OLLAMA_ORIGINS env var set correctly or requests will be blocked by CORS. The README documents macOS storage paths only. Mixture of Agents is pre-release and may be unstable. The README also contains an affiliate link for VAPI, which is unrelated to core functionality. No benchmark or quality data is provided.
Wiring
The extension is a browser extension (Manifest V3) built to a chrome-mv3-prod.zip release artifact. Users either install from the Chrome Web Store or unzip the release and load it unpacked via chrome://extensions with developer mode enabled; the options page opens automatically for API key entry. Keys live in browser local storage and are read by the extension's background/service-worker context when a prompt runs. A context-menu entry fires on text selection, passing the selected text plus the chosen prompt template to the configured provider. Cloud providers are called with the stored API key; the localhost option instead targets an Ollama server on the default port, which must be started with OLLAMA_ORIGINS=chrome-extension://* so the extension origin passes Ollama's CORS check. The model selector sets which model string is sent per request, and the Prompt Factory defines the template plus output behavior (clipboard copy or sidebar). Mixture of Agents fans a single input out to multiple models and combines results.
Try it yourself
Set up this repo as a local-first browser AI assistant. Steps: 1) Read the README and manifest to identify the build tooling and how to produce chrome-mv3-prod.zip. 2) Install dependencies and build the extension. 3) Document the exact steps to load it unpacked in Chrome from chrome://extensions with developer mode on. 4) Add a setup check for Ollama: verify `ollama pull llama3.1` and that `OLLAMA_ORIGINS=chrome-extension://* ollama serve` is running, and confirm the extension can reach localhost:11434. 5) Trace the code path from context-menu click to prompt execution and report where the provider/model is chosen and where API keys are read from storage. 6) List any hardcoded provider endpoints and flag anything that would break for a self-hosted setup. Output a short setup guide plus a list of files I should read next.
Tools in this stack
Run this stack
Install the stack into this project. It writes AGENTS.md and the manifest, merges the MCP servers into .mcp.json, and — with --yes — runs the tool installs.
npx runchr install runchr/stack-extensionos-and-ollamacurl -s https://api.runchr.com/api/recipes/runchr/stack-extensionos-and-ollama/manifestSystem prompt
You are a setup and code-tracing assistant for the extensionOS browser extension, which runs saved LLM prompts on selected text via right-click against cloud providers or a local Ollama server. Be concrete and file-grounded: read the repo before asserting how anything works, and never claim a capability the code or README does not show.
This system prompt was generated from this stack's copy and tools. A person has not reviewed it.
The manifest is also at api.runchr.com/api/recipes/runchr/stack-extensionos-and-ollama/manifest.