百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

AutoCLI

> 编程语言
开源

AutoCLI 是一个极其快速、安全的命令行工具 — 只需一条命令即可从任何网站获取信息。支持 Twitter/X、Reddit、YouTube、HackerN

2.9K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

AutoCLI 是一个极其快速、安全的命令行工具 — 只需一条命令即可从任何网站获取信息。支持 Twitter/X、Reddit、YouTube、HackerN

# AutoCLI > Formerly known as **opencli-rs**. Renamed to **AutoCLI** starting from v0.2.4. **[English](README.md) | [中文](README.zh.md) | [日本語](README.ja.md)**

https://autocli.ai — AI-powered adapter marketplace & cloud API

--- ## What's New ### v0.3.2 - **Chrome Extension Selector Tool** — Just select the core data you need, visually pick elements from any page and build precise CSS selectors to target specific content - **AI-Powered Generation via AutoCLI.ai** — Based on your selected data, AI automatically expands and discovers related fields, generating complete scraping rules - **Seamless Local + Cloud Sync** — Generated adapters are saved locally and synced to AutoCLI.ai, ready to use immediately --- Blazing fast, memory-safe command-line tool — **Fetch information from any website with a single command**. Covers Twitter/X, Reddit, YouTube, HackerNews, Bilibili, Zhihu, Xiaohongshu, and [55+ sites](#built-in-commands), with support for controlling Electron desktop apps, integrating local CLI tools (`gh`, `docker`, `kubectl`), powered by browser session reuse and AI-native discovery capabilities. A **complete rewrite in pure Rust** based on [OpenCLI](https://github.com/jackwener/opencli) (TypeScript). Feature-equivalent, **up to 12x faster**, **10x less memory**, **single 4.7MB binary**, zero runtime dependencies. **The perfect companion for OpenClaw/Agent** — Give your AI Agent the ability to reach information across the entire web, fetching real-time data from 55+ sites with a single command. **Built for AI Agents:** Configure `autocli list` in `AGENT.md` or `.cursorrules`, and AI can automatically discover all available tools. Register your local CLI (`autocli register mycli`), and AI can seamlessly invoke all your tools. ## Performance Comparison | Metric | autocli (Rust) | opencli (Node.js) | Improvement | |------|:-----------------:|:-----------------:|:----:| | **Memory Usage (Public Commands)** | 15 MB | 99 MB | **6.6x** | | **Memory Usage (Browser Commands)** | 9 MB | 95 MB | **10.6x** | | **Binary Size** | 4.7 MB | ~50 MB (node_modules) | **10x** | | **Runtime Dependencies** | None | Node.js 20+ | **Zero deps** | | ✅ **Test Pass Rate** | 103/122 (84%) | 104/122 (85%) | Near parity | **⚡ Real-world Command Timing Comparison:** | Command | autocli | opencli | Speedup | |------|:----------:|:-------:|:------:| | `bilibili hot` | **1.66s** | 20.1s | **12x** | | `zhihu hot` | **1.77s** | 20.5s | **11.6x** | | `xueqiu search 茅台` | **1.82s** | 9.2s | ⚡ **5x** | | `xiaohongshu search` | **5.1s** | 14s | ⚡ **2.7x** | > Based on automated testing of 122 commands (55 sites), macOS Apple Silicon environment. ## Features - **55 sites, 333 commands** — Covers Bilibili, Twitter, Reddit, Zhihu, Xiaohongshu, YouTube, Hacker News, and more - **Browser session reuse** — Reuse logged-in sessions via Chrome extension, no need to manage tokens - **Declarative YAML Pipeline** — Describe data scraping workflows in YAML, add new adapters with zero code - **AI-native discovery** — `explore` analyzes website APIs, `generate` auto-creates adapters with one command, `cascade` probes authentication strategies - **AI-powered generation** — `generate --ai` uses LLM to analyze any website and create working adapters automatically, with cloud sharing via [autocli.ai](https://autocli.ai) - **Download media & articles** — Download videos (via yt-dlp), articles as Markdown with images localized - **External CLI passthrough** — Integrate GitHub CLI, Docker, Kubernetes, and other tools - **Multi-format output** — table, JSON, YAML, CSV, Markdown - **Single binary** — Compiles to a 4MB static binary with zero runtime dependencies ## Installation > **Just one file, download and use.** No Node.js, Python, or any runtime needed — just put it in your PATH and go. ### One-line Install Script (macOS / Linux) ```bash curl -fsSL https://raw.githubusercontent.com/nashsu/autocli/main/scripts/install.sh | sh ``` Automatically detects your system and architecture, downloads the corresponding binary, and installs to `/usr/local/bin/`. ### Windows (PowerShell) ```powershell Invoke-WebRequest -Uri "https://github.com/nashsu/autocli/releases/latest/download/autocli-x86_64-pc-windows-msvc.zip" -OutFile autocli.zip Expand-Archive autocli.zip -DestinationPath . Move-Item autocli.exe "$env:LOCALAPPDATA\Microsoft\WindowsApps\" ``` ### Manual Download (Simplest) Download the file for your platform from [GitHub Releases](https://github.com/nashsu/autocli/releases/latest): | Platform | File | |------|------| | macOS (Apple Silicon) | `autocli-aarch64-apple-darwin.tar.gz` | | macOS (Intel) | `autocli-x86_64-apple-darwin.tar.gz` | | Linux (x86_64) | `autocli-x86_64-unknown-linux-musl.tar.gz` | | Linux (ARM64) | `autocli-aarch64-unknown-linux-musl.tar.gz` | | Windows (x64) | `autocli-x86_64-pc-windows-msvc.zip` | After extracting, place `autocli` (or `autocli.exe` on Windows) in your system PATH. ### Build from Source ```bash git clone https://github.com/nashsu/autocli.git cd autocli cargo build --release cp target/release/autocli /usr/local/bin/ # macOS / Linux ``` ### Update Simply re-run the install command or download the latest release to overwrite the existing binary. ### Chrome Extension Setup (required for browser commands) 1. Download `autocli-chrome-extension.zip` from [GitHub Releases](https://github.com/nashsu/autocli/releases/latest) 2. Extract to any directory 3. Open Chrome and go to `chrome://extensions` 4. Enable "Developer mode" (top right toggle) 5. Click "Load unpacked" and select the extracted folder 6. The extension will automatically connect to the autocli daemon > Public mode commands (hackernews, devto, lobsters, etc.) work without the extension. ## Skill Install One-click install autocli skill for your AI Agent: ```bash npx skills add https://github.com/nashsu/autocli-skill ``` ## Quick Start ``` … ``` ## AI Commands > **Powered by [autocli.ai](https://autocli.ai)** — Get your API token, share adapters with the community, and let AI generate adapters for any website. ### Step 1: Authenticate ```bash autocli auth ``` This will: 1. Open your browser to [https://autocli.ai/get-token](https://autocli.ai/get-token) 2. Prompt you to enter the token 3. Verify the token with the server 4. Save it to `~/.autocli/config.json` ### Step 2: Use the Chrome Extension to precisely select the data you need from any website. Click the Generate button, and AI will automatically analyze the page, expand related data, and generate an adapter:

Once generation is complete, you can use autocli with the newly generated command to retrieve the data you need.

### Step 3: Search Existing Adapters ```bash # Search by URL autocli search https://www.example.com # Domain name also works (auto-prepends https://) autocli search example.com ``` Searches [autocli.ai](https://autocli.ai) for community-shared adapters matching the URL. Select one from the interactive list to download and save it locally — ready to use immediately. ### Environment Variables | Variable | Description | Default | |----------|-------------|---------| | `AUTOCLI_API_BASE` | Override server URL | `https://www.autocli.ai` | ## Built-in Commands Run `autocli --help` to see all available commands. | Site | Commands | Mode | |------|------|------| | **hackernews** | `top` `new` `best` `ask` `show` `jobs` `search` `user` | Public | | **devto** | `top` `tag` `user` | Public | | **lobsters** | `hot` `newest` `active` `tag` | Public | | **stackoverflow** | `hot` `search` `bounties` `unanswered` | Public | | **steam** | `top-sellers` | Public | | **linux-do** | `hot` `latest` `search` `categories` `category` `topic` | Public | | **arxiv** | `search` `paper` | Public | | **wikipedia** | `search` `summary` `random` `trending` | Public | | **apple-podcasts** | `search` `episodes` `top` | Public | | **xiaoyuzhou** | `podcast` `podcast-episodes` `episode` | Public | | **bbc** | `news` | Public | | **hf** | `top` | Public | | **sinafinance** | `news` | Public | | **google** | `news` `search` `suggest` `trends` | Public / Browser | | **v2ex** | `hot` `latest` `topic` `node` `user` `member` `replies` `nodes` `daily` `me` `notifications` | Public / Browser | | **bloomberg** | `main` `markets` `economics` `industries` `tech` `politics` `businessweek` `opinions` `feeds` `news` | Public / Browser | | **twitter** | `trending` `bookmarks` `profile` `search` `timeline` `thread` `following` `followers` `notifications` `post` `reply` `delete` `like` `article` `follow` `unfollow` `bookmark` `unbookmark` `download` `accept` `reply-dm` `block` `unblock` `hide-reply` | Browser | | **bilibili** | `hot` `search` `me` `favorite` `history` `feed` `subtitle` `dynamic` `ranking` `following` `user-videos` `download` | Browser | | **reddit** | `hot` `frontpage` `popular` `search` `subreddit` `read` `user` `user-posts` `user-comments` `upvote` `save` `comment` `subscribe` `saved` `upvoted` | Browser | | **zhihu** | `hot` `search` `question` `download` | Browser | | **xiaohongshu** | `search` `notifications` `feed` `user` `download` `publish` `creator-notes` `creator-note-detail` `creator-notes-summary` `creator-profile` `creator-stats` | Browser | | **xueqiu** | `feed` `hot-stock` `hot` `search` `stock` `watchlist` `earnings-date` | Browser | | **weibo** | `hot` `search` | Browser | | **douban** | `search` `top250` `subject` `marks` `reviews` `movie-hot` `book-hot` | Browser | | **weread** | `shelf` `search` `book` `highlights` `notes` `notebooks` `ranking` | Browser | | **youtube** | `search` `video` `transcript` | Browser | | **medium** | `feed` `search` `user` | Browser | | **substack** | `feed` `search` `publication` | Browser | | **sinablog** | `hot` `search` `article` `user` | Browser | | **boss** | `search` `detail` `recommend` `joblist` `greet` `batchgreet` `send` `chatlist` `chatmsg` `invite` `mark` `exchange` `resume` `stats` | Browser | | **jike** | `feed` `search` `create` `like` `comment` `repost` `notifications` `post` `topic` `user` | Browser | | **facebook** | `feed` `profile` `search` `friends` `groups` `events` `notifications` `memories` `add-friend` `join-group` | Browser | | **instagram** | `explore` `profile` `search` `user` `followers` `following` `follow` `unfollow` `like` `unlike` `comment` `save` `unsave` `saved` | Browser | | **tiktok** | `explore` `search` `profile` `user` `following` `follow` `unfollow` `like` `unlike` `comment` `save` `unsave` `live` `notifications` `friends` | Browser | | **yollomi** | `generate` `video` `edit` `upload` `models` `remove-bg` `upscale` `face-swap` `restore` `try-on` `background` `object-remover` | Browser | | **yahoo-finance** | `quote` | Browser | | **barchart** | `quote` `options` `greeks` `flow` | Browser | | **linkedin** | `search` | Browser | | **reuters** | `search` | Browser | | **smzdm** | `search` | Browser | | **ctrip** | `search` | Browser | | **coupang** | `search` `add-to-cart` | Browser | | **grok** | `ask` | Browser | | **jimeng** | `generate` `history` | Browser | | **chaoxing** | `assignments` `exams` | Browser | | **weixin** | `download` | Browser | | **doubao** | `status` `new` `send` `read` `ask` | Browser | | **cursor** | `status` `send` `read` `new` `dump` `composer` `model` `extract-code` `ask` `screenshot` `history` `export` | Desktop | | **codex** | `status` `send` `read` `new` `dump` `extract-diff` `model` `ask` `screenshot` `history` `export` | Desktop | | **chatwise** | `status` `new` `send` `read` `ask` `model` `history` `export` `screenshot` | Desktop | | **chatgpt** | `status` `new` `send` `read` `ask` | Desktop | | **doubao-app** | `status` `new` `send` `read` `ask` `screenshot` `dump` | Desktop | | **notion** | `status` `search` `read` `new` `write` `sidebar` `favorite

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

核心特点

  • •Chrome Extension Selector Tool — Just select the core data you need, visually pick elements from any page and build precise CSS selectors to target specific content
  • •AI-Powered Generation via AutoCLI.ai — Based on your selected data, AI automatically expands and discovers related fields, generating complete scraping rules
  • •Seamless Local + Cloud Sync — Generated adapters are saved locally and synced to AutoCLI.ai, ready to use immediately
  • •55 sites, 333 commands — Covers Bilibili, Twitter, Reddit, Zhihu, Xiaohongshu, YouTube, Hacker News, and more
  • •Browser session reuse — Reuse logged-in sessions via Chrome extension, no need to manage tokens
  • •Declarative YAML Pipeline — Describe data scraping workflows in YAML, add new adapters with zero code
  • •AI-native discovery — explore analyzes website APIs, generate auto-creates adapters with one command, cascade probes authentication strategies
  • •AI-powered generation — generate --ai uses LLM to analyze any website and create working adapters automatically, with cloud sharing via autocli.ai
  • •Download media & articles — Download videos (via yt-dlp), articles as Markdown with images localized
  • •External CLI passthrough — Integrate GitHub CLI, Docker, Kubernetes, and other tools

> 标签

Rust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言