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.
- Oc
- Claude Code
- Codex
- Cursor
- Research
- Beginner
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.
- Oc
- Claude Code
- Codex
- Cursor
- Research
- Beginner
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.
- 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.
-
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.
- Oc
- Claude Code
- Codex
- Cursor
- Research
- Beginner
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.
- 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.
How to use 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.
Get 5 new use cases every morning. Free, one short email, 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 hot
- 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
Maintain Oc? Add the Featured on Deduped badge
Paste this into your README:
[](https://dedupedai.com/use-cases/only-cli-oc/?ref=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.
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: Scientific Agent Skills, Speaker Mem R1, DSH Council, Evo Bot, AI Engineering Course.
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.