Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

CLI Anything Web

Turn any website into a production-grade CLI — automatically.

Quick Start  •  Examples  •  How It Works  •  Protocols  •  Registry  •  Roadmap  •  Contributing

License: MIT GitHub Stars Issues Python 3.10+ 17 CLIs Claude Code Plugin CLI Registry

Quick Start Examples Protocols Contributing


CLI-Anything-Web is a Claude Code plugin that generates production-grade Python CLIs for any web application by capturing its live HTTP traffic. Point it at a URL, and get a fully working CLI on your PATH — with auth, REPL mode, --json output, and tests.

[!WARNING] Experimental Project — Use Responsibly

This project uses undocumented web APIs reverse-engineered from live HTTP traffic. These APIs can change without notice.

  • Not affiliated with any website — This is an independent open-source project
  • APIs may break — Websites can change their internal endpoints, HTML structure, or add protections at any time
  • Respect rate limits — Generated CLIs include exponential backoff, but heavy usage may be throttled
  • For personal use — Best suited for prototyping, automation, research, and personal productivity

Generated CLIs interact with real production services. Use them responsibly and in accordance with each website's terms of service.

💡 The Idea

Most web apps don't have public APIs. CLI-Anything-Web changes that:

CLI-Anything-Web Demo

No API docs needed. No reverse-engineering by hand. Just point and generate.


🚀 Quick Start

Prerequisites

RequirementVersionWhy
Claude CodeWith plugin supportRuns the generation pipeline
Node.js18+For playwright traffic capture
Python3.10+Generated CLIs are Python

Install the Plugin

# Inside Claude Code /plugin marketplace add ItamarZand88/CLI-Anything-WEB /plugin install cli-anything-web /reload-plugins

Generate Your First CLI

/cli-anything-web https://your-favorite-website.com

The agent opens a browser, asks you to log in if needed, captures traffic, and generates a complete CLI. That's it.


📦 Examples

20 real CLIs generated by the plugin — shipped as reference implementations:

CLIWebsiteProtocolAuthSkillDescription
cli-web-stitchGoogle Stitchbatchexecute RPCGoogle SSO📖 SkillAI UI design — generate mobile/web app mockups from text prompts
cli-web-redditRedditREST JSON API (curl_cffi)Optional (OAuth)📖 SkillFeeds, subreddits, search, vote, comment, submit, save, inbox
cli-web-bookingBooking.comGraphQL + HTML (curl_cffi)WAF cookies📖 SkillHotel search, property details, destination resolution
cli-web-gaiGoogle AI ModeBrowser-rendered (Playwright)None📖 SkillAI-powered search with source references
cli-web-notebooklmGoogle NotebookLMbatchexecute RPCGoogle SSO📖 SkillNotebooks, sources, chat, 9 artifact types (audio, video, slides, quiz, mindmap)
cli-web-pexelsPexelsSSR + NEXT_DATA (curl_cffi)None📖 SkillFree stock photos & videos — search, download, collections, profiles
cli-web-unsplashUnsplashREST API (curl_cffi)None📖 SkillPhoto search, download, topics, collections, profiles
cli-web-producthuntProduct HuntHTML scraping (curl_cffi)None📖 SkillToday's launches, leaderboards, product details
cli-web-futbinFUTBINHTML + JSON APINone📖 SkillEA FC player database — search, compare, prices, market analysis, arbitrage, trading signals
cli-web-gh-trendingGitHub TrendingHTML scrapingNone📖 SkillTrending repos & developers with language/time filters
cli-web-youtubeYouTubeInnerTube REST APINone📖 SkillSearch videos, video details, trending, channel info
cli-web-hackernewsHacker NewsREST API (Firebase + Algolia)Cookie (optional)📖 SkillStories, search, comments, users, upvote, submit, comment, favorite
cli-web-codewikiGoogle Code Wikibatchexecute RPCNone📖 SkillAI-generated repo docs, wiki sections, Gemini chat, download as .md
cli-web-chatgptChatGPTREST API + CamoufoxBrowser (OpenAI SSO)📖 SkillAsk questions, generate/download images, conversations, models
cli-web-airbnbAirbnbSSR HTML + niobeClientDataNone📖 SkillSearch stays, listing details, amenities, host info, autocomplete locations
cli-web-amazonamazon.comSSR HTML + REST JSONNone📖 SkillSearch products, view details, browse bestsellers
cli-web-tripadvisorTripAdvisorSSR HTML + JSON-LD (curl_cffi)None📖 SkillSearch locations, hotels, restaurants, and attractions

Try them yourself

# Install all CLIs at once pip install -e stitch/agent-harness -e reddit/agent-harness -e booking/agent-harness \ -e gai/agent-harness -e notebooklm/agent-harness -e pexels/agent-harness \ -e unsplash/agent-harness -e producthunt/agent-harness -e futbin/agent-harness \ -e gh-trending/agent-harness -e youtube/agent-harness -e hackernews/agent-harness \ -e codewiki/agent-harness -e chatgpt/agent-harness -e airbnb/agent-harness \ -e amazon/agent-harness -e tripadvisor/agent-harness # Required browsers playwright install chromium # for CLIs that require browser-based auth or rendering python -m camoufox fetch # for CLIs that use stealth browser (anti-bot bypass)

GitHub Trending — no auth, great first test

pip install -e gh-trending/agent-harness cli-web-gh-trending repos list --language python --since weekly --json

FUTBIN — search EA FC players

pip install -e futbin/agent-harness cli-web-futbin players search --name "Messi" --json

NotebookLM — requires Google login

pip install -e notebooklm/agent-harness cli-web-notebooklm auth login cli-web-notebooklm notebooks list --json

Product Hunt — no auth, bypasses Cloudflare

pip install -e producthunt/agent-harness cli-web-producthunt posts list --json

Unsplash — photo search

pip install -e unsplash/agent-harness cli-web-unsplash photos search "mountains" --json

Booking.com — hotel search

pip install -e booking/agent-harness cli-web-booking auth login # required — fetches WAF browser cookies cli-web-booking search find "Paris" --json

Google Stitch — requires Google SSO login

pip install -e stitch/agent-harness cli-web-stitch auth login cli-web-stitch projects list --json

Pexels — free stock photos & videos

pip install -e pexels/agent-harness cli-web-pexels photos search "mountains" --json

Reddit — feeds, search, vote, comment, submit

pip install -e reddit/agent-harness cli-web-reddit auth login # optional — required for voting, commenting, submitting cli-web-reddit feed hot --limit 5 --json

Hacker News — stories, search, upvote, submit

pip install -e hackernews/agent-harness cli-web-hackernews auth login # optional — required for upvoting, submitting, commenting cli-web-hackernews stories top -n 5 --json

Google Code Wiki — AI-generated repo docs + Gemini chat

pip install -e codewiki/agent-harness cli-web-codewiki wiki sections excalidraw/excalidraw --json cli-web-codewiki chat ask "How does rendering work?" --repo excalidraw/excalidraw --json

Airbnb — search stays, get listing details

pip install -e airbnb/agent-harness cli-web-airbnb search stays "London, UK" --checkin 2024-06-01 --checkout 2024-06-05 --adults 2 --json cli-web-airbnb listings get 770993223449115417 --json cli-web-airbnb autocomplete locations "New Yor" --json

TripAdvisor — search hotels, restaurants, and attractions (no auth, DataDome bypass)

pip install -e tripadvisor/agent-harness cli-web-tripadvisor hotels search "Paris" --json cli-web-tripadvisor attractions search "London" --json

ChatGPT — ask questions, generate images

pip install -e chatgpt/agent-harness cli-web-chatgpt auth login # optional — required for image generation & conversations cli-web-chatgpt chat ask "Explain quantum computing in one sentence" --json cli-web-chatgpt chat image "A sunset over mountains" --output sunset.png --json

Google AI Mode — AI-powered search (requires Playwright browser)

pip install -e gai/agent-harness playwright install chromium cli-web-gai search ask "What is quantum computing" --json

Amazon — search products, bestsellers, autocomplete (no auth required)

pip install -e amazon/agent-harness # Search Amazon products cli-web-amazon search "laptop" --json # View product details cli-web-amazon product get B0GRZ78683 --json # Browse Best Sellers cli-web-amazon bestsellers electronics --json

Agent-Native: Claude uses the CLIs automatically

Every generated CLI comes with a skill file (.claude/skills/<app>-cli/SKILL.md) that Claude Code loads automatically. The skill tells Claude exactly how to use the CLI — every command, every option, every output format. When you ask Claude a question like "find me a hotel in Paris", it reads the booking skill and runs cli-web-booking search find "Paris" on its own.

Each skill includes:

  • All available commands with arguments and options
  • Output format for each command
  • Auth requirements and setup instructions
  • Common agent patterns (piping, filtering, chaining commands)

Agentic Pattern Demo


⚙️ How It Works

The plugin runs a 4-phase pipeline, fully automated by Claude:

CLI-Anything-Web Pipeline

PhaseWhat Happens
1. CaptureOpens browser via Playwright, records all HTTP traffic while you use the site
2. Analyze & GenerateIdentifies protocol (REST/GraphQL/RPC/HTML), maps endpoints, generates full Python CLI
3. TestWrites unit tests (mocked) + E2E tests (live API) + subprocess tests
4. Publishpip install -e . → on your PATH → smoke tested → Claude skill generated

🔧 What Every Generated CLI Includes

FeatureDetails
Click commandscli-web-<app> <group> <command> [options]
Interactive REPLRun with no args — history, autocomplete, branded prompt
--json outputMachine-readable on every command — pipe into jq, scripts, or agents
Auth managementPython Playwright browser login → cookie extraction → auth.json
Error handlingTyped exceptions → structured JSON errors: {"error": true, "code": "AUTH_EXPIRED"}
TestsUnit (mocked HTTP) + E2E (live API) + subprocess (_resolve_cli)
Installablepip install -e . puts it on your PATH immediately

📋 Commands

CommandDescription
/cli-anything-web <url>Full pipeline — capture, analyze, generate, publish
/cli-anything-web:record <url>Capture traffic only (for exploration)
/cli-anything-web:refine <path>Add more commands to an existing CLI
/cli-anything-web:test <path>Run tests and update TEST.md
/cli-anything-web:validate <path>Validate against 75-check quality standards
/cli-anything-web:listList all generated CLIs

🌐 Supported Protocols

The plugin auto-detects and handles multiple web architectures:

ProtocolExample SitesHow It's Handled
REST / JSON APIMonday.com, Dev.tohttpx client, JSON response parsing
Server-rendered HTMLGitHub, FUTBIN, Hacker NewsBeautifulSoup4 + CSS selectors
Cloudflare-protectedProduct Hunt, Unsplashcurl_cffi with Chrome TLS impersonation
GraphQLShopify, GitHub API v4Query abstraction into CLI commands
GraphQL + AWS WAFBooking.comcurl_cffi + WAF cookie bypass
Google batchexecuteNotebookLM, Google Docs, KeepCustom RPC encoder/decoder
Browser-rendered (Playwright)Google AI ModeHeadless browser rendering + content extraction

🏗️ Repository Structure

CLI-Anything-WEB/
├── cli-anything-web-plugin/     # 🔌 The installable Claude Code plugin
│   ├── commands/                #    Slash command definitions
│   ├── skills/                  #    4-phase pipeline skills
│   │   ├── capture/             #      Phase 1: browser + traffic capture
│   │   ├── methodology/         #      Phase 2: analysis + code generation
│   │   ├── testing/             #      Phase 3: test generation
│   │   └── standards/           #      Phase 4: validation + publishing
│   ├── scripts/                 #    Shared utilities
│   └── HARNESS.md               #    Complete methodology SOP
│
├── stitch/                      # 🎨 Google Stitch (batchexecute RPC)
├── reddit/                      # 💬 Reddit (REST JSON API)
├── booking/                     # 🏨 Booking.com (GraphQL + AWS WAF)
├── gai/                         # 🤖 Google AI Mode (Browser-rendered)
├── notebooklm/                  # 📓 NotebookLM (Google batchexecute)
├── pexels/                      # 📸 Pexels (SSR + __NEXT_DATA__)
├── unsplash/                    # 📷 Unsplash (REST API + curl_cffi)
├── producthunt/                 # 🚀 Product Hunt (curl_cffi)
├── futbin/                      # 🎮 FUTBIN (HTML + JSON)
├── gh-trending/                 # 📈 GitHub Trending (HTML scraping)
├── youtube/                     # 🎬 YouTube (InnerTube REST API)
├── hackernews/                  # 📰 Hacker News (Firebase + Algolia API)
├── codewiki/                    # 📚 Google Code Wiki (batchexecute RPC)
├── chatgpt/                     # 🤖 ChatGPT (REST API + Camoufox)
├── airbnb/                      # 🏠 Airbnb (SSR HTML + niobeClientData)
├── amazon/                      # 🛒 Amazon (SSR HTML + REST JSON)
└── tripadvisor/                 # 🌍 TripAdvisor (SSR HTML + JSON-LD, curl_cffi)

🔗 Inspiration

This project is directly inspired by CLI-Anything by HKUDS — a Claude Code plugin that makes desktop software (GIMP, Blender, LibreOffice, OBS Studio) agent-native by analyzing source code and generating CLI wrappers.

CLI-Anything-Web extends the same vision to the web — where there's no source code to analyze, only live HTTP traffic to capture.

CLI-AnythingCLI-Anything-Web
TargetDesktop apps (GIMP, Blender, OBS)Web apps (NotebookLM, Booking.com, any website)
InputSource code, GUI APIs, plugin systemsLive HTTP traffic from browser
AnalysisStatic code analysis + API mappingNetwork traffic capture + protocol detection
AuthN/A (local software)Browser login, cookies, WAF bypass, API keys
OutputClick CLI + REPL + --json + testsClick CLI + REPL + --json + tests

Together they cover the full spectrum: CLI-Anything for desktop, CLI-Anything-Web for the web.


🗺️ What's Next

We're actively building more CLIs and improving the plugin:

  • 🎯 More CLIs — Jira, Notion, Monday.com, Spotify, LinkedIn
  • 🎵 Content generation — Suno, ElevenLabs, Midjourney
  • 🧠 Smarter analysis — Auto-detect auth flows, pagination, WebSocket streams
  • 🔄 CI/CD integration — Run CLIs in GitHub Actions with env-var auth
  • 📦 Community registry — Share and install CLIs built by other users

Want a specific website? Open an issue with the URL — we'll prioritize the most requested ones.


🤝 Contributing

We'd love your help! See CONTRIBUTING.md for the full guide.

The quickest ways to contribute:

WhatHow
Build a new CLIRun /cli-anything-web <url> on any website, submit a PR
Improve the pluginAdd patterns to cli-anything-web-plugin/skills/
Report bugsOpen an issue with --json output
Fix a broken CLIWebsite changed? Update the scraper/client


📄 License

This project is licensed under the MIT License.


Built with Claude Code  ·  Inspired by CLI-Anything  ·  Request a CLI

关于 About

Claude Code plugin that generates production-grade Python CLIs for any web app. 17 CLIs and counting.
agent-nativeclaude-codeclaude-code-plugincliplaywrightpythonreverse-engineeringweb-scraping

语言 Languages

Python98.2%
Smarty1.1%
Shell0.6%
JavaScript0.2%
Go Template0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
78
Total Commits
峰值: 55次/周
Less
More

核心贡献者 Contributors