⚠️ Experimental - not officially supported and may break without notice. Use at your own risk. Always respect the Terms of Service of any site you target. The author bears no responsibility for misuse.
Most web apps have a perfectly good API. It's just hidden behind the frontend and undocumented. CLI-Anything-Web makes it usable - fully automatically.
What it does
Give it a URL. The Claude Code plugin navigates the app autonomously using Playwright, records all HTTP traffic, and generates a complete pip-installable Python CLI. No human interaction. No reading minified JS.
The pipeline
Capture - A Playwright browser session navigates the target app autonomously, recording all HTTP calls. It also detects the framework (Next.js, React SPA, SSR) and any anti-bot protection (Cloudflare, WAF) that will affect how the CLI needs to make requests later.
Analyze - The traffic is classified by protocol: REST, GraphQL, Google's batchexecute, or raw SSR HTML. Each maps to a different CLI architecture and HTTP client strategy - httpx for most sites, curl_cffi for heavy Cloudflare protection.
Generate - A full Python package is built using a fork-join pattern: core modules (exceptions → client → auth → models) built sequentially since each depends on the previous, then all command files generated in parallel. Every command gets --json. Auth is stored in auth.json (chmod 600) with env var fallback for CI. REPL launches when no subcommand is given.
Install - pip install -e ., then smoke tests: can it read? can it write? does --json output cleanly? Only then is the CLI considered done.
The meta-layer
The last artifact Generate produces is a Claude Code skill - a SKILL.md that teaches Claude Code how to operate the generated CLI autonomously. So the output isn't just a CLI for humans; it's a CLI that an AI agent can drive.
An AI navigates a web app → builds a CLI → teaches another AI to use it.
Built with Claude Code
The entire pipeline is a Claude Code plugin - 4 skills with quality gate hooks between them. Building an AI-powered developer tool using AI as the development environment was a genuinely different experience. The plugin architecture forced clear contracts between phases.
GitHub: https://github.com/ItamarZand88/cli-anything-web
Feedback welcome - and if you have a web app you'd like to see turned into a CLI, drop it in the comments.
Top comments (0)