What is OpenDeepWiki?
OpenDeepWiki is a self-hosted, AI-driven repository knowledge base. It sits in the Code Indexing & Search category of the Retrieval & Knowledge (RAG) tools and is open-source, written in C# and licensed MIT. To get started: clone the repository.
Overview
OpenDeepWiki is a self-hosted, AI-driven repository knowledge base. You point it at a Git URL, upload a ZIP archive or approve a local directory, and it analyses the tree and generates structured documentation for the project — a README summary, a project overview, a wiki catalog, the document content itself, and Mermaid mind maps. The same indexed content is then reused for chat, embeds and MCP, so a repository is documented once and consumed several ways.
Generated docs are published by a Next.js front end on SEO-friendly routes such as `/{owner}/{repo}`, `/{owner}/{repo}/mindmap` and `/{owner}/{repo}/graphify`, which makes it usable as a public documentation site rather than an internal-only tool. Multi-language translation is built in, and background workers handle repository processing, translation, mind map generation and scheduled incremental updates so a wiki stays current as the code moves.
The stack is ASP.NET Core on .NET 10 with a Next.js 16 / React 19 front end, storing to SQLite or PostgreSQL, with `LibGit2Sharp` doing the repository ingestion. An admin console manages repositories, users, roles, departments, API keys, AI providers and models, skills, MCP providers and GitHub App imports, and incoming chat/webhook channels are supported for Feishu, QQ, WeChat and Slack. The project is MIT-licensed with separately priced enterprise support.
What it does
- Ingest a repository from a Git URL, an uploaded ZIP archive or an approved local directory
- Generate README summaries, project overviews, wiki catalogs, document content, mind maps and multi-language translations
- Publish public docs on SEO-friendly `/{owner}/{repo}` routes with mindmap and graphify views
- Expose repository knowledge over repository-scoped MCP endpoints, a built-in chat assistant, embedded chat APIs and share links
- Background workers for processing, translation, mind maps and scheduled incremental updates
- Admin console for repositories, users, roles, API keys, AI providers/models, MCP providers and GitHub App imports
- Runs on SQLite or PostgreSQL; incoming chat/webhook channels for Feishu, QQ, WeChat and Slack
Getting started
The supported path is Docker Compose. You need Docker with Compose support and at least one LLM API key for the provider you choose.
Clone the repository
git clone https://github.com/AIDotNet/OpenDeepWiki.git
cd OpenDeepWikiConfigure compose.yaml
At minimum set a real JWT secret and your AI credentials. The chat, wiki-catalog and wiki-content providers can all point at the same endpoint. Translation is optional — if `WIKI_TRANSLATION_*` is unset it falls back to the content provider.
services:
opendeepwiki:
environment:
- JWT_SECRET_KEY=replace-this-in-production
- CHAT_API_KEY=your-chat-api-key
- ENDPOINT=https://api.openai.com/v1
- CHAT_REQUEST_TYPE=OpenAI
- WIKI_CATALOG_MODEL=gpt-4o
- WIKI_CONTENT_MODEL=gpt-4o
- WIKI_LANGUAGES=en,zh,ja,ko,es,fr,de
- WIKI_PARALLEL_COUNT=5Start the stack
Compose defaults to SQLite at /data/opendeepwiki.db. To run the bundled PostgreSQL stack instead, use compose.pgsql.yaml.
docker compose up -d --build
# or: make build && make up
# PostgreSQL instead:
docker compose -f compose.pgsql.yaml up -d --buildOpen the app and secure it
The web UI is at http://localhost:3000 and backend health at http://localhost:8080/health. A fresh database seeds an admin account (admin@routin.ai / Admin@123) — change the default JWT secret and that password before any real deployment.
curl http://localhost:8080/healthCommands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Stand up a browsable documentation site for a repository nobody has had time to document
- Give coding agents a repository-scoped MCP endpoint that answers from generated project docs
- Keep translated docs for a multi-language project in sync through scheduled incremental updates
- Run a private wiki over internal repositories on your own infrastructure, backed by SQLite or PostgreSQL
How OpenDeepWiki compares
OpenDeepWiki alongside other open-source code indexing & search tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| CodeGraph | ★ 79.3k | Builds a local SQLite knowledge graph of a codebase with a Rust tree-sitter kernel, keeps it in sync through a file watcher, and serves symbols, call paths and blast radius to coding agents over MCP. |
| codebase-memory-mcp | ★ 49.4k | A native MCP server that indexes a repository into a persistent tree-sitter knowledge graph of functions, call chains and routes, queried by agents through 15 tools. |
| GitNexus | ★ 49k | Indexes a codebase into a knowledge graph of dependencies, call chains and execution flows, then exposes it to Claude Code, Cursor and Codex through MCP tools. |
| code-review-graph | ★ 33k | A local-first code intelligence graph built with Tree-sitter that serves precise, incrementally-updated structural context to AI coding tools over MCP, so they read only the code a task needs. |
| XERJ | ★ 22.9k | Single-binary, Elasticsearch-compatible search engine whose autoindex command turns any folder of code, docs, logs or PDFs into typed indices that AI coding agents query via CLI or MCP instead of grepping. |
| Claude Context | ★ 12.7k | An MCP server that indexes your codebase into a vector database so AI coding agents can find relevant code by meaning instead of loading whole folders. |
| Graft | ★ 11.6k | Builds a persistent knowledge graph of your codebase as linked markdown files, then feeds the matching nodes to coding agents so they stop re-exploring the repo on every task. |
| OpenDeepWiki | ★ 3.7k | Turn a Git repository into a browsable, chattable documentation site you host yourself |
