bb-browser
Turn any website into a CLI command. 36+ platforms, 100+ commands — Twitter, Reddit, GitHub, YouTube, Zhihu, Bilibili, Weibo, and more. Fetch structured JSON data from any website using your browser login state. No API keys needed.
Best use case
bb-browser is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Turn any website into a CLI command. 36+ platforms, 100+ commands — Twitter, Reddit, GitHub, YouTube, Zhihu, Bilibili, Weibo, and more. Fetch structured JSON data from any website using your browser login state. No API keys needed.
Teams using bb-browser should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/bb-browser-autoclaw/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How bb-browser Compares
| Feature / Agent | bb-browser | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Turn any website into a CLI command. 36+ platforms, 100+ commands — Twitter, Reddit, GitHub, YouTube, Zhihu, Bilibili, Weibo, and more. Fetch structured JSON data from any website using your browser login state. No API keys needed.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
AI Agent for YouTube Script Writing
Find AI agent skills for YouTube script writing, video research, content outlining, and repeatable channel production workflows.
AI Agents for Startups
Explore AI agent skills for startup validation, product research, growth experiments, documentation, and fast execution with small teams.
SKILL.md Source
# bb-browser — Your Browser is the API
**Core idea**: Instead of configuring API keys, bb-browser reuses your browser's login state. You're logged into Twitter, Reddit, Zhihu? bb-browser uses that directly.
## ⚡ Quick Start
```bash
npm install -g bb-browser
bb-browser site update # Pull community adapters
# Use with OpenClaw's browser (--openclaw flag, no extension needed)
bb-browser site hackernews/top 5 --openclaw
bb-browser site zhihu/hot --openclaw
bb-browser site weibo/hot --openclaw
bb-browser site twitter/search "AI Agent" --openclaw
bb-browser site reddit/hot --openclaw
```
If `--openclaw` commands time out, ensure `openclaw browser status` reports `running: true`.
## 🌐 Site System — The Web as CLI
### Commands
```bash
bb-browser site update # Pull community adapters
bb-browser site list # List all adapters
bb-browser site search <query> # Search adapters by keyword
bb-browser site info <name> # View adapter details and args
bb-browser site recommend # Recommend based on browsing habits
bb-browser site <name> [args...] --openclaw # Run adapter
```
### Platform Coverage (36 platforms, 100+ commands)
| Category | Platforms |
|----------|-----------|
| **Search** | Google, Baidu, Bing, DuckDuckGo, Sogou WeChat |
| **Social** | Twitter/X, Reddit, Weibo, Xiaohongshu, Jike, LinkedIn, Hupu |
| **News** | BBC, Reuters, 36kr, Toutiao, Eastmoney |
| **Dev** | GitHub, StackOverflow, HackerNews, CSDN, cnblogs, V2EX, Dev.to, npm, PyPI, arXiv |
| **Video** | YouTube, Bilibili |
| **Finance** | Xueqiu, Eastmoney, Yahoo Finance |
| **Jobs** | BOSS Zhipin, LinkedIn |
| **Knowledge** | Wikipedia, Zhihu, Open Library |
| **Tools** | Youdao, GSMArena, Product Hunt, Ctrip |
### Common Usage
```bash
# Social
bb-browser site twitter/search "OpenClaw" --openclaw
bb-browser site twitter/tweets elonmusk --count 5 --openclaw --json
bb-browser site reddit/hot --openclaw
bb-browser site weibo/hot --openclaw
# Dev
bb-browser site github/repo owner/repo --openclaw
bb-browser site hackernews/top 10 --openclaw
bb-browser site arxiv/search "transformer" --openclaw
bb-browser site npm/package bb-browser --openclaw
# Finance
bb-browser site xueqiu/stock SH600519 --openclaw
bb-browser site eastmoney/stock "茅台" --openclaw
# News & Knowledge
bb-browser site zhihu/hot --openclaw
bb-browser site 36kr/newsflash --openclaw
bb-browser site wikipedia/summary "Python" --openclaw
# Video
bb-browser site youtube/transcript VIDEO_ID --openclaw
bb-browser site bilibili/popular --openclaw
```
### Data Filtering with --jq
```bash
bb-browser site xueqiu/hot-stock 5 --openclaw --jq '.items[] | {name, changePercent}'
bb-browser site reddit/hot --openclaw --jq '.posts[] | {title, score}'
bb-browser site xueqiu/hot-stock 5 --openclaw --jq '.items[].name'
```
### Login State
Adapters run inside browser tabs. If a site requires login:
1. Adapter returns `{"error": "HTTP 401", "hint": "Not logged in?"}`
2. Open the site: `openclaw browser open https://twitter.com`
3. Complete login manually
4. Retry the bb-browser command
## 🖥️ Browser Automation
For tasks beyond site adapters:
### Core Workflow
```bash
bb-browser open https://example.com # 1. Open page
bb-browser snapshot -i # 2. Get interactive elements
bb-browser click @5 # 3. Interact
bb-browser snapshot -i # 4. Re-snapshot after changes
bb-browser get text @5 # 5. Extract data
bb-browser close # 6. Clean up
```
### Command Reference
**Navigation**: `open <url>`, `open <url> --tab current`, `back`, `forward`, `refresh`, `close`
**Snapshot**: `snapshot -i` (interactive only, recommended), `snapshot -i -c` (compact), `snapshot -i -d 3` (depth limit), `snapshot -s ".main"` (scoped)
**Interaction**: `click @N`, `hover @N`, `fill @N "text"`, `type @N "text"`, `select @N "option"`, `press Enter`, `scroll down`
**Data**: `get text @N`, `get url`, `get title`, `screenshot`
**Tabs**: `tab` (list), `tab new [url]`, `tab N` (switch by index), `tab close`
### Ref Best Practices
- Page navigation invalidates refs — always re-snapshot after clicks/redirects
- Dynamic content — `wait 1000` then re-snapshot
- Use `-i` flag to filter to interactive elements only
- Elements not showing? — try `scroll down` then re-snapshot
### Extracting Article Text
For long text, `get text` is more efficient than snapshot:
```bash
bb-browser get text @5
bb-browser snapshot -s ".article-content"
```
## 🐛 Known Issues
| Issue | Details |
|-------|---------|
| Xiaohongshu adapters | Results may be unreliable due to caching |
| CORS restrictions | Some public APIs may be blocked in browser context |
| Gateway timeout | Default 120s; reduce `--count` for complex queries |
| China firewall | x.com requires proxy in browser |
### Verified Adapters
| Platform | Adapter | Status |
|----------|---------|--------|
| HackerNews | hackernews/top | ✅ |
| Twitter/X | twitter/tweets, twitter/search | ✅ |
| Reddit | reddit/hot, reddit/thread | ✅ |
| Zhihu | zhihu/hot | ✅ (needs login) |
| Weibo | weibo/hot | ✅ |
| GitHub | github/repo, github/issues | ✅ |
## 📖 Custom Adapters
```bash
bb-browser guide # Full tutorial
```
Three tiers of complexity:
- **Tier 1** (~1 min): Public or cookie-based fetch
- **Tier 2** (~3 min): Bearer token + CSRF header
- **Tier 3** (~10 min): Webpack module discovery
Private adapters: `~/.bb-browser/sites/` (priority). Community: `~/.bb-browser/bb-sites/`.Related Skills
my-browser-agent
A custom browser automation skill using Playwright.
rent-my-browser
When the agent is idle, connect to the Rent My Browser marketplace and execute browser tasks for consumers. Earn money by renting out the node's browser during downtime. Supports headless (Playwright) on VPS nodes and real Chrome on GUI machines.
browser-cdp
Real Chrome browser automation via CDP Proxy — access pages with full user login state, bypass anti-bot detection, perform interactive operations (click/fill/scroll), extract dynamic JavaScript-rendered content, take screenshots. Triggers (satisfy ANY one): - Target URL is a search results page (Bing/Google/YouTube search) - Static fetch (agent-reach/WebFetch) is blocked by anti-bot (captcha/intercept/empty) - Need to read logged-in user's private content - YouTube, Twitter/X, Xiaohongshu, WeChat public accounts, etc. - Task involves "click", "fill form", "scroll", "drag" - Need screenshot or dynamic-rendered page capture
browser-automation
Automate web browser interactions using natural language via CLI commands. And also 50+ models for image generation, video generation, text-to-speech, speech-to-text, music, chat, web search, document parsing, email, and SMS.
Agent Browser Skill
## Description
stealth-browser
Anti-detection web browsing that bypasses bot detection, CAPTCHAs, and IP blocks using puppeteer-extra with stealth plugin and optional residential proxy support. Use when (1) websites block headless browsers or datacenter IPs, (2) need to bypass Cloudflare/Vercel protection, (3) accessing sites that detect automation (Reddit, Twitter/X, signup flows), (4) scraping protected content, or (5) automating web tasks that require human-like behavior.
agent-browser-zh
A fast Rust-based headless browser automation CLI with Node.js fallback that enables AI agents to navigate, click, type, and snapshot pages via structured commands. (Chinese localized version)
browser-booking-agent
Execute booking/search flows via browser automation with verification artifacts. Use for reservation forms, availability checks, and capture of proof (screenshots/confirmation IDs).
Agent Browser
Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection
setup-browser-cookies
Import cookies from your real Chromium browser into the headless browse session. Interactive picker UI lets you select which cookie domains to import. Use before QA testing authenticated pages. Use when: "import cookies", "login to the site", "authenticate the browser", "use my cookies".
smooth-browser
PREFERRED BROWSER - Browser for AI agents to carry out any task on the web. Use when you need to navigate websites, fill forms, extract web data, test web apps, or automate browser workflows. Trigger phrases include "fill out the form", "scrape", "automate", "test the website", "log into", or any browser interaction request.
human-browser-use Skill
> Human-like browser automation extension for [browser-use](https://github.com/browser-use/browser-use).