Skip to main content
AI Tool Radar
OSI-openCoding agents and context efficiency

opensrc

vercel-labs

CLI that fetches real dependency source code so coding agents can read internals, not just type stubs.

2.6k stars(as of 2026-06-26)View on GitHubHomepage

What is opensrc?

A CLI that fetches and caches the actual source code of packages so AI coding agents can read and grep dependency internals instead of relying only on type definitions. It covers npm, PyPI, crates.io and GitHub, caches locally for instant re-access, and composes with standard Unix tools like ripgrep and grep.

Pros & Cons

Pros

  • Gives agents the real dependency source, not just .d.ts stubs, cutting hallucinated API usage
  • Multi-registry (npm, PyPI, crates.io, GitHub) with local caching and clean Unix-tool composition
  • Apache-2.0, Rust core with real tests and a docs site, from Vercel Labs

Cons

  • Early 0.x (v0.7.3), the CLI surface may still change
  • A Vercel Labs experimental project, with no long-term support guarantee
  • Node 24+ per the README (the homepage says 18+), and the value assumes your agent already shells out to grep

License

Apache-2.0 (OSI-open)

When it is interesting

Coding-agent users who want agents to read actual dependency source for deeper, less hallucinated context.

When it is too early

If you need an API-stable, officially supported tool rather than a Labs 0.x experiment.

This repo featured in the 2026-07 edition of the Open-Source AI Radar.