Quick answer. DeepWiki is a free AI documentation tool from Cognition Labs (the makers of Devin) that turns any public GitHub repository into an interactive wiki at deepwiki.com. Replace github.com with deepwiki.com in any repo URL and you get architecture diagrams, file-linked summaries, and a chat interface grounded in the codebase. Over 50,000 of the top public repos are pre-indexed, including MCP, LangChain, Next.js and React. Private repos work via a Devin account. There is an official MCP server for Cursor, Claude Code and Claude Desktop.
Updated 2026-05-23.
What DeepWiki is
DeepWiki is an AI-powered code documentation system built by Cognition Labs, the company behind the autonomous coding agent Devin. It analyses a GitHub repository — README, source files, configs, tests — and synthesises a structured wiki: architecture overview, module summaries, dependency graphs, sequence diagrams, and a chat interface that answers questions with line-level citations back to the source.
Cognition launched DeepWiki publicly in April 2025. By 2026 it has indexed more than 50,000 of the most-starred public GitHub repos, and it ships an official Model Context Protocol (MCP) server so coding agents like Cursor, Claude Code and Claude Desktop can query repo knowledge programmatically.
For broader context on the AI-agent tooling landscape, see our AI coding agents complete guide. For the canonical short walkthrough we already had on Codersera, see How to Use DeepWiki. This piece is the longer reference.
What problem does DeepWiki solve?
Onboarding to an unfamiliar codebase is one of the most expensive activities in software. A new contributor staring at a fresh clone of Kubernetes, React, or a 200k-line internal monorepo will typically spend days reading source before they can land their first useful PR. The README rarely explains why the code is shaped the way it is. Tests don't capture intent. The git log is too granular.
DeepWiki collapses that onboarding from days to about an afternoon. The architecture page tells you the system's bones. The module pages tell you what each top-level directory is for. The chat answers "where does request authentication happen?" with clickable file references. You still need to read code — but you read it knowing what you are looking at.
How to use DeepWiki on a public repo
The fastest path is the URL trick. Take any GitHub repo URL and swap the host:
https://github.com/anthropics/anthropic-sdk-python
# becomes
https://deepwiki.com/anthropics/anthropic-sdk-python
If DeepWiki has already indexed the repo (likely for any moderately popular project) the page loads instantly. If not, you will see an "index this repo" prompt; first-time generation takes anywhere from 30 seconds to a few minutes depending on repo size, then the wiki is permanent.
The generated wiki has three main surfaces:
- Overview — high-level description, primary language, tech stack, entry points.
- Pages — left-nav sections for each major module or feature area, each with diagrams and prose summaries.
- Ask — chat interface grounded in the codebase, with two modes (more on this below).
Fast mode vs Deep Research mode
The Ask interface offers two retrieval strategies:
- Fast mode answers immediately from a precomputed code graph. Good for "what does function X do?" and "where is class Y defined?" type questions. Sub-second latency.
- Deep Research mode spends additional cycles reading across multiple files, following call chains, and synthesising a multi-hop answer. Good for "how does authentication flow end-to-end?" or "what changes if I want to swap the storage backend?". Takes 20 to 60 seconds.
Both modes ground every claim with clickable, line-level citations. The cited link opens the relevant file at the specific line on GitHub, so you can verify the AI's interpretation before trusting it.
Private repos and Devin integration
DeepWiki's free tier covers public repos only. For private repos:
- Sign up for a Devin account.
- Connect your GitHub account in the Devin dashboard.
- Devin's wiki for each repo is hosted at an authenticated URL on deepwiki.com.
- Use the
.devin/wiki.jsonfile at the repo root to steer wiki generation (exclude paths, force certain modules to be top-level pages, etc.). This matters for large repos that would otherwise hit generation limits.
Enterprise customers get VPC deployment, SSO, admin controls and teamspace isolation under the broader Devin Enterprise umbrella. Pricing on request.
The DeepWiki MCP server
This is the most important piece for engineers using AI coding agents day-to-day. Cognition publishes an official MCP server at mcp.deepwiki.com that exposes DeepWiki's repo knowledge as tools to any MCP-compatible client.
Once wired up, your coding agent (Claude Code, Cursor, Claude Desktop, Windsurf) can:
- Fetch the wiki structure for any indexed public repo.
- Pull a specific wiki page as Markdown.
- Ask a natural-language question against a repo and get a cited answer.
In practice this shifts the workflow from "I read the docs and decide what to do" to "my agent reads the docs and acts on what it finds". Ask Claude Code "how does LangChain handle streaming?" and instead of guessing from training data it calls the DeepWiki MCP, reads the live answer from the LangChain wiki, and writes code grounded in current source.
Configuring it in Cursor
Add this to .cursor/mcp.json at your project root (or globally in ~/.cursor/mcp.json):
{
"mcpServers": {
"deepwiki": {
"url": "https://mcp.deepwiki.com/sse"
}
}
}
Configuring it in Claude Code
Add to ~/.claude.json under mcpServers:
{
"mcpServers": {
"deepwiki": {
"url": "https://mcp.deepwiki.com/sse"
}
}
}
Restart the client. The agent now has deepwiki_fetch and related tools available. For more on the MCP ecosystem and curated server picks, see our best MCP servers for Claude Code and Cursor roundup.
DeepWiki vs GitHub native features
GitHub has its own AI features (Copilot Workspace, code search, the "summarize this PR" button). They overlap a little but solve a different problem.
| GitHub native | DeepWiki | |
|---|---|---|
| Primary surface | Repo view, PR view | Generated wiki + chat |
| Architecture overview | README only | Auto-generated, with diagrams |
| Module summaries | None | One page per major module |
| Q&A interface | Copilot Chat (subscription) | Free for public repos |
| Citations | Inline file references | Line-level clickable citations |
| Pre-indexed repos | All of GitHub | 50,000+ top public repos |
| Private repo support | Native | Via Devin account |
| Cost | Copilot subscription | Free (public) / Devin (private) |
The honest summary: GitHub is where you do the work; DeepWiki is where you understand the work before you do it. They complement each other.
DeepWiki vs Cursor's repo indexing
Cursor builds a local vector index of your codebase to power its Tab completion and Composer features. This is similar in spirit to DeepWiki but with three structural differences:
- Scope. Cursor indexes the repo you have open. DeepWiki indexes the global pool of public repos plus your private ones via Devin.
- Surface. Cursor's index is invisible — it powers completion and chat under the hood. DeepWiki produces a human-readable wiki you can browse and link to.
- Cross-repo. When you want to know how an external dependency works (LangChain, the React renderer, a library you just installed), Cursor has to read the files in your
node_modules. DeepWiki has a curated wiki for that dependency you can link to from a PR or Slack message.
The pragmatic stack is: Cursor for your own repo, DeepWiki MCP for everyone else's.
Steering wiki generation with .devin/wiki.json
For your own repos (especially large monorepos), drop a .devin/wiki.json file at the root to control how DeepWiki indexes the code. The schema is small but powerful.
{
"include": ["apps/**", "packages/**", "docs/**"],
"exclude": [
"**/node_modules/**",
"**/dist/**",
"**/__generated__/**",
"infra/terraform/**"
],
"pages": [
{ "title": "API Gateway", "paths": ["apps/gateway/**"] },
{ "title": "Worker pipeline", "paths": ["apps/worker/**"] }
]
}
The biggest wins come from exclude. A typical Next.js monorepo will burn hundreds of MB of generation budget on node_modules, .next caches, vendored binaries, and AI-generated SDK shims. Excluding those gets you a tighter, more useful wiki and stops you hitting the per-repo generation limit.
The pages array lets you elevate specific paths to top-level wiki sections — useful when DeepWiki's auto-grouping doesn't match how your team mentally divides the codebase.
Using DeepWiki in pull request reviews
One of the highest-leverage workflows: paste the DeepWiki link to a module in the PR description when the change touches unfamiliar code. Reviewers can skim the wiki page for that module instead of cold-reading source. Three concrete patterns:
- Dependency upgrade PRs — link the DeepWiki page for the dependency. "Upgrading LangChain from 0.2 to 0.3 — relevant changes in DeepWiki: LangChain retrievers."
- Cross-team changes — link your own internal repo's DeepWiki page for the touched module. "This PR modifies the
billing/invoicesmodule — see DeepWiki: billing/invoices for context." - Refactor proposals — link DeepWiki's architecture diagram in the proposal doc so reviewers see the bones before the diff.
Pairs well with the Claude Code DeepWiki MCP: ask the agent to draft a PR summary that cites the relevant DeepWiki pages automatically.
Real workflows that work well
- Onboarding to a new job — point DeepWiki at the company's biggest internal repo via Devin, read the wiki for an afternoon, ship a useful PR by day three.
- Evaluating an OSS dependency — before adding LangChain or any other heavy library, scan its DeepWiki to understand the abstractions you are buying into.
- Cross-team code reviews — reviewing a PR that touches a service you don't own, open that service's DeepWiki side-by-side.
- Agentic refactors — wire the MCP into Claude Code so the agent can read the wiki for any library it is about to use, instead of hallucinating from training data.
- Conference-talk prep — research talks on "how X works internally" start with the project's DeepWiki.
Limitations and caveats
- Public repos only on the free tier. Private repos require a Devin account.
- LLM hallucination still applies. The wiki is generated; the citations help but you should verify load-bearing claims by clicking through to source. Heavy metaprogramming, code generation and unusual architectures are the most common misinterpretation cases.
- Snapshot in time. Wikis are regenerated on a schedule, not on every commit. For very active repos the wiki may lag the latest
mainby hours to days. - Large repo limits. Cognition imposes generation-size limits. Very large monorepos may need
.devin/wiki.jsontuning to exclude generated code, vendored deps, etc. - No human curation. The wiki is fully generated. There is no path today to hand-edit a page (e.g. to add a known-gotcha section).
FAQ
What is DeepWiki?
An AI-generated documentation site for any GitHub repository. Built by Cognition Labs, the team behind Devin. Free for public repos at deepwiki.com.
How do I use DeepWiki on a GitHub repo?
Replace github.com with deepwiki.com in the URL. For a brand-new repo you may need to click the "index this repo" prompt; subsequent visits load instantly.
Is DeepWiki free?
Yes for public GitHub repos. Private repos require a Devin account. Enterprise pricing on request.
Does DeepWiki support private repos?
Yes, via a Devin account. Connect GitHub in the Devin dashboard and your private repos appear at authenticated URLs on deepwiki.com.
What is the DeepWiki MCP server?
An official MCP endpoint at mcp.deepwiki.com that lets coding agents (Cursor, Claude Code, Claude Desktop, Windsurf) query repo wikis programmatically. Add the URL to your agent's MCP config to enable.
How is DeepWiki different from GitHub Copilot?
Copilot is a code-completion and chat assistant focused on the file you are editing. DeepWiki is a top-down architectural wiki for entire repos. They complement rather than replace each other.
How accurate is DeepWiki's documentation?
Good enough for onboarding and orientation; not infallible. Every claim has a line-level citation back to source, so you can verify load-bearing details before trusting them.
How often is the wiki refreshed?
Cognition regenerates wikis on a schedule. Very active repos may lag main by hours to days. Authenticated Devin users can re-trigger generation on demand.
Can I customise the wiki for my repo?
Yes via a .devin/wiki.json file at the repo root. Use it to exclude paths, force certain modules to be top-level pages, or otherwise steer generation. Especially useful for large monorepos that hit default generation limits.
Does DeepWiki work for languages other than JavaScript and Python?
Yes. DeepWiki handles every major language (Go, Rust, Java, Kotlin, Swift, C++, C#, Ruby, PHP, TypeScript, Python, JavaScript, Elixir, Haskell, Zig, and more). The wiki shape is the same; only the diagrams and module summaries reflect the language idioms.