Nanobrowser 是一个以 Chrome/Edge 扩展形式运行的开源浏览器 AI 代理。在侧边栏用自然语言说明任务后,它会读取页面内容、点击链接、填写表单、在标签页之间切换,把流程走完。它通过 Chrome 调试协议操作浏览器,用的是你自己已登录的账号,因此不需要再额外配置一套爬虫环境。主要特点是把控制权交回用户:默认的 Ask 模式下,提交、发送、删除、上传前都会先征询;遇到付款、密码、验证码则直接交给人工。模型可自由选择,既接 Anthropic、OpenAI、Gemini、DeepSeek 等云端服务,也能连 Ollama、LM Studio 本地模型,用自己的 API Key 按量付费。此外支持多任务并行、文件与截图上传、结果导出为 CSV 或 Markdown、常用提示词快捷启动、语音输入、跨对话记忆与聊天记录回放。
Nanobrowser is an open-source AI agent that works in your own browser. Tell it a task in the side panel; it reads the pages, clicks, types and moves between tabs to get it done, and it asks you before it submits, sends, deletes or uploads anything.
⬇️ Get Nanobrowser from the Chrome Web Store for free
👏 Join the community on Discord | X
❤️ Support the project by sponsoring us. Every contribution helps keep Nanobrowser free and open source.
/. You can give it a start page and a model.| What the agent does | Ask mode (default) | Auto mode |
|---|---|---|
| Read pages, click links, scroll, move between tabs | Goes ahead | Goes ahead |
| Submit, send, delete or upload | Asks you first | Goes ahead |
| Pay, enter a password or code, grant access | Hands the step to you | Hands the step to you |
You can also set a site to Allow (go ahead in both modes), Ask (ask in both modes) or Block (the agent may not use it), in Settings → Permissions.
[!NOTE] You are always in charge.
- The agent may not notice every step that needs you. When it does notice one, your settings always apply, and no AI model can change them.
- The agent reads text on a web page as information, never as orders. This helps against pages that try to trick it (prompt injection), but no protection is perfect.
- So use sites you trust, keep an eye on the agent, and press Stop at any time to take over.
| Kind | Providers |
|---|---|
| Cloud | Anthropic, OpenAI, Google Gemini, OpenRouter, xAI Grok, DeepSeek, Mistral, and any OpenAI-compatible endpoint |
| Local | Ollama and LM Studio, and other servers (llama.cpp, vLLM and others) through the OpenAI-compatible provider |
OLLAMA_ORIGINS to allow the extension, and LM Studio needs CORS on; the provider card shows how when a request is refused."Summarize this page in a few bullet points."
"Compare the three laptops I have open and put the prices and specs in a table."
"Find a portable Bluetooth speaker on Amazon that is water-resistant, under $50, with at least 10 hours of battery."
"Extract the top 10 headlines from TechCrunch in the last 24 hours and save them as a CSV file."
Install it from the Chrome Web Store: click Add to Chrome and confirm. In Edge, first allow extensions from other stores when Edge asks.
Set it up: the welcome page opens and helps you connect a cloud provider or a local model. You can also do it later in Settings → Providers.
Use it: click the Nanobrowser icon in the toolbar, or press Alt+Shift+N, to open the side panel on the current tab.
Prerequisites: Node.js 24 LTS and pnpm 10 (corepack switches to the pinned 10.34.7).
Clone and build:
git clone https://github.com/nanobrowser/nanobrowser.git
cd nanobrowser
corepack enable # skip if pnpm 10 is already installed
pnpm install
pnpm build # builds the extension into dist/
Load it in Chrome or Edge:
chrome://extensions (in Edge, edge://extensions).Developer mode (top right).Load unpacked and choose the dist folder.Then set it up and use it as in the Quick Start. To update, pull the latest source, run pnpm build again, and click the reload icon on the Nanobrowser card in the extensions page.
pnpm dev # run in development mode, reloads on changes; load dist/ in Chrome
pnpm zip # make a release build as a zip file in dist-zip/
pnpm type-check # check types
pnpm lint # check code style and import rules
pnpm test # run the unit tests
pnpm install-chrome # install Chrome for Testing, used by the browser tests
pnpm autorun scenarios # run the browser tests on local test pages, without a window
How it works. The agent sits on top of a browser control layer. The layer looks at the page, acts on it, and reports what happened. It has no AI model in it, so the same input always gives the same result. This makes the agent more reliable:
The layer talks to the page only through Chrome's chrome.debugger API, and uses Puppeteer to keep track of frames on the page. For developers there is a test panel to try the layer by hand: bind a key to the open-test-panel command in chrome://extensions/shortcuts.
AGENTS.md (also CLAUDE.md) explains the design rules, how the repository is laid out and how we work, for people and for AI coding assistants.
Contributions of all kinds are welcome:
If you find a security vulnerability, please do not disclose it in public issues, pull requests or discussions. Report it through a GitHub Security Advisory, so it can be fixed before it is made public. See SECURITY.md.
Nanobrowser builds on other great open-source projects:
Thanks to their creators and contributors.
Nanobrowser is licensed under the Apache License 2.0. See the LICENSE file for details.
内容由编辑整理,部分信息来自 GitHub 与项目官网,版权归原作者所有。发现错误?报告问题