This is a comprehensive guide for building OpenCLI adapters that let you turn websites into command-line interfaces. It walks through the full cycle: discovering APIs through browser DevTools, choosing authentication strategies across five tiers (from public APIs to full UI automation), writing TypeScript adapters using the cli() API, and testing. The workflow assumes you're an AI agent with browser access and pushes hard on active exploration, clicking around pages to trigger lazy-loaded endpoints rather than relying on static analysis. Includes platform-specific helpers for Bilibili's Wbi signing and decision trees for picking between cookie-based fetch, header injection, or XHR interception. If you need to scrape or automate a Chinese web platform without an official API, this gives you the playbook.
npx skills add https://github.com/joeseesun/opencli-skill --skill qiaomu-opencli-explorer