Skip to content
ReviewRamble

The weekly brief

AI, reviewed, in your inbox.

  • New reviews of tools, models, MCP servers and repos, with the verdict up front
  • Re-checked prices and ratings when something changes
  • New analysis pieces as they are published

Models, agents, MCP servers and the tools actually worth your time.

One email a week. Unsubscribe with the link in any brief. How we use your email

only-cli (oc)

MIT command-line tool that turns web pages into numbered, few-hundred-token views a coding agent can read and follow without a browser.

Reviewed by ReviewRamble editors · Updated

View on GitHub Open source

Share this page:XLinkedInFacebookRedditWhatsAppEmail

Our rating

3.8/5

oc cuts what a coding agent pays to read a web page by an order of magnitude on its author's benchmarks, but it only reads: no JavaScript pages and no forms yet.

What is only-cli (oc)?

only-cli, run as `oc`, is a Node.js command-line tool for AI coding agents. `oc open <url>` fetches a page and prints a compact text view with numbered links and regions; `oc do 3` follows link 3, and `oc find`, `oc read` and `oc next` page through the rest without fetching it again. Requests impersonate Chrome through the impers library, falling back to Firefox and then to plain fetch.

On top of the generic renderer it ships shortcuts for dozens of sites, including Hacker News, GitHub, Stack Overflow, Wikipedia, npm, PyPI and the Python, MDN and Node.js docs, several of which read a feed or public JSON API instead of the page. It installs from npm, as a Claude Code plugin or as an agent skill, and is MIT licensed.

Is only-cli (oc) worth it?

oc goes after the right cost. When a coding agent fetches a page, most of what lands in its context is markup; oc hands back a few hundred tokens instead. The project's own benchmark, run on oc 0.5.1 to 0.5.3 in September 2026 against live sites, puts fourteen pages at 9,466 tokens through oc against 1,119,003 as raw HTML, about 118 times fewer, and 17 times fewer than Jina Reader. In end-to-end Claude Code runs, five Wikipedia lookups cost $0.23 through `oc wiki` against $0.45 with the built-in WebSearch, and twelve dependency questions were answered 12 of 12 for $0.63, against 10 of 12 for $0.70 with WebFetch.

The design keeps the agent's work small. Every render ends with a line listing the next actions, so an agent learns the commands from the output; the default budget is 500 tokens per page, and a page that runs only slightly long is printed whole. When a page has no readable text, such as a JavaScript-only app or a bot challenge, oc exits with code 2 rather than returning an empty render, so the agent knows when a real browser is worth paying for. The README does not oversell: through Codex, the agent's own search beat oc by 16% on documentation lookups.

The catch: oc is young and read-only. The repository was created in August 2026, has 707 stars and is maintained largely by one account; version 0.5.10 shipped on 17 November. `fill` and `submit` are listed but not implemented, there is no JavaScript rendering, and sites with hard bot challenges may still refuse it. Its access to sites that block simple fetchers rests on imitating Chrome's network fingerprint, which some sites' terms forbid. Logged-in browsing works by piping your browser cookies into `oc login`; they are stored under `~/.only-cli/sessions/` with owner-only permissions, expire after one hour by default and are only sent over HTTPS, but they are still live credentials on disk. oc refuses private and internal addresses, and the README warns that page text can contain instructions an agent must not follow. The command is also called `oc`, which collides with Red Hat OpenShift's CLI.

Our take: for an agent that spends its day reading documentation, package registries and forums, oc is a cheap swap for WebFetch with little to lose; anything that means clicking through a JavaScript app still belongs to a headless browser such as Lightpanda.

Where it earns its place

  • A backend developer using Claude Code on a Python and Node.js service

    Look up library APIs and package versions without filling the context window

    Add one line to CLAUDE.md telling the agent to run `npx @only-cli/oc open <url>`, or install the web-browsing-cli skill. Shortcuts such as `oc py library json` and `oc npm pkg react` return a few hundred tokens; the author's dependency benchmark cost $0.63 for 12 questions against $0.70 with WebFetch.

  • A platform engineer triaging a dependency alert

    Check the advisory, the package's releases and its end-of-life date in one agent session

    `oc osv vuln <id>`, `oc gh releases <owner> <name>` and `oc eol product <name>` each resolve to a public API and print the fields that matter. GitHub's advisory API allows 60 requests an hour without a token.

  • An engineer whose team wiki is a hosted SaaS behind single sign-on

    Let an agent read pages it cannot reach anonymously

    Pipe the browser's Cookie header into `oc login --cookie - --domain <wiki host> --expires 2h`, then pass `--session` to `oc open`. Cookies sit in an owner-only file and are deleted by `oc logout`. oc refuses private and internal addresses, so intranet hosts are out of reach.

Before you commit

Setup
`npm install -g @only-cli/oc` with Node 20 or later, or `npx @only-cli/oc` with no install. A Claude Code plugin (`/plugin marketplace add only-cli/oc`) and an agent skill are also offered.
Integrations
Claude Code, Codex, Cursor, Copilot and other agents through a skill or one instruction line; HTTP and HTTPS proxies through the usual environment variables; `--json` output for scripts.
Data and privacy
Runs locally with no account. Page state and cookie jars live in `~/.only-cli` (override with `OC_HOME`); cookie files are mode 0600, expire after one hour by default and hold at most 50 cookies. Private and internal addresses are refused.
Cost at scale
Free under MIT; the saving is in model tokens, roughly 1,100 to 1,200 fresh input tokens per task in the author's Claude Code runs.
Limits
No JavaScript rendering or forms; Reddit refuses a second anonymous feed request within about 30 seconds; `ALL_PROXY` and SOCKS proxies are not supported; IPv6 literal targets fail through an HTTPS proxy.

What’s good

  • About 118 times fewer tokens than raw HTML on the author's 14-page benchmark
  • A distinct exit code for empty pages tells the agent when to fall back to a browser
  • Shortcuts for GitHub, npm, PyPI, Stack Overflow and major documentation sites
  • MIT licence, no daemon; runs through npx or as a Claude Code plugin

What’s not

  • Read-only: form filling and submission are not implemented
  • No JavaScript rendering, and hard bot challenges can still block it
  • Benchmarks are the author's own; young project with one main maintainer
  • Chrome impersonation may breach some sites' terms; `oc` clashes with OpenShift's CLI

Best for

Developers whose coding agents read documentation, package registries and forums all day and who want to cut the tokens and cost of each lookup.

only-cli (oc) alternatives

only-cli (oc): common questions

Is only-cli (oc) worth it?
oc cuts what a coding agent pays to read a web page by an order of magnitude on its author's benchmarks, but it only reads: no JavaScript pages and no forms yet. We rate it 3.8 out of 5.
How much does only-cli (oc) cost?
Free and open source under the MIT licence; no account, hosted service or paid tier.
What are the downsides of only-cli (oc)?
Read-only: form filling and submission are not implemented; no JavaScript rendering, and hard bot challenges can still block it; benchmarks are the author's own; young project with one main maintainer; chrome impersonation may breach some sites' terms; `oc` clashes with OpenShift's CLI.
Who is only-cli (oc) best for?
Developers whose coding agents read documentation, package registries and forums all day and who want to cut the tokens and cost of each lookup.
How much does only-cli (oc) cost for a team or in production?
Free under MIT; the saving is in model tokens, roughly 1,100 to 1,200 fresh input tokens per task in the author's Claude Code runs.
Is only-cli (oc) safe for company data?
Runs locally with no account. Page state and cookie jars live in `~/.only-cli` (override with `OC_HOME`); cookie files are mode 0600, expire after one hour by default and hold at most 50 cookies. Private and internal addresses are refused.
What are the best only-cli (oc) alternatives?
The closest alternatives we have reviewed are OpenCLI, Lightpanda and Crawl4AI.

Answers checked Nov 18, 2026.