# OpenDeepWiki

> Turn a Git repository into a browsable, chattable documentation site you host yourself

- Category: Retrieval & Knowledge (RAG) / Code Indexing & Search
- Language: C#
- Licence: MIT
- Repository: https://github.com/AIDotNet/OpenDeepWiki
- Website: https://docs.opendeep.wiki
- Canonical page: https://ai-tldr.dev/tools/opendeepwiki/

## In short

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.

1. Clone the repository

```bash
git clone https://github.com/AIDotNet/OpenDeepWiki.git
cd OpenDeepWiki
```

2. Configure 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.

```yaml
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=5
```

3. Start the stack

   Compose defaults to SQLite at /data/opendeepwiki.db. To run the bundled PostgreSQL stack instead, use compose.pgsql.yaml.

```bash
docker compose up -d --build
# or: make build && make up
# PostgreSQL instead:
docker compose -f compose.pgsql.yaml up -d --build
```

4. Open 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.

```bash
curl http://localhost:8080/health
```

## 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
