fast-browser-use
БесплатноБез исполняемых скриптовНе проверенUse when the user wants extremely fast browser automation via fast-browser-use / fbu, especially for DOM-heavy pages, fast extraction, or browser tasks on…
от aAAaqwq★ 123 звезды на GitHubОб этом скилле
Fastest Browser Use
A Rust-based browser automation engine that provides a lightweight binary driving Chrome directly via CDP. It is optimized for token-efficient DOM extraction, robust session management, and speed.
⚠️ Important: Command Behavior
navigateis a one-shot command — it opens the page, completes, then immediately kills Chrome. Do NOT use it if the user wants to see/interact with the browser.loginkeeps Chrome open and waits for user input (Enter) before saving session and closing. Use this when the user needs to interact manually.
⚠️ 资源清理原则(强制)
所有涉及浏览器的 cron 任务完成后,必须自动关闭 Chrome 进程!
# fbu 的 navigate 命令会自动关闭 Chrome
# 但如果使用其他命令或异常中断,必须手动清理:
# 任务结束后强制清理残留进程
pkill -f chrome
pkill -f chromium
# 或在脚本中使用 timeout 确保清理
timeout --kill-after=5 300 fbu navigate "https://example.com" && pkill -f chrome
原因: 避免内存泄漏和资源占用,防止 Gateway CPU 100% 过载
--headless falseshows the Chrome window on the user's desktop (requires X11/Wayland display). Use this when the user wants to watch operations.--user-data-dirreuses an existing Chrome profile (login state, cookies, extensions). However, it may conflict if Chrome is already running with that profile. Prefer--load-sessionfor saved sessions instead.
🔴 超时与自动关闭(必须遵守)
所有 fbu 命令必须用 timeout 包裹,防止 Chrome 进程残留:
# 标准用法:60秒超时,超时后先 SIGTERM,5秒后 SIGKILL
timeout --kill-after=5 60 fast-browser-use snapshot --url "https://example.com"
# 长任务(如 harvest):120秒超时
timeout --kill-after=5 120 fast-browser-use harvest --url "https://example.com" --selector "a"
超时后清理残留 Chrome 进程(在 cron/自动化任务中建议加):
# 命令结束后确保无残留
timeout --kill-after=5 60 fast-browser-use snapshot --url "..." || true
# 清理可能残留的 Chrome 进程(仅清理 fbu 启动的)
pkill -f "chrome.*--remote-debugging" 2>/dev/null || true
推荐超时时间:
snapshot: 30-60snavigate: 30-60sscreenshot: 30-60sharvest: 60-120slogin: 300s(需要人工交互)- Cloudflare 站点(
--headless false): 翻倍
🔐 Platform Authorization & Login Workflow
When you need to access a platform that requires the user's login (e.g. Polymarket, GitHub, Twitter), follow this complete workflow:
Session Persistence: --user-data-dir vs --load-session
--load-sessiononly restores cookies. Many modern platforms (OAuth, wallet-based, SPA) store auth state in localStorage/IndexedDB, so cookies alone are insufficient.--user-data-dirpersists the entire Chrome profile (cookies + localStorage + IndexedDB + service workers). This is the recommended approach for most platforms.- Use a dedicated profile directory per platform (e.g.
~/.openclaw/chrome-profiles/polymarket/) to avoid lock conflicts with the user's running Chrome.
Complete Workflow
Step 1: Create dedicated profile directory
mkdir -p ~/.openclaw/chrome-profiles/<platform-name>
Step 2: Open visible browser with login command
export CHROME_PATH=/usr/bin/google-chrome # adjust per system
fast-browser-use login \
--url "https://platform.com" \
--headless false \
--user-data-dir ~/.openclaw/chrome-profiles/<platform-name> \
--save-session ./<platform-name>-session.json
--headless falseso the user can see and interact with Chrome--user-data-dirfor full state persistence--save-sessionas a backup (cookies-only fallback)- The command will print "Press Enter after you have logged in..." and wait
Step 3: Ask user to log in
- Tell the user to log in manually in the Chrome window
- Do NOT send Enter until the user explicitly confirms they have logged in
Step 4: User confirms → Save session
- Once the user says they've logged in, send Enter (newline) to the process stdin
- fbu saves cookies to the session file and closes Chrome
Step 5: Verify login state
- Open a new headless instance with the same
--user-data-dirand runsnapshot:
fast-browser-use snapshot \
--url "https://platform.com" \
--user-data-dir ~/.openclaw/chrome-profiles/<platform-name>
- Check the DOM output for logged-in indicators: username, avatar, portfolio balance, dashboard content, account menu, etc.
- If you see "Login" / "Sign up" / "Register" buttons instead → login was NOT saved. Inform the user and re-run from Step 2.
Step 6: Confirm to user
- Report what you found (e.g. "✅ Verified: logged in, portfolio balance $6.02")
- The profile is now ready for future automated use
Subsequent Usage (After Login)
# All future commands for this platform just add --user-data-dir
fast-browser-use navigate \
--url "https://platform.com/dashboard" \
--user-data-dir ~/.openclaw/chrome-profiles/<platform-name>
fast-browser-use snapshot \
--url "https://platform.com/portfolio" \
--user-data-dir ~/.openclaw/chrome-profiles/<platform-name>
Session Expiry
- Before automated tasks, a
Установить fast-browser-use в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл fast-browser-use?
Use when the user wants extremely fast browser automation via fast-browser-use / fbu, especially for DOM-heavy pages, fast extraction, or browser tasks on macOS/Linux with Chrome installed.
Как установить скилл fast-browser-use?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл fast-browser-use запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic