Authorization notice. Oc is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forA security-minded developer or agent reviewing a dependency alert before upgrading.
The problemAdvisory pages are long and mix in navigation, which wastes tokens when only the affected versions and fix matter.
The outcomeA compact view of the advisory record for a known id, ready to paste into a triage note.
What you need first
- 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
Steps
- Run
npm install -g @only-cli/oc - Run
oc osv vuln <id>with a GHSA or CVE id from your alert (inferred, check the README) - Run
oc rawif you need the full record
Prompt for your agent
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.
Caveat. The README does not show the exact output layout of the OSV shortcut, so confirm the fields you need with Oc raw on the first run.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for only-cli/oc and "Look up security advisories for a dependency"
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 freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer