What do you want to do?
5 use cases
-
Check a package's version, license, and deps cheaply
Get an npm package's version, license, engines, and dependencies in about 70 tokens.
View prompt
Use the only-cli/oc repo: run `oc npm pkg <package>` for the target package name. Expect a short block with version, license, engines, and dependencies. Verify that the package name in the output matches the target before using the data.
-
Find a Python function's docs by exact name
Search the Python docs index and jump straight to the anchor for a named symbol.
View prompt
Use the only-cli/oc repo: run `oc py search <symbol>` with the target symbol name. Expect a numbered list of Python docs results, with an exact match linking to its anchor. Verify that the top result names the symbol you asked for before quoting it.
-
Look up security advisories for a dependency
Query the OSV database for a GHSA, CVE, or ecosystem id and read a compact result.
- REPO
only-cli/oc - Claude Code
- Codex
- Cursor
- Research
- Intermediate
View prompt
Use the only-cli/oc repo: run `oc osv vuln <advisory-id>` with the id from the dependency alert. Expect a compact advisory view with the affected package and versions. Verify the id in the output matches the alert before acting on it.
- REPO
-
Skim Hacker News top stories in a few hundred tokens
Open the Hacker News front page as a numbered list and drill into one story.
View prompt
Use the only-cli/oc repo: run `oc hn top` to list current top stories. Expect a numbered list of headlines. Verify the list has entries before picking one to open with `oc do <n>`.
-
Give a coding agent cheap web reading in one step
Install the web-browsing skill and add one line to your agent instructions file.
- REPO
only-cli/oc - Claude Code
- Codex
- Cursor
- Research
- Intermediate
View prompt
Use the only-cli/oc repo: after the skill and instructions line are in place, ask the agent to read a page using `npx @only-cli/oc open <url>`. Expect a numbered compact view with an actions line. Verify the agent used oc instead of a raw fetch.
- REPO
Quick start with Oc
- Check you have what it needs: Node.js 20 or newer and npm; A terminal the agent or you can run commands in; Permission to install an npm package globally, or use npx instead.
- Open only-cli/oc on GitHub and read the README and license.
- Run
npm install -g @only-cli/oc - Run
oc npm pkg react(replace react with your package name) - If you need every field, run
oc raw
These steps come from our top use case, Check a package's version, license, and deps cheaply, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for only-cli/oc
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forDevelopers and AI agent operators who want coding agents to read web pages, docs, and package data without spending tens of thousands of tokens on raw HTML.
- Why it is hot551 stars, launched 83 days ago
- LanguageJavaScript
- Sourcegithub.com/only-cli/oc · Back to Hot repos
Requirements
- Node.js 20 or newer and npm
- A terminal the agent or you can run commands in
- Permission to install an npm package globally, or use npx instead
Add this badge to your README
Maintain Oc? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/only-cli-oc/?utm_source=github&utm_medium=badge&utm_campaign=only-cli-oc)
HTML
<a href="https://dedupedai.com/use-cases/only-cli-oc/?utm_source=github&utm_medium=badge&utm_campaign=only-cli-oc"><img src="https://dedupedai.com/badge/only-cli/oc.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Oc
What is Oc?
A command line tool that turns websites into compact, numbered text views so AI agents can read and act on web pages with few tokens. It is an open-source project on GitHub: https://github.com/only-cli/oc.
How do I use Oc?
Run npm install -g @only-cli/oc; then run oc npm pkg react (replace react with your package name); if you need every field, run oc raw. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Oc for?
Developers and AI agent operators who want coding agents to read web pages, docs, and package data without spending tens of thousands of tokens on raw HTML.
What can I do with Oc?
5 use cases so far, for example: Check a package's version, license, and deps cheaply; Find a Python function's docs by exact name; Look up security advisories for a dependency. Each has steps and a copy-paste agent prompt.
What do I need to run Oc?
Node.js 20 or newer and npm; A terminal the agent or you can run commands in; Permission to install an npm package globally, or use npx instead.
What are alternatives to Oc?
Other hot AI repos in Research: Deep Tutor, Local Deep Research, Project Nomad, Nanochat, We Knora.
Is Oc safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.