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

only-cli/oc provides a way for AI agents to browse the web without consuming excessive tokens. Raw HTML is typically too large for LLM context windows; this tool transforms websites into a compact, numbered command-line interface (CLI) that agents can navigate using simple commands like do, find, and read.

How it works

The tool fetches a web page and renders it as a distilled, numbered view of its content. It uses impers to impersonate real browsers (Chrome or Firefox) to bypass basic bot detection. It maintains session state locally, allowing agents to follow numbered links (e.g., oc do 3) without needing to handle raw URLs. For specific high-traffic sites (like GitHub, Reddit, or Wikipedia), it includes tuned shortcuts that leverage APIs or feeds to provide even more efficient data retrieval.

Who it’s for

Developers building AI agents (such as those using Claude Code, Cursor, or Copilot) who want to give their agents the efficient, token-saving web browsing capabilities.

Highlights

  • Token Efficiency: Reduces tens of thousands of tokens of HTML markup to a few hundred tokens of distilled text.
  • Browser Impersonation: Bypasses naive fetchers by mimicking Chrome and Firefox fingerprints.
  • Site Shortcuts: Built-in optimized paths for dozens of popular documentation sites, forums, and APIs.
  • Session Management: Supports authenticated browsing via cookie seeding and session persistence.
  • Agent-Ready: Includes a dedicated skill for easy integration into agent frameworks.

Related

  • Project
  • Project
  • Project
  • Project
  • Project