vercel-labs/opensrc
Fetch source code for npm packages to give AI coding agents deeper context
What it solves
It provides coding agents with a way to access the actual source code of any package from various registries, allowing them to understand how a library is implemented rather than relying on outdated or incomplete documentation.
How it works
The tool provides a CLI that fetches source code from registries like npm, PyPI, crates.io, and GitHub. When a user or agent requests a path to a package's source, the tool downloads and caches it locally, returning the file path instantly on subsequent requests.
Who it’s for
Developers and AI coding agents that need to programmatically search, read, and analyze the source code of external dependencies.
Highlights
- Supports multiple registries including npm, PyPI, crates.io, and GitHub.
- Local caching for instant access after the first fetch.
- CLI-based interface that integrates easily with shell commands like
rg or cat.
Related
- Project
HKUDS/CLI-AnythingCLI‑Anything is a Python framework that automatically generates agent‑friendly Click CLIs for any software, outputting JSON for easy parsing. It includes a 7‑phase generation pipeline (analyze → design → implement → test → document → publish) and a package manager called CLI‑Hub to browse, install, and run a growing catalog of pre‑built CLIs (e.g., GIMP, Blender, Zoom). The project targets AI agents (Claude Code, Cursor, OpenClaw, etc.) that need deterministic, composable command interfaces, and it ships with a comprehensive test suite and security hardenings.
- Project
vercel-labs/skillsA CLI for the open agent skills ecosystem that allows users to install and manage reusable instruction sets across various AI coding agents.
- Project
openai/codexCodex CLI is a local coding agent from OpenAI that allows developers to to run AI-assisted coding directly from their terminal.
- Project
narumiruna/pi-extensionsA collection of modular extensions and libraries for the Pi Coding Agent that add capabilities for coding, browser automation, and workflow observability.
- Project
numtide/llm-agents.nixA collection of Nix packages for AI coding agents and development tools, providing daily updated, easy-to-install versions of popular AI assistants.