Browser Use
ให้ AI ทำงานบนเว็บแทนคุณ เช่น กรอกฟอร์ม ค้นหา และดึงข้อมูล ใช้เบราว์เซอร์บนคลาวด์ของผู้ทำหรือรันในเครื่องก็ได้
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Drive a stealth-patched Chromium daemon: navigate, screenshot, eval JS, attach over CDP.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
BROWSER_USE_API_KEY, BROWSER_USE_URLค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"sendblue-browser": {
"command": "npx",
"args": [
"-y",
"sendblue-browser-mcp"
],
"env": {
"BROWSER_USE_API_KEY": "ใส่ค่าของคุณ",
"BROWSER_USE_URL": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add sendblue-browser --env BROWSER_USE_API_KEY='ใส่ค่าของคุณ' --env BROWSER_USE_URL='ใส่ค่าของคุณ' -- npx -y sendblue-browser-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"sendblue-browser": {
"command": "npx",
"args": [
"-y",
"sendblue-browser-mcp"
],
"env": {
"BROWSER_USE_API_KEY": "ใส่ค่าของคุณ",
"BROWSER_USE_URL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"sendblue-browser": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"sendblue-browser-mcp"
],
"env": {
"BROWSER_USE_API_KEY": "ใส่ค่าของคุณ",
"BROWSER_USE_URL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
BROWSER_USE_URL envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub sendblue-api ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: BROWSER_USE_API_KEY
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.2.3) เข้า registry 5 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Browser Use, Chrome DevTools MCP, MCP Server Browser
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ให้ AI ทำงานบนเว็บแทนคุณ เช่น กรอกฟอร์ม ค้นหา และดึงข้อมูล ใช้เบราว์เซอร์บนคลาวด์ของผู้ทำหรือรันในเครื่องก็ได้
ให้ AI ใช้เครื่องมือนักพัฒนาของ Chrome ตรวจหน้าเว็บ ดูว่าโหลดช้าตรงไหน และหาข้อผิดพลาด ทำโดยทีม Chrome DevTools
MCP server for browser use access
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
A standalone debug browser for agents. Stealth-patched Chromium behind a tiny HTTP API, with persistent named sessions, an easy purge endpoint, configurable auto screenshots, and CDP attach so any client (Playwright, Puppeteer, undetected-chromedriver, custom scripts) can drive it.
It runs as its own process — not tied to any one Claude / Cursor / Codex session — so multiple agents can share it concurrently, debug each other's flows, and reuse a logged-in session without paying the auth tax every run.
| Need | What you get |
|---|---|
| Not coupled to a single agent | Long-running HTTP daemon. Any tool with a bearer token can drive it. |
| Doesn't look automated | Chromium patched via patchright: navigator.webdriver is hidden, CDP detection vectors are patched, real Chromium binary (no Playwright fingerprints). Passes typical Cloudflare Turnstile and similar low-friction checks; not for hostile scraping at scale. |
| Reusable sessions | Named persistent profiles. Log in once, every subsequent debug run reuses the cookies. |
| One-click reset | POST /sessions/:name/purge clears cookies + active-page storage but keeps the session id, so your client code keeps working. |
| Multi-agent friendly | Each session is an isolated BrowserContext (or its own profile). Run 5+ debug sessions in parallel without state bleed. |
| CDP attach | GET /sessions/:name/cdp-url returns the shared browser CDP URL for non-persistent sessions, so Playwright / Puppeteer / any CDP client can connect() to the debug browser. |
| Auto evidence | Navigation screenshots follow NAV_SCREENSHOT_POLICY (default: headless only). Optional Playwright traces. |
| HTTP-controlled | Plain curl works. No SDK required. |
| Self-contained deploy | One docker compose up on any Mac mini / EC2 / Codespace. No host Chromium needed. |
Prereqs: Bun >=1.3 and Node.js >=20 on your PATH.
git clone https://github.com/sendblue-api/sendblue-browser-use.git
cd sendblue-browser-use bun install bun --bun x patchright install chromium
cp .env.example .env
TOKEN="$(openssl rand -hex 32)" sed -i.bak "s/^BROWSER_USE_API_KEY=.*/BROWSER_USE_API_KEY=$TOKEN/" .env rm .env.bak
bun run dev
Then in another terminal:
source .env
TOKEN="Authorization: Bearer $BROWSER_USE_API_KEY"
curl -s -X POST http://127.0.0.1:8787/sessions \ -H "$TOKEN" -H "Content-Type: application/json" \ -d '{"name":"qa","persistent":true}'
curl -s -X POST http://127.0.0.1:8787/sessions/qa/navigate \ -H "$TOKEN" -H "Content-Type: application/json" \ -d '{"url":"https://trybloom.so/"}'
curl -s http://127.0.0.1:8787/sessions/qa/screenshot?fullPage=true \ -H "$TOKEN" -o /tmp/qa.png
curl -s -X POST http://127.0.0.1:8787/sessions/qa/purge -H "$TOKEN"
echo "BROWSER_USE_API_KEY=$(openssl rand -hex 32)" > .env
docker compose up -d
Same API, exposed on 127.0.0.1:8787. Data persists in ./data/. CDP stays loopback-only inside the container by default; to attach CDP from the host, uncomment CDP_BIND and the 127.0.0.1:9222:9222 port mapping in docker-compose.yml on a trusted machine only.
The repo ships three packaging layers so any agent can drive the daemon with one line of config.
The cross-agent path. Wraps the HTTP API as MCP tools (health, create_session, navigate, screenshot, script, get_cdp_url, purge_session, etc).
{
"mcpServers": { "sendblue-browser": { "command": "npx", "args": ["-y", "sendblue-browser-mcp@0.2.3"], "env": { "BROWSER_USE_URL": "http://127.0.0.1:8787", "BROWSER_USE_API_KEY": " " } } } }
Drop into ~/.cursor/mcp.json, ~/Library/Application Support/Claude/claude_desktop_config.json, ~/.gemini/config/mcp_config.json, etc. For Codex:
codex mcp add sendblue-browser \
--env BROWSER_USE_URL=http://127.0.0.1:8787 \ --env BROWSER_USE_API_KEY= \ -- npx -y sendblue-browser-mcp@0.2.3
Wrapper source: mcp/.
/plugin install sendblue-api/sendblue-browser-use
Pulls .claude-plugin/plugin.json + skills/sendblue-browser/SKILL.md from this repo.
The same skills/sendblue-browser/SKILL.md works as a skill across Codex, Google Antigravity, and Cline. Copy the folder into:
| Agent | Path |
|---|---|
| Codex | ~/.codex/skills/sendblue-browser/ |
| Antigravity | ~/.gemini/skills/sendblue-browser/ |
| Cline | enable Skills in Settings, then drop in its skills directory |
If your repo already follows the agents.md convention, the AGENTS.md in this repo doubles as a copy-pasteable section for any consumer repo that wants to call this daemon.
All routes require Authorization: Bearer $BROWSER_USE_API_KEY except /health.
| Method | Path | Body / Query | Returns |
|---|---|---|---|
GET | /health | — | { ok, service, version, sessions, defaultHeadless, navScreenshotPolicy } |
GET | /sessions | — | { sessions: [...] } |
POST | /sessions | { name, persistent?, headless?, viewport?, userAgent?, locale?, timezone?, traces?, proxy? } | { session } |
GET | /sessions/:name | — | session info + current page url/title |
POST | /sessions/:name/purge | — | { session } — clear cookies + active-origin storage, keep session id |
DELETE | /sessions/:name | — | { ok } — close context, remove profile |
POST | /sessions/:name/navigate | { url, waitUntil?, timeoutMs? } | { url, title, status } |
GET | /sessions/:name/screenshot | ?fullPage=true&selector=... | image/png |
POST | /sessions/:name/script | { code, timeoutMs? } (≤200kB) | { result } — code runs in page context |
GET | /sessions/:name/cookies | ?url=... | { cookies } |
POST | /sessions/:name/cookies | { cookies: [...] } | { ok } |
GET | /sessions/:name/console | ?limit=100 | { messages: [...] } (ring buffer) |
GET | /sessions/:name/cdp-url | — | { cdpUrl, targetId } — for non-persistent sessions only |
POST /sessions/:name/script passes code directly to Playwright's page.evaluate. Send a JavaScript expression, or wrap statements in an IIFE. Scripts time out after 30s by default; pass timeoutMs up to 120000, or 0 to disable the request timeout.
{ "code": "(() => { const x = 1; return x; })()" }
All non-2xx responses share the same envelope. Failures from Playwright are truncated to one line before being returned; the full message is logged server-side with proxy credentials redacted.
{ "error": { "code": "navigate_failed", "message": "net::ERR_NAME_NOT_RESOLVED" } }
| Status | Code | Meaning |
|---|---|---|
| 400 | empty_body | request body is required but was missing |
| 400 | malformed_json | body was not valid JSON |
| 400 | invalid_body | body failed Zod validation (see error.details) |
| 401 | unauthorized | missing or wrong bearer token |
| 404 | not_found | session does not exist |
| 409 | already_exists | a session with that name is already running |
| 409 | cdp_unavailable_for_persistent_session | persistent sessions don't expose the shared CDP url |
| 422 | script_failed | /script request was valid but the in-page eval threw or timed out |
| 500 | internal_error | unexpected — check server logs |
| 502 | navigate_failed screenshot_failed cookie_read_failed cookie_write_failed session_unreachable | Chromium-side failure |
{
name: string; // required, [a-z0-9_-] persistent?: boolean; // default true — profile data survives restarts headless?: boolean | "new"; // persistent sessions only; non-persistent uses DEFAULT_HEADLESS viewport?: { width, height }; userAgent?: string; locale?: string; // default "en-US" timezone?: string; traces?: boolean; // capture a Playwright trace.zip on session close proxy?: { server, username?, password?, bypass? }; }
POST /sessions/:name/cookies accepts up to 500 Playwright-style cookies:
{
cookies: Array<{ name: string; value: string; url?: string; // absolute URL, or domain + path domain?: string; path?: string; expires?: number; httpOnly?: boolean; secure?: boolean; sameSite?: "Strict" | "Lax" | "None"; }>; }
Each cookie must include either url or both domain and path.
~/.sendblue-browser-use/profiles/ /. After a daemon restart, recreate the same named persistent session to reuse that profile. CDP attach is not available for these sessions because each gets its own private browser instance.BrowserContext. State is in-memory only. CDP attach IS available via /sessions/:name/cdp-url, which returns the shared browser-level CDP endpoint plus a targetId for the session page. CDP clients can see the shared debug browser, so keep the CDP port local and trusted and select the returned target before driving.Pick persistent for "log in once, debug for a week" workflows. Pick non-persistent when you need to attach Playwright / Puppeteer directly.
examples/attach-from-playwright.ts — connect Playwright over CDP and drive a page (run with Node/tsx as shown in the file header)examples/attach-from-puppeteer.ts — same with Puppeteerexamples/multi-agent-debug.ts — two agents driving two surfaces in parallelexamples/run-script.sh — curl-only walkthroughThis is built on patchright, a maintained fork of Playwright that:
navigator.webdriverWe deliberately do not pass --disable-blink-features=AutomationControlled or override userAgent/viewport by default — patchright handles those internally and our overrides would defeat its rebrowser patches. Pass an explicit userAgent per session only if you have a reason.
Why patchright over alternatives:
~/.sendblue-browser-use/
├── profiles/ │ └── / # persistent profile dir └── runs/ └── / ├── 2026-05-25T...-nav.png # automatic nav screenshot when policy enables it └── 2026-05-25T...-trace.zip # if traces:true at create
POST /sessions/:name/purge clears cookies and permissions context-wide, then clears localStorage, sessionStorage, IndexedDB, ServiceWorker registrations, CacheStorage, and the console buffer for c
ตัดมาแค่ช่วงต้น อ่านต่อใน repo