- Instagram: Cookie-Editor 导入(推荐)或 instaloader --login - LinkedIn: linkedin-scraper-mcp --login(服务器需 VNC 远程桌面) - Boss直聘: 启动 MCP 后 App 扫码 README 平台表格更新登录方式说明
8 KiB
Agent Reach — Installation Guide
For Humans
Copy this to your AI Agent:
帮我安装 Agent Reach:https://raw.githubusercontent.com/Panniantong/agent-reach/main/docs/install.md
For AI Agents
Goal
Install Agent Reach and make sure all channels are working. Your user expects you to have full internet access capabilities when this is done — reading tweets, searching Reddit, watching YouTube, browsing GitHub, and more.
Step 1: Install
pip install https://github.com/Panniantong/agent-reach/archive/main.zip
agent-reach install --env=auto
This auto-installs system dependencies (gh CLI, Node.js, mcporter, bird), configures Exa search, detects environment, and tests all channels.
Read the output carefully, then run:
agent-reach doctor
Step 2: Fix what's broken
agent-reach doctor shows you which channels are active and which aren't.
Your goal is to get as many channels to ✅ as possible. If something failed during install or shows as ❌/⚠️ in doctor, fix it yourself. You're a capable AI Agent — diagnose the problem, try alternative approaches, and iterate until it works.
Only ask the user when you genuinely need their input (see below).
Step 3: Configure things that need user input
Some channels need credentials only the user can provide. Based on the doctor output, ask for what's missing:
Twitter search & posting (server users):
"To unlock Twitter search, I need your Twitter cookies. Install the Cookie-Editor Chrome extension, go to x.com/twitter.com, click the extension → Export → Header String, and paste it to me." Extension: https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm
agent-reach configure twitter-cookies "PASTED_STRING"
Reddit & Bilibili full access (server users):
"Reddit and Bilibili block server IPs. To unlock full access, I need a residential proxy. You can get one at https://webshare.io ($1/month). Send me the proxy address."
agent-reach configure proxy http://user:pass@ip:port
XiaoHongShu / 小红书 (需要 Docker):
"小红书需要一个 MCP 服务。需要你的机器上有 Docker。安装好 Docker 后我来搞定剩下的。"
docker run -d --name xiaohongshu-mcp -p 18060:18060 xpzouying/xiaohongshu-mcp
mcporter config add xiaohongshu http://localhost:18060/mcp
如果在服务器上,建议加代理避免 IP 风控:
docker run -d --name xiaohongshu-mcp -p 18060:18060 -e XHS_PROXY=http://user:pass@ip:port xpzouying/xiaohongshu-mcp登录方式:
- 本地电脑(有浏览器): 打开 http://localhost:18060 扫码登录即可。
- 服务器(无 UI 界面): 服务器上通常没有浏览器,无法直接扫码。最方便的方式是在自己的电脑上用浏览器登录小红书,然后用 Cookie-Editor 插件导出 Cookie(Header String 格式),发给 Agent 即可完成配置。详见 Cookie 导出指南。
Instagram (需要 instaloader):
"Instagram 需要 instaloader。我来帮你安装。"
pip install instaloader
登录方式(解锁私密内容):
- 方法 1(推荐):Cookie-Editor 导入: 在浏览器登录 Instagram → 用 Cookie-Editor 导出 Header String → 粘贴:
agent-reach configure instagram-cookies "sessionid=xxx; csrftoken=yyy; ..."- 方法 2:instaloader 命令行登录:
instaloader --login YOUR_USERNAME(需要输密码,有 2FA 的话还要输验证码)
LinkedIn (可选 — linkedin-scraper-mcp):
"LinkedIn 基本内容可通过 Jina Reader 读取。完整功能(Profile 详情、职位搜索)需要 linkedin-scraper-mcp。"
pip install linkedin-scraper-mcp
登录方式(需要浏览器界面):
linkedin-scraper-mcp 使用 Chromium 浏览器登录,需要你能看到浏览器窗口。
本地电脑(有桌面): 直接运行:
linkedin-scraper-mcp --login --no-headless浏览器会弹出来,手动登录 LinkedIn 即可。
服务器(无 UI): 需要通过 VNC 远程桌面操作:
# 1. 服务器上安装并启动 VNC(如已有可跳过) apt install -y tigervnc-standalone-server vncserver :1 -geometry 1280x720 # 2. 用 VNC 客户端连接 服务器IP:5901 # 3. 在 VNC 桌面的终端里运行: export DISPLAY=:1 linkedin-scraper-mcp --login --no-headless在 VNC 里看到浏览器后手动登录。登录成功后 session 会保存到
~/.linkedin-mcp/profile/。登录后启动 MCP 服务:
linkedin-scraper-mcp --transport streamable-http --port 8001 mcporter config add linkedin http://localhost:8001/mcp
Boss直聘 (可选 — mcp-bosszp):
"Boss直聘职位页面可直接读取。完整搜索和打招呼功能需要 mcp-bosszp。"
git clone https://github.com/mucsbr/mcp-bosszp.git && cd mcp-bosszp
pip install -r requirements.txt && playwright install chromium
登录方式(手机 App 扫码):
mcp-bosszp 使用二维码登录,需要 Boss直聘 App 扫码。
# 1. 启动 MCP 服务 python boss_zhipin_fastmcp_v2.py # 2. 通过 MCP 触发登录(会生成二维码图片) mcporter call 'bosszhipin.start_login()' # 3. 浏览器打开二维码图片(服务器上用 http://服务器IP:8000/static/qrcode_xxx.png) # 4. 用 Boss直聘 App 扫码确认扫码成功后 session 自动保存,之后可以搜索职位和自动打招呼。
或用 Docker:
docker-compose up -d
Step 4: Final check
Run agent-reach doctor one final time and report the results to your user.
Step 5: Set up daily monitoring (OpenClaw only)
If you are running inside OpenClaw, ask your user:
"Agent Reach 安装好了。要不要我设一个每天自动检查的任务?它会帮你盯着这些渠道是否正常、有没有新版本。有问题才会通知你,没问题不打扰。"
If the user agrees, create a cron job (daily, sessionTarget: "isolated", delivery: "announce") with this task:
运行 agent-reach watch 命令。
如果输出包含"全部正常",不需要通知用户,静默结束。
如果输出包含问题(❌ ⚠️)或新版本(🆕),把完整报告发给用户,并建议修复方案。
如果有新版本可用,问用户是否要升级(升级命令:pip install --upgrade https://github.com/Panniantong/agent-reach/archive/main.zip)。
If the user wants a different agent to handle it, let them choose.
Quick Reference
| Command | What it does |
|---|---|
agent-reach install --env=auto |
Full auto-setup (installs deps + configures) |
agent-reach doctor |
Show channel status |
agent-reach watch |
Quick health + update check (for scheduled tasks) |
agent-reach check-update |
Check for new versions |
agent-reach configure twitter-cookies "..." |
Unlock Twitter search + posting |
agent-reach configure proxy URL |
Unlock Reddit + Bilibili on servers |
agent-reach read <url> |
Read any URL |
agent-reach search "query" |
Search the web |
agent-reach search-reddit "query" |
Search Reddit |
agent-reach search-twitter "query" |
Search Twitter |
agent-reach search-github "query" |
Search GitHub |
agent-reach search-youtube "query" |
Search YouTube |
agent-reach search-bilibili "query" |
Search Bilibili |
agent-reach search-xhs "query" |
Search XiaoHongShu |
agent-reach search-instagram "query" |
Search Instagram |
agent-reach search-linkedin "query" |
Search LinkedIn |
agent-reach search-bosszhipin "query" |
Search Boss直聘 |