only-cli/oc
Turn any website into a compact CLI tailored for AI agents. Browse the web in hundreds of tokens, not tens of thousands.
What it solves
It solves the problem of "token bloat" when AI agents browse the web. Raw HTML is often massive and filled with noise, which wastes tokens and confuses agents. This tool converts web pages into a compact, numbered text format that is easy for agents to navigate.
How it works
It fetches web pages and renders them as a clean, text-only interface. It impersonates a real browser (Chrome, Firefox) to bypass basic bot blocks without requiring browser extensions or heavy daemons. Once a page is rendered, the agent can use simple commands like do <n> to follow links, read <n> to get specific content, or find <query> to locate information, all while staying within a small token budget.
Who it’s for
It is designed for developers building AI agents (like Claude Code, Cursor, or Copilot) that need to interact with documentation, forums, or search engines without the overhead of full browser automation.
Highlights
- Token efficiency: Distills complex pages into a few hundred tokens.
- No setup required: Works out-of-the-box via
npxwith no per-site adapters. - Agent-ready: Includes a "web-browsing-cli" skill for easy integration into agent instruction files.
- Smart navigation: Supports shortcuts for dozens of popular sites (GitHub, Reddit, Hacker News, documentation sites) to streamline data retrieval.
- Session management: Handles authenticated browsing by allowing users to seed cookies for login-gated content.
Related
- Project
- Project
- Project
- Project
- Project