Optima AI Browser

io.github.ascaniolocorotondo由 GitHub 帳號 ascaniolocorotondo 發布v0.2.1更新於 Nov 22, 2026

Browser for AI agents: clean page text, persistent logins, human hand-off for CAPTCHAs.

發布方自己的服務:Browser.lol

概覽

AI 產生的概覽

給 AI 助理使用的本機桌面瀏覽器:把網頁讀成附編號元素的乾淨文字,依元素編號操作,並把驗證碼、登入與付款交給使用者處理。

可以做什麼
  • 開啟網址並以附編號互動元素的乾淨文字回傳頁面,或重新讀取目前頁面。
  • 依編號點擊元素、在輸入欄位輸入文字、選擇下拉選項、捲動頁面,以及上一頁、下一頁或重新載入。
  • 在版面或圖片重要時截圖,並可等待載入較慢的頁面。
  • 把登入、密碼、付款或驗證碼交還使用者處理,並查看當天的瀏覽器操作稽核紀錄。
適用情境
適合助理需要瀏覽沒有 API 或連接器的真實網站,尤其是使用者已登入、且遇到機器人驗證或付款步驟需要真人介入的情況。
執行需求
以 Python 套件形式在本機執行(Python 3.9+),透過 stdio 啟動;macOS 需 Swift 編譯器建置原生引擎,Windows/Linux 需 Playwright 及 Edge、Chrome 或 Chromium。不需 API 金鑰或環境變數;使用者需在 Optima 視窗自行登入網站。
安裝前請注意
助理會在真實網站上操作,購買、傳送或張貼、刪除等動作須在對話中經使用者確認;密碼與付款欄位會被拒絕,只能由使用者填寫。Cookie 與持續登入設定檔保存在本機,瀏覽器會在使用者代理標示自己為 AI 代理。選用的 ntfy 主題推播會把通知送到本機之外。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Optima AI Browser,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[Optima AI Browser]

A browser built for AI assistants.
Clean pages for the agent, a quick tap for the human when it matters.

[tests] [Glama score] [PyPI] [MCP Registry]
macOS · Windows · Linux  |  MCP server + Claude skill  |  MIT


Why Optima?

Ordinary browsers are made for human eyes. When an AI assistant drives one, it wastes time and tokens on ads, pop-ups and cookie walls, loses its logins, and stalls without saying anything the moment a site asks for a human.

Optima fixes the agent side of browsing, and keeps a person in the loop for the parts that need one:

Ordinary browser + AIOptima
What the agent seesRaw HTML or screenshotsClean text with numbered elements: [12 button] Sign in
Cookie bannersThe agent clicks around themDeclined automatically ("reject" / "only necessary")
LoginsLost between sessionsPersistent profile: log in once
CAPTCHA / "checking your browser"Agent gets stuckDetected → you get a notification → you solve it → the agent continues
Passwords & cardsRiskyAlways typed by you; the agent is refused these fields
Buying, posting, deletingHappens silentlyAgent must ask you in chat first
What happened?UnknownDaily audit log

Optima does not solve or bypass CAPTCHAs or bot protection, by design. Those checks are how sites decide who gets in. Optima makes the hand-off to you take seconds instead.

How it works

 AI assistant ──MCP──▶ Optima server (Python) ──▶ engine ──▶ the web   (Claude…)            reading, rules,             macOS: native app on system WebKit                        hand-off, log               Windows/Linux: Edge/Chrome via Playwright                              │                              └──▶ you: notification + "Your turn" banner + Done button
  • macOS: a tiny native app (Swift + the WebKit that ships with macOS) that you compile on your own Mac during install. Nothing is downloaded, which helps on managed Macs where installing third-party apps is restricted.
  • Windows: uses Microsoft Edge (already on every Windows PC) or Chrome through Playwright.
  • Linux: uses Google Chrome if installed, otherwise downloads Playwright's Chromium once.

Install

You need Python 3.9+. On macOS you also need the Swift compiler (Xcode or the Command Line Tools: xcode-select --install).

With pip (all systems)

Optima is on PyPI and in the official MCP registry as io.github.ascaniolocorotondo/optima-ai-browser.

bash
pip install optima-ai-browseroptima setup

optima setup opens the first-run window (on macOS it compiles the native engine the first time). On Windows and Linux, if Playwright has no browser yet: python -m playwright install chromium.

Or run the MCP server without installing anything permanently: uvx optima-ai-browser mcp.

From source: macOS

bash
git clone https://github.com/ascaniolocorotondo/optima-ai-browser.gitcd optima-ai-browsersh install.sh

On macOS the installer also adds Optima AI Browser to ~/Applications. Double-click it to browse yourself, for example to log in to your sites: your assistant shares the same logins.

From source: Linux

bash
git clone https://github.com/ascaniolocorotondo/optima-ai-browser.gitcd optima-ai-browsersh install.sh

If Chromium complains about missing libraries: sudo ~/.optima/venv/bin/python -m playwright install-deps chromium.

From source: Windows (PowerShell)

powershell
git clone https://github.com/ascaniolocorotondo/optima-ai-browser.gitcd optima-ai-browserpowershell -ExecutionPolicy Bypass -File install.ps1

The installer copies Optima into ~/.optima, so you can move or delete the cloned folder. To update, git pull and run the installer again.

First run

The installer opens the Optima window:

  1. Choose your language. English, Italiano, Español, Français, Deutsch or Português. Banners and notifications use it; the agent always gets English.
  2. Connect your assistants. Optima detects Claude Code, the Claude Desktop app and Google Antigravity, installs its skill and registers its MCP server in each one you pick.
  3. Log in to your favourite sites in that same window, so your assistant finds you signed in.

Prefer the terminal? sh install.sh --cli (or install.ps1 --cli).

Then restart your assistant and try: "Use Optima to find the opening hours of the nearest library."

Where Optima connects

AssistantSkillMCP server
Claude Code~/.claude/skills/optima/user scope (claude mcp add-json)
Claude Desktopupload ~/.optima/optima-skill.zip in Settings → Capabilities → Skillsclaude_desktop_config.json
Google Antigravity~/.gemini/config/skills/optima/~/.gemini/config/mcp_config.json

Connecting other MCP clients

Any MCP client can use Optima. If you installed it with pip:

json
{ "command": "optima", "args": ["mcp"] }

From source, use the launcher (no environment variables needed):

json
{  "command": "/path/to/python",  "args": ["~/.optima/app/src/optima_launcher.py", "mcp"]}

On macOS /path/to/python is your python3; on Windows and Linux it is the one in ~/.optima/venv. Copy src/optima/skill/ into your assistant's skills folder if it supports Agent Skills.

Tools for the agent

ToolWhat it does
browser_open(url)Open a page, return it as clean text
browser_read(max_chars?)Read the current page again
browser_click(id, confirmed?)Click an element by its number
browser_type(id, text, submit?, confirmed?)Type into a field (never passwords or cards)
browser_select(id, value)Pick an option in a drop-down
browser_scroll(direction)down, up, top, bottom
browser_navigate(action)back, forward, reload
browser_screenshot()PNG of the page, when visuals matter
browser_ask_human(reason)Hand control to you and wait for Done
browser_wait(seconds)Wait for slow pages
browser_recent_actions(limit?)Today's audit log

The bundled skill (src/optima/skill/SKILL.md) only applies where Optima is turned on: if the browser_* tools are not available in a chat (for example you disabled the optima MCP server there), the assistant ignores the skill and uses its usual browser without mentioning Optima. Where Optima is on, it teaches the assistant when to use Optima (APIs and connectors first), how to act by element id, when to call you, and to always confirm purchases, messages and deletions with you.

Configuration

~/.optima/config.json (created on first run):

KeyDefaultMeaning
languagechosen on first runen, it, es, fr, de, pt
engineautowebkit (macOS), playwright
playwright_channelautochrome, msedge, chromium
headlessfalseHide the window (Playwright only; hand-offs need a window)
identify_as_agenttrueAdds Optima/<version> (AI agent; +repo) to the user agent
dismiss_cookie_bannerstrueAlways the privacy-preserving choice
auto_handofftrueCall you automatically when a human check appears
handoff_timeout_seconds300How long to wait for you
min_action_interval_ms400Gentle pace between actions
notify_desktoptrueSystem notification on hand-off
ntfy_topic""Optional phone push via ntfy: set a private topic name and subscribe to it in the ntfy app
policies.confirm_before["purchase","send","delete"]Actions the agent must confirm with you
policies.block[]Actions never allowed (same categories, plus submit)
policies.human_only_fieldstruePassword and payment fields are yours only

Data lives in ~/.optima/: config.json, logs/ (one JSON-lines file per day) and, for Playwright, profile/. The macOS engine keeps cookies in the system WebKit store for the app.

Commands

bash
python3 -m optima setup            # first-run window again (add --cli for terminal)python3 -m optima open example.com # open Optima yourself, e.g. to log inpython3 -m optima doctor           # check the installationpython3 -m optima mcp              # the MCP server (started by assistants)

Run them with PYTHONPATH=~/.optima/app/src (or from the repo's src folder).

Principles

  • Humans decide. CAPTCHAs, logins, passwords, payments and one-time codes are always done by you.
  • Honest. Optima identifies itself as an AI agent and paces its requests.
  • Private. No telemetry. Cookie banners get "reject". Nothing leaves your machine except the pages you visit and, if you set one, your ntfy notification.
  • Accountable. Every action is logged locally.

Roadmap

  • Web Bot Auth signed requests, so sites that welcome verified agents can let Optima in without a check
  • Multiple tabs and downloads
  • Per-site rules (e.g. read-only on banking sites)
  • Packaged releases

Contributing

Issues and pull requests are welcome. Keep the principles above: features that help an agent evade CAPTCHAs, fingerprinting or bot detection won't be merged.

How it was made

Optima is made by Ascanio (@ascaniolocorotondo) with the help of Claude, Anthropic's AI assistant. It is tested on macOS, Windows and Linux in CI.

License

MIT

來源:README.md,提交 a4a0182

工具

11

browser_open

Open a URL in Optima and return the page as clean text. Interactive elements appear as [id kind] label, e.g. [12 button] Sign in. Cookie banners are declined automatically and, if a human check appears, the user is asked to complete it before this returns.

輸入參數url必填

browser_read

Read the current page again (after scrolling, or to get fresh element ids).

輸入參數max_chars

browser_click

Click an element by id and return the updated page. Purchases, sending/posting and deleting are refused until the user confirms in chat; then retry with confirmed=true.

輸入參數id必填confirmed

browser_type

Type text into a field by id. submit=true presses Enter / submits the form. Password and payment fields are refused: use browser_ask_human for those.

輸入參數id必填text必填submitconfirmed

browser_select

Choose an option in a <select> by its visible text or value.

輸入參數id必填value必填

browser_scroll

Scroll the page and return what is now visible.

輸入參數direction

browser_navigate

Go back, forward, or reload.

輸入參數action必填

browser_screenshot

Take a screenshot of the page. Use only when layout or images matter; browser_read is cheaper.

無需輸入參數。

browser_ask_human

Hand control to the user: brings the window forward, shows a banner with your reason and sends a notification, then waits until they press Done. Use it for logins, passwords, payments, CAPTCHAs, or anything only a person should do. Never try to solve a CAPTCHA yourself.

輸入參數reason必填

browser_wait

Wait up to 30 seconds (for slow pages), then return the page.

輸入參數seconds必填

browser_recent_actions

List the browser actions taken today (the audit log), newest last.

輸入參數limit

版本歷史

1
  1. v0.2.1最新Nov 21, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Browser 整合