欣淇
发布于 2026-05-18 / 0 阅读
0
0

🌐 Web Access:6.5k Stars,给你的 AI Agent 装上完整联网能力,一条命令搞定 Twitter/Reddit/小红书

🌐 Web Access:6.5k Stars,给你的 AI Agent 装上完整联网能力,一条命令搞定 Twitter/Reddit/小红书

项目地址:eze-is/web-access | ⭐ 6,524 Stars | 🛠 JavaScript | 作者:一泽 Eze

😤 老实说,AI Agent 啥都好,就是一到联网就抓瞎。让它去搜个资料、读个 YouTube 视频、看个小红书,它要么返回一堆没洗的 HTML 标签,要么直接 403 被墙。每个平台都有自己的门槛——Twitter API 要付费、B站海外 IP 被拦、小红书必须登录……折腾一圈下来,比你自己动手还累。

Web Access 就是来填这个坑的。6.5k Stars,2026 年 3 月才出的项目,v2.5.2 已经成熟到能同时调 WebSearch / WebFetch / curl / Jina / CDP 五套方案,按场景自主判断用哪个。兼容 Claude Code、Cursor、Gemini CLI、Codex CLI 所有支持 SKILL.md 的 Agent。

🌐 Web Access: 6.5k Stars — Give Your AI Agent Real Internet Capabilities, One Command to Read Twitter/Reddit/Xiaohongshu

eze-is/web-access | ⭐ 6,524 Stars | 🛠 JavaScript | Author: 一泽 Eze

Honestly, AI agents are great at everything except going online. Ask them to search something, read a YouTube video, or check Xiaohongshu — they either return raw HTML tags or get 403'd. Every platform has its own barriers — Twitter API costs money, Bilibili blocks overseas IPs, Xiaohongshu requires login... By the time you set everything up, you could have done it yourself.

Web Access fixes this. 6.5k Stars, launched March 2026, v2.5.2 already mature enough to orchestrate WebSearch / WebFetch / curl / Jina / CDP — five approaches that it selects autonomously per scenario. Works with Claude Code, Cursor, Gemini CLI, Codex CLI — any agent supporting SKILL.md.


安装:选一种就行

# 方式一:npx skills 一键安装(推荐)
npx skills add eze-is/web-access

# 方式二:Plugin 安装(Claude Code)
claude plugin marketplace add https://github.com/eze-is/web-access
claude plugin install web-access@web-access --scope user

# 方式三:手动
git clone https://github.com/eze-is/web-access ~/.claude/skills/web-access

安装完了?Agent 自动接管,直接跟它说就行:

"帮我搜一下 xxx 的最新进展"
"读一下这个网页"
"去小红书搜 xxx 的账号"
"帮我看看这个 YouTube 视频讲了什么"

Install: Pick One

# Option 1: npx skills (recommended)
npx skills add eze-is/web-access

# Option 2: Plugin (Claude Code)
claude plugin marketplace add https://github.com/eze-is/web-access
claude plugin install web-access@web-access --scope user

# Option 3: Manual
git clone https://github.com/eze-is/web-access ~/.claude/skills/web-access

Once installed, just tell your agent: "Search for the latest on xxx", "Read this page", "Search Xiaohongshu for xxx's account".


🛠 CDP 前置配置(浏览器自动化模式)

CDP 模式需要 Node.js 22+ 和浏览器开启远程调试:

  1. 浏览器地址栏打开:Chrome → chrome://inspect/#remote-debugging,Edge → edge://inspect/#remote-debugging
  2. 勾选 Allow remote debugging for this browser instance
  3. 如果默认不是你想要的浏览器,在 config.env 里配:
# 留在空的每次都问;设值就固定
WEB_ACCESS_BROWSER=edge

临时切换(不改配置):

node "${CLAUDE_SKILL_DIR}/scripts/check-deps.mjs" --browser chrome

🛠 CDP Setup (Browser Automation)

CDP mode needs Node.js 22+ and remote debugging enabled:

  1. Open in your browser: Chrome → chrome://inspect/#remote-debugging, Edge → edge://inspect/#remote-debugging
  2. Check Allow remote debugging for this browser instance
  3. Set default browser in config.env:
# Empty = ask each time; set = fixed
WEB_ACCESS_BROWSER=edge

🔧 CDP Proxy API:直接操控浏览器

最骚的是它自带的 CDP Proxy,通过 WebSocket 直连你的日常浏览器,天然携带登录态,不怕被封:

# 启动 Proxy(Agent 会自动管理,不用手动做)
node "${CLAUDE_SKILL_DIR}/scripts/cdp-proxy.mjs" &

# 页面操作
curl -s -X POST --data-raw 'https://example.com' http://localhost:3456/new        # 新建 tab
curl -s -X POST "http://localhost:3456/eval?target=ID" -d 'document.title'        # 执行 JS
curl -s -X POST "http://localhost:3456/click?target=ID" -d 'button.submit'        # JS 点击
curl -s -X POST "http://localhost:3456/clickAt?target=ID" -d '.upload-btn'        # 真实鼠标点击
curl -s "http://localhost:3456/screenshot?target=ID&file=/tmp/shot.png"           # 截图
curl -s "http://localhost:3456/health"                                             # 查看状态

Proxy 闲置 15 分钟自动关 tab,防止 Agent 异常退出留下孤儿。用 CDP_TAB_IDLE_TIMEOUT 环境变量调超时。

Core Highlights

  • Auto tool selection — WebSearch / WebFetch / curl / Jina / CDP, picks the right one per scenario
  • CDP Proxy — connects your real browser with login sessions intact, no more 403s
  • Parallel execution — spawns sub-agents for multi-target research, tab-level isolation
  • Site experience — stores operation patterns per domain, reused across sessions
  • Media extraction — grabs image/video URLs from DOM, or screenshots video frames at any timestamp

💡 要点总结

  • 一条命令安装npx skills add eze-is/web-access,兼容所有主流 Agent
  • CDP Proxy 直连本机浏览器 — 天然带登录态,动态页面也能操作
  • 五通道联网策略 — WebSearch/WebFetch/curl/Jina/CDP 自动选最优
  • 并行调研 + 站点经验 — 多目标同时跑,跨 session 记住各平台特征
  • 免费开源 — 唯一可能的开销是服务器代理($1/月),本地用完全免费

标签:#Agent #ClaudeCode #WebAutomation #Skill #MCP

TL;DR

  • One-command installnpx skills add eze-is/web-access, works with all major agents
  • CDP Proxy connects your local browser — carries login sessions, handles dynamic pages
  • 5-channel web strategy — WebSearch/WebFetch/curl/Jina/CDP auto-selects the best
  • Parallel research + site experience — multi-target, cross-session domain memory
  • Free & open-source — only cost is a proxy server ($1/mo) if needed

评论