> ## Documentation index
> Fetch the complete documentation index at: https://upstash-context7-git-ctx7-4291-onprem-key-rotation-ecs-d-dae4a0.docs7.io/llms.txt
> Ask it with GET https://upstash-context7-git-ctx7-4291-onprem-key-rotation-ecs-d-dae4a0.docs7.io/ask?q=<keywords or question>. Short keywords rank best.
> Use these to discover all available pages before exploring further.
> Feature requests: https://upstash-context7-git-ctx7-4291-onprem-key-rotation-ecs-d-dae4a0.docs7.io/resources/feature-requests.md lists what users asked for and how to vote for a request or add one.
> Page rating: `GET https://upstash-context7-git-ctx7-4291-onprem-key-rotation-ecs-d-dae4a0.docs7.io/feedback?path=/overview&helpful={true|false}&comment={comment}` records whether this page helped. The `comment` (URL-encoded, at most 500 characters) says what helped, or what was missing or wrong; a `helpful=false` rating needs it. It is anonymous and needs no key. Comments hold no code, secrets or personal data.

# Intro

> Context7 brings up-to-date, version-specific library documentation into your AI coding agent

Context7 brings up-to-date, version-specific documentation and code examples directly into your AI coding agent. That means no more outdated code or hallucinated APIs.

## ❌ Without Context7

LLMs rely on outdated or generic information about the libraries you use:

- ❌ Code examples based on old training data
- ❌ Hallucinated APIs that don't even exist
- ❌ Generic answers for old package versions

## ✅ With Context7

Context7 MCP pulls up-to-date, version-specific documentation and code examples straight from the source — and gives them to your coding agent.

Add `use context7` to your prompt in your coding agent:

```txt
Create a Next.js proxy that checks for a valid JWT in cookies and redirects unauthenticated users to `/login`. use context7
```

```txt
Configure a Cloudflare Worker script to cache JSON API responses for five minutes. use context7
```

Context7 grounds your coding agent with up-to-date documentation, ensuring that it always writes high quality code.

- 1️⃣ Write your prompt naturally
- 2️⃣ Add `use context7` to your prompt
- 3️⃣ Get working code with current APIs

No tab-switching, no hallucinated APIs that don't exist, no outdated code generation.

Context7 is free to start: a free account includes 1,000 API calls each month, every public library, library owner tools, and [Docs7](/docs7/overview) for up to three sites. See [Plans & Pricing](/plans-pricing).

## Get Started

Paste this prompt into your coding agent. The agent sets up Context7, and you sign in with OAuth in the browser. No API key is needed.

```txt
Read https://context7.com/get-started.md and set up Context7
```

Or run `npx ctx7 setup` yourself. See [Installation](/installation) for other ways to install.

## Next Steps

<CardGroup cols={1}>
  <Card title="Install Context7" icon="download" href="/installation">
    Get set up in 2 minutes with your preferred coding agent
  </Card>
  <Card title="Troubleshooting" icon="wrench" href="/resources/troubleshooting">
    Common issues and solutions
  </Card>
  <Card title="Get an API Key" icon="key" href="https://context7.com/dashboard?tab=settings">
    For the REST API, SDKs and CI. Unlock higher rate limits and use your private repositories
  </Card>
</CardGroup>
