context7cli
CLI Tool • February 20, 2026
CLI for AI agents to fetch up-to-date library documentation from Context7. Two commands, no intermediate steps, token-budgeted responses.
TypeScript
Bun
CLI
AI Agents
Documentation
NPM Package
Homebrew
Open Source
Key Features
- •Search available libraries by name
- •Fetch documentation with token budget control
- •Auto-resolves library names to Context7 IDs
- •JSON output mode for agent workflows
- •Available via npm, Homebrew, curl, and PowerShell
- •Topic filtering for focused documentation
- •Structured output with trust and benchmark scores
- •Cross-platform support (macOS, Linux, Windows)