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 an open‑source Python framework that automatically generates agent‑friendly command‑line wrappers for any software. It ships a package manager (`cli‑anything‑hub`) that indexes dozens of community‑built CLIs (GIMP, Blender, Zoom, GIS tools, etc.) and lets agents discover, install, and invoke them via structured JSON output. Developers can use a 7‑phase generator to create new CLIs for any application, and AI agents (Claude Code, Cursor, Pi, OpenClaw, …) can install the meta‑skill to browse the registry autonomously. The project is actively maintained, well‑tested (2 461 passing tests), and Apache‑2.0 licensed.
- Project
vercel-labs/skillsA CLI that discovers, installs, updates, and runs reusable prompt bundles (“skills”) for many AI coding assistants (Claude Code, Cursor, OpenCode, etc.), pulling them from any Git repository or direct URL.
- 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 extensions and libraries for the Pi Coding Agent that adds advanced coding tools, workflow automation, and observability features.
- Project
numtide/llm-agents.nixA Nix flake that packages a wide range of AI coding agents and development tools (like Claude Code, Codex, Gemini CLI, etc.) and keeps them updated daily, so you can install and run them with a single nix run command.