Panniantong/Agent-Reach

Capability layer that installs, routes and health-checks upstream tools so AI agents can read and search web, YouTube, GitHub, Twitter, Reddit, Bilibili, XiaoHongShu and more.

  • 115k GitHub stars
  • Python
  • ⚖️ MIT
  • 🎯 Beginner

Last verified: repo last pushed

Panniantong/Agent-Reach preview image

What it is

Agent Reach is a capability layer for AI agents. It picks, installs and health-checks the most reliable upstream tool for each platform, such as Jina Reader, yt-dlp, gh CLI, bili-cli, OpenCLI and Exa via mcporter. It does not wrap the reading itself: the agent calls the upstream tools directly. Each platform has an ordered list of preferred and fallback backends, and agent-reach doctor reports which ones work and which one is currently in use.

Who it's for

  • Users of AI agents that can run shell commands (Claude Code, OpenClaw, Cursor, Windsurf) who want internet access for them
  • Developers who want agents to read and search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu and similar platforms without wiring up each tool by hand

Requirements

Requirements

  • An AI agent that can execute shell commands
  • Python 3.10+
  • OpenClaw users must enable exec permission (tools profile set to "coding") before installing
  • Node.js, gh CLI and mcporter are checked by the installer, which suggests how to install any that are missing
  • Login-required platforms (Twitter, Reddit, Facebook, Instagram, XiaoHongShu) need cookies or a browser login session, e.g. via OpenCLI or Cookie-Editor export
  • A server proxy (about $1/month) is only needed when deployed on a server, not on a local computer

Setup

  1. Ask your agent to install it

    Paste this sentence to your AI agent (Claude Code, OpenClaw, Cursor, etc.); the agent completes the remaining steps itself.

    text
    帮我安装 Agent Reach:https://raw.githubusercontent.com/Panniantong/agent-reach/main/docs/install.md
  2. OpenClaw: enable exec permission first

    With the default messaging tool profile OpenClaw cannot run commands. Set the coding profile, then restart the Gateway and start a new conversation.

    bash
    openclaw config set tools.profile "coding"
  3. Safe check-only install

    By default agent-reach install only checks the environment and does not install system packages or write config. System changes need an explicit --system flag.

    bash
    agent-reach install --env=auto
  4. Install system dependencies explicitly

    Use only when you explicitly allow the tool to modify the current machine.

    bash
    agent-reach install --env=auto --system
  5. Update

    Updating is also a single sentence given to the agent.

    text
    帮我更新 Agent Reach:https://raw.githubusercontent.com/Panniantong/agent-reach/main/docs/update.md

Examples

Preview install actions

bash
bash
agent-reach install --env=auto --dry-run

What it does: Shows everything the installer would do without making any changes.

Check channel health

bash
bash
agent-reach doctor

What it does: Reports which platforms work, which do not, how to fix them, and which backend is currently in use.

Read any web page

bash
bash
curl https://r.jina.ai/URL

What it does: Zero-config page reading through Jina Reader, which the agent runs when asked to look at a link.

Inspect a GitHub repo

bash
bash
gh repo view owner/repo

What it does: Reads a public repository with the gh CLI, with no extra setup.

Configure a login-required platform

Prompt
prompt
帮我配 Twitter

Expected output: Tell the agent to configure a platform; it knows what is needed and guides you step by step.

Pros & cons

Pros

  • Pro:Zero-config channels out of the box: web pages, YouTube subtitles/search, RSS, V2EX, public GitHub repos and Bilibili search
  • Pro:Each platform has ordered preferred and fallback backends, so a broken backend can be swapped without user action
  • Pro:Built-in agent-reach doctor diagnoses each channel and shows the active backend
  • Pro:Safe by default: install is check-only, with --dry-run, and agent-reach uninstall removes config and skill files

Cons

  • Con:Reddit, Facebook, Instagram and XiaoHongShu have no zero-config path and require a login session or cookies
  • Con:Cookie-based platforms carry a risk of account bans, so the README recommends a dedicated secondary account
  • Con:Twitter cookies saved by Agent Reach are only used by doctor; running the upstream twitter command directly still requires setting TWITTER_AUTH_TOKEN and TWITTER_CT0 in the process environment

Images