only-cli (oc)
App : A product you use directly
Turns any web page into a compact, numbered view for an agent, a few hundred tokens instead of tens of thousands.
Effective for making an agent browse at low cost: it opens a page, receives a list of numbered items and acts by number. The author rightly reminds users that a page's text is data, never an instruction. One reservation: the tool presents itself to sites as a Chrome browser to get past blocks that stop simple bots. Check the terms of use of the target sites before using it at large scale.
Security reflects where data goes, requested permissions and incidents on record at the verification date. It is not a guarantee of zero risk: check the deployment mode and the connections you enable.
What it does, concretely
When an AI agent reads a web page, it often receives tens of thousands of tokens of HTML, or a screenshot it has to interpret. That is slow and costly. only-cli (the oc command) reduces the page to a compact, numbered view of a few hundred tokens.
In practice, you run oc open followed by an address. The tool fetches the page and returns a list of numbered items, with the available actions listed at the bottom. The agent then continues by number: oc do 1 to follow a link or read a text, oc find to search for a string, oc read to read a region in full, oc next for the rest of the page, oc raw for the whole page as markdown.
The tool presents itself to sites as a Chrome browser, then as Firefox if Chrome is refused, which lets it get past some blocks that stop simple fetchers. It also offers shortcuts for many sites, such as Hacker News, GitHub, Wikipedia or the documentation of several languages. It works with no browser extension and no background process.
It is meant for people who use a command-line agent such as Claude Code, Codex or Antigravity and want it to browse at low cost. It requires Node 20 or later and some comfort with the terminal. It is less suited to highly dynamic pages, since it is designed for mostly static sites, and typing into forms (oc fill, oc submit) is announced but not yet available.
What it offers
- ·oc open <url> returns a numbered view of the page, with a default budget of 500 tokens, adjustable with --budget.
- ·oc do, oc find, oc read, oc next and oc raw let you follow a link, search for a string, read a region (up to 2000 tokens), move further down the page or get the whole page as markdown.
- ·Per-site shortcuts spare the agent from knowing how a site spells its URLs, for example oc hn top, oc gh repo or oc wiki article; oc sites lists them all.
- ·A JSON response from an API is treated as a page: one numbered item per record, keeping only the fields that differ between items.
- ·Requests impersonate Chrome, then Firefox if Chrome is refused, then native fetch as a last resort.
- ·oc login, oc logout and oc session let you create, list and delete sessions with cookies for pages behind a login.
- ·The --json, --html, --session and --verbose flags adjust the output format, the session used and the display of metrics.
- ·A skill (web-browsing-cli) and a Claude Code plugin integrate the tool with Claude Code, Cursor, Codex, Copilot and other compatible agents.
In practice
- Price
- Free
- Commercial use
- Commercial use: yes
- Available on
- cli, npm, claude-code, any-agent
- Licence
- MIT
- FR interface
- No
Security and data
- Rating
- Security: one caveat, see the card
- Your data
- Data stays local
- Maintenance
- Active
- Last release
- 17 November 2026
Links and repository checked on 29 November 2026 · added on 29 November 2026
How to install only-cli (oc)
npm install -g @only-cli/oc