
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
@grayhaven/context7cli
Advanced tools
Context7 CLI for AI agents - fetch up-to-date library documentation
CLI for AI agents to fetch up-to-date library documentation from Context7.
Two commands. No intermediate steps. Token-budgeted responses.
npm install -g @grayhaven/context7cli
brew install tylergibbs1/context7cli/context7cli
curl -fsSL https://raw.githubusercontent.com/tylergibbs1/context7cli/main/install.sh | bash
Pin a version:
VERSION=v0.1.0 curl -fsSL https://raw.githubusercontent.com/tylergibbs1/context7cli/main/install.sh | bash
irm https://raw.githubusercontent.com/tylergibbs1/context7cli/main/install.ps1 | iex
Pin a version:
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/tylergibbs1/context7cli/main/install.ps1))) -Version v0.1.0
git clone https://github.com/tylergibbs1/context7cli.git
cd context7cli
bun install
bun run build
The built CLI is at dist/index.js. Link it globally with npm link.
search — browse available librariescontext7 search <library>
context7 search react
# {"ok":true,"data":[{"id":"/websites/react_dev","name":"React","description":"..."},…]}
With full metadata:
context7 search react --detail full
# {"ok":true,"data":[{"id":"/websites/react_dev","name":"React","description":"...","totalSnippets":2922,"trustScore":10,"benchmarkScore":95.1,"versions":[]},…]}
docs — fetch documentationAccepts a library name (auto-resolves) or ID (direct lookup).
context7 docs <name-or-id> [--topic T] [--tokens N] [--detail concise|full]
# By name (auto-resolves to best match)
context7 docs nextjs --topic routing
# By ID (skips resolution)
context7 docs /vercel/next.js --topic routing
# Limit token budget
context7 docs nextjs --tokens 2000
# Full metadata (type, tokens, language per snippet)
context7 docs nextjs --topic hooks --detail full
Concise response (default):
{
"ok": true,
"library": "Next.js",
"libraryId": "/vercel/next.js",
"data": [
{ "title": "App Router > Routing", "content": "..." }
]
}
Full response (--detail full):
{
"ok": true,
"library": { "id": "/vercel/next.js", "name": "Next.js", "snippets": 2922, "trustScore": 10 },
"data": [
{ "title": "App Router > Routing", "content": "...", "type": "code", "tokens": 450, "language": "typescript" }
]
}
Truncation — when results exceed the token budget, a steering message is appended:
{
"truncated": "Result truncated at 2000 tokens. 3 more snippets available. Use --tokens 4000 or --topic to narrow results."
}
| Flag | Description | Default |
|---|---|---|
--api-key <key> | Context7 API key (or set CONTEXT7_API_KEY env var) | — |
--topic <topic> | Focus docs on a specific topic | "documentation" |
--tokens <number> | Token budget for docs response | 10000 |
--detail <concise|full> | Response detail level | concise |
--help | Show help | — |
Optional. Set CONTEXT7_API_KEY for higher rate limits:
export CONTEXT7_API_KEY=your-key-here
Get a free key at context7.com/dashboard.
bun run dev # run from source
bun run typecheck # type check
bun run build # bundle to dist/
bun test # run tests
MIT
FAQs
Context7 CLI for AI agents - fetch up-to-date library documentation
The npm package @grayhaven/context7cli receives a total of 0 weekly downloads. As such, @grayhaven/context7cli popularity was classified as not popular.
We found that @grayhaven/context7cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.