# CLI that helps AI agents avoid vulnerable dependencies

deptrust is a CLI that checks package versions for known vulnerabilities across npm, PyPI, crates.io, Go modules, RubyGems, NuGet, Maven, Packagist, pub.dev, CocoaPods, Hex.pm, Hackage, GitHub Actions, and more. It runs locally as a CLI and as an MCP server. It calls public package registry and OSV…

- **Page:** https://magpie.gallery/i/cli-that-helps-ai-agents-avoid-vulnerable-dependen-9urd
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Runs on:** windows, macos, linux
- **Tags:** vulnerabilities, dependencies, mcp, cli, security

## Source

Web · modelorona: CLI that helps AI agents avoid vulnerable dependencies

- **Original:** https://news.ycombinator.com/item?id=48752948

> deptrust is a CLI that checks package versions for known vulnerabilities across npm, PyPI, crates.io, Go modules, RubyGems, NuGet, Maven, Packagist, pub.dev, CocoaPods, Hex.pm, Hackage, GitHub Actions, and more. It runs locally as a CLI and as an MCP server. It calls public package registry and OSV APIs directly; there is no hosted deptrust service. I built this because AI coding agents kept suggesting outdated or vulnerable package versions. I kept having to manually tell tools like Claude and Codex to use newer, safer versions. deptrust gives the agent a quick way to verify whether a dependency version has known vulnerabilities before it installs or recommends it. You can install it with: 1. pnpx @clidey/deptrust@latest install 2. brew install clidey/tap/deptrust 3. Or directly with go: go install github.com/clidey/deptrust/cmd/deptrust@latest https://github.com/clidey/deptrust

## GitHub projects

- https://github.com/clidey/deptrust

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
