目录

AutoCLI Skill:让AI Agent掌控55+平台的终极浏览器自动化利器

AutoCLI Skill:让AI Agent掌控55+平台的终极浏览器自动化利器

🎯 概述

AutoCLI Skill 是一个为 Claude Code/OpenClaw/AI Agent 打造的终极平台集成工具,让 AI 能够像人一样操控 55+ 个主流平台——无需 API Key、无需复杂配置、直接复用你 Chrome 浏览器里已有的登录态。

GitHub: nashsu/autocli-skill
Stars: 582 ⭐
Forks: 62
核心特性: 55+平台支持 | 零API Key | Chrome登录态复用 | Rust编写 | 4.7MB二进制

一句话定位

“Give your AI Agent the ability to reach information across the entire web” —— 让 AI Agent 能够像人一样浏览整个互联网。

解决的核心痛点

痛点传统方案AutoCLI Skill
AI 无法访问社交媒体手动复制粘贴自然语言控制
各平台 API 申请复杂API Key 申请流程繁琐零配置,复用 Chrome 登录态
Playwright 自动化门槛高需要处理 Cookie、UA、指纹一条命令搞定
跨平台数据采集困难每个平台单独写爬虫统一 CLI 接口
桌面应用控制复杂App API 各不相同标准化命令控制

🏛️ 系统架构

核心设计:三重模式覆盖

AutoCLI Skill 的架构设计围绕三种不同的平台访问模式展开,确保对 55+ 平台的全覆盖:

三种模式的对比

模式是否需要 Chrome是否需要扩展是否需要桌面应用代表平台
Public API❌ 否❌ 否❌ 否HackerNews, Wikipedia, Arxiv, BBC
Browser✅ 是✅ 是❌ 否Twitter/X, Bilibili, Zhihu, YouTube, Reddit
Desktop App❌ 否❌ 否✅ 是Cursor, Notion, ChatGPT, Discord, Codex

技术选型分析

技术选型理由权衡
Rust 编写极致性能、内存安全、零依赖学习曲线较陡
复用 Chrome 登录态绕过 OAuth、API Key 申请流程依赖 Chrome 环境
CLI 优先轻量、可脚本化、易于 AI 调用无原生 GUI
单一二进制4.7MB、下载即用功能复杂度受限于 CLI

🔌 55+平台支持详解

社交媒体矩阵

平台模式命令数量核心功能
Twitter/XBrowser24个trending, timeline, post, reply, search, bookmarks, profile
Bilibili (B站)Browser12个hot, search, me, favorite, history, feed, subtitle, download
Zhihu (知乎)Browser4个hot, search, question, download
Weibo (微博)Browser2个hot, search
RedditBrowser15个hot, frontpage, popular, search, subreddit, upvote, comment
FacebookBrowser10个feed, profile, search, friends, groups, events
InstagramBrowser14个explore, profile, search, follow, like, comment
TikTokBrowser15个explore, search, profile, follow, like, comment
Jike (即刻)Browser10个feed, search, create, like, comment, repost

视频与内容平台

平台模式命令数量核心功能
YouTubeBrowser3个search, video, transcript
小红书Browser11个search, feed, user, publish, creator-notes
Douban (豆瓣)Browser7个search, top250, subject, movie-hot, book-hot
MediumBrowser3个feed, search, user
SubstackBrowser3个feed, search, publication

桌面应用控制

应用模式命令数量核心功能
CursorDesktop12个status, send, read, new, dump, composer, model, ask
NotionDesktop8个status, search, read, new, write, sidebar, favorites, export
ChatGPTDesktop5个status, new, send, read, ask
DiscordDesktop6个status, send, read, channels, servers, search, members
CodexDesktop11个status, send, read, new, dump, model, ask

金融数据平台

平台模式命令数量核心功能
Yahoo FinanceBrowser1个quote
Xueqiu (雪球)Browser7个feed, hot-stock, hot, search, stock, watchlist
BloombergPublic/Browser10个main, markets, economics, tech, politics

开发者平台

平台模式命令数量核心功能
HackerNewsPublic8个top, new, best, ask, show, jobs, search, user
StackOverflowPublic4个hot, search, bounties, unanswered
Dev.toPublic3个top, tag, user
LobstersPublic4个hot, newest, active, tag
WikipediaPublic4个search, summary, random, trending
ArxivPublic2个search, paper
V2EXPublic/Browser11个hot, latest, topic, node, user, daily, me

命令行工具集成

工具模式功能
GitHub CLIDesktopissues, pr, repo, gh
DockerDesktopps, images, run, logs
kubectlDesktopget, describe, logs, exec

🚀 安装与配置

前置条件

安装 AutoCLI Skill 前,需要确认以下条件:

  • Chrome 浏览器 已打开,并已登录目标网站
  • autocli Chrome 扩展 已安装(从 GitHub Releases 下载)

安装步骤

方式一:让 AI Agent 帮你安装(推荐)

Help me install this skill: https://github.com/nashsu/AutoCLI-skill

方式二:手动安装

# 1. 安装 autocli CLI 工具
# 参考:https://github.com/nashsu/AutoCLI

# 2. 安装本 Skill
npx skills add https://github.com/nashsu/AutoCLI-skill

# 3. 重启 Claude Code 激活 Skill

验证安装

# 检查 autocli 是否安装成功
autocli --version

# 查看所有可用命令
autocli --help

# 运行诊断
autocli doctor

📖 使用方法

自然语言交互示例

确保 Chrome 已打开且已登录目标网站,然后对 Claude Code 说:

"Search YouTube for LLM tutorials"
"What's trending on Twitter right now?"
"Get the top 20 stories on HackerNews"
"Search Reddit r/MachineLearning for transformer papers"
"Check AAPL stock price"
"Post a tweet: Just discovered Claude Code skills!"
"What's hot on Bilibili?"
"Search Douban for top-rated movies"
"Check my WeRead highlights"

Claude 会自动调用正确的 autocli 命令,运行后以表格形式展示结果,英文标题附带中文翻译。

命令行直接调用

# Bilibili
autocli bilibili hot --limit 10 --format json
autocli bilibili search --keyword "AI"

# Twitter/X
autocli twitter timeline --format json
autocli twitter post --text "Hello from Claude!"
autocli twitter search "claude AI" --limit 10

# YouTube
autocli youtube search --query "LLM tutorial"
autocli youtube transcript --video-id YOUR_VIDEO_ID

# HackerNews
autocli hackernews top --limit 20 --format json

# Reddit
autocli reddit hot --subreddit MachineLearning

# Yahoo Finance
autocli yahoo-finance quote --symbol AAPL

# 雪球
autocli xueqiu stock --symbol SH600519   # 茅台行情
autocli xueqiu watchlist                  # 我的自选股

# 豆瓣
autocli douban top250 --format json

# Cursor
autocli cursor status
autocli cursor send --text "Write a function to..."

# Notion
autocli notion search "会议记录"
autocli notion new --title "New Page"

🔧 命令参考

Twitter/X 命令(24个)

命令功能示例
twitter trending获取热搜autocli twitter trending
twitter timeline获取时间线autocli twitter timeline --limit 20
twitter post发布推文autocli twitter post --text "Hello"
twitter reply回复推文autocli twitter reply --id 123 --text "Reply"
twitter search搜索推文autocli twitter search "AI" --limit 10
twitter bookmarks获取收藏autocli twitter bookmarks
twitter profile获取用户信息autocli twitter profile --user username
twitter article获取推文文章autocli twitter article --id 123

Bilibili 命令(12个)

命令功能示例
bilibili hot获取热门autocli bilibili hot --limit 10
bilibili search搜索视频autocli bilibili search --keyword "教程"
bilibili me我的信息autocli bilibili me
bilibili favorite我的收藏autocli bilibili favorite
bilibili history浏览历史autocli bilibili history
bilibili feed推荐 feedautocli bilibili feed
bilibili subtitle获取字幕autocli bilibili subtitle --avid 123
bilibili download下载视频autocli bilibili download --avid 123

HackerNews 命令(8个)

命令功能示例
hackernews top热榜autocli hackernews top --limit 20
hackernews new最新autocli hackernews new --limit 20
hackernews best精华autocli hackernews best --limit 20
hackernews askAsk HNautocli hackernews ask --limit 10
hackernews showShow HNautocli hackernews show --limit 10
hackernews jobs招聘autocli hackernews jobs --limit 10
hackernews search搜索autocli hackernews search "keyword"
hackernews user用户信息autocli hackernews user --name username

Cursor 控制命令(12个)

命令功能示例
cursor status状态autocli cursor status
cursor send发送消息autocli cursor send --text "Hello"
cursor read读取响应autocli cursor read
cursor new新对话autocli cursor new
cursor dump导出历史autocli cursor dump
cursor composerComposer 模式autocli cursor composer
cursor model切换模型autocli cursor model
cursor ask提问autocli cursor ask --text "How do I..."

Notion 控制命令(8个)

命令功能示例
notion status状态autocli notion status
notion search搜索页面autocli notion search "keyword"
notion read读取页面autocli notion read --page-id xxx
notion new新建页面autocli notion new --title "Title"
notion write写入内容autocli notion write --page-id xxx --content "..."
notion sidebar侧边栏autocli notion sidebar
notion favorites收藏页面autocli notion favorites
notion export导出页面autocli notion export --page-id xxx

🐛 故障排除

常见问题与解决方案

问题原因解决方案
autocli: command not found未正确安装重新运行安装脚本,检查 PATH
Chrome 无法被控制Chrome 未打开确保 Chrome 已启动
登录态未识别未在 Chrome 中登录在 Chrome 中手动登录目标网站
Browser 命令超时网络问题运行 autocli doctor 进行诊断
扩展未加载扩展未启用检查 Chrome 扩展管理器

诊断命令

# 运行完整诊断
autocli doctor

# 检查特定平台
autocli doctor --platform twitter

# 查看详细日志
autocli --debug twitter trending

🆚 与同类工具对比

特性AutoCLI SkillPlaywrightPuppeteerSelenium
安装复杂度⭐ 极简(一条命令)⭐ 简单⭐ 简单⭐⭐ 中等
登录态管理✅ 自动复用 Chrome❌ 需手动处理❌ 需手动处理❌ 需手动处理
API Key❌ 不需要N/AN/AN/A
跨平台支持✅ 55+❌ 需单独配置❌ 需单独配置❌ 需单独配置
桌面应用控制✅ Cursor/Notion等❌ 不支持❌ 不支持❌ 不支持
二进制大小✅ 4.7MB❌ Node.js 依赖❌ Node.js 依赖❌ Java 依赖
AI 集成✅ 原生支持❌ 需包装❌ 需包装❌ 需包装

🎓 设计原则总结

核心设计理念

  1. 复用优于重造:不重新发明轮子,直接复用用户已有的 Chrome 登录态
  2. CLI 优先:轻量、可组合、易于 AI 调用
  3. 零配置:下载即用,无需复杂配置
  4. 统一接口:55+ 平台,统一的 CLI 接口

可复用的架构经验

经验应用场景
复用而非重建当平台已有完善认证时,复用是最快路径
CLI 作为桥梁CLI 是 AI 与系统交互的最佳界面
三重模式覆盖Public API → Browser → Desktop,覆盖所有场景
单二进制分发4.7MB 零依赖 vs Node.js 数百MB依赖

常见陷阱

陷阱避免方法
过度依赖浏览器Public API 优先,减少依赖
登录态失效定期验证 Chrome 登录状态
平台变更关注平台 UI 变化,及时更新选择器

🔗 资源链接

资源链接
GitHub 仓库nashsu/autocli-skill
AutoCLI 核心nashsu/AutoCLI
Chrome 扩展下载AutoCLI Releases
相关项目nashsu/autocli-skill (Skill版)

📊 平台覆盖一览

社交媒体 (8)
├── Twitter/X (24 commands)
├── Bilibili (12 commands)
├── Zhihu (4 commands)
├── Weibo (2 commands)
├── Reddit (15 commands)
├── Facebook (10 commands)
├── Instagram (14 commands)
└── TikTok (15 commands)

视频内容 (5)
├── YouTube (3 commands)
├── 小红书 (11 commands)
├── Douban (7 commands)
├── Medium (3 commands)
└── Substack (3 commands)

桌面应用 (5)
├── Cursor (12 commands)
├── Notion (8 commands)
├── ChatGPT (5 commands)
├── Discord (6 commands)
└── Codex (11 commands)

开发者平台 (6)
├── HackerNews (8 commands)
├── StackOverflow (4 commands)
├── Dev.to (3 commands)
├── Lobsters (4 commands)
├── Wikipedia (4 commands)
└── Arxiv (2 commands)

金融数据 (3)
├── Yahoo Finance (1 command)
├── Xueqiu (7 commands)
└── Bloomberg (10 commands)

其他平台 (4)
├── V2EX (11 commands)
├── GitHub CLI
├── Docker
└── kubectl

🦞 AutoCLI Skill:让 AI Agent 真正掌控互联网,55+ 平台,一个命令搞定。