Cette page est affichée en anglais. Une traduction française est en cours.
ScriptsApr 6, 2026·3 min de lecture

OpenDeepWiki — Turn Any Repo into AI Documentation

Self-hosted tool that converts GitHub, GitLab, and Gitea repositories into AI-powered knowledge bases with Mermaid diagrams and conversational AI. MIT license, 3,000+ stars.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 96/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Knowledge
Installation
Single
Confiance
Confiance : Established
Point d'entrée
OpenDeepWiki — Turn Any Repo into AI Documentation
Commande d'installation directe
npx -y tokrepo@latest install 24613482-86e1-487a-a2ad-450c9bb7dfaa --target codex

À exécuter après confirmation du plan en dry-run.

TL;DR
OpenDeepWiki turns any Git repo into a searchable AI knowledge base with diagrams and chat.
§01

What it is

OpenDeepWiki is a self-hosted tool that converts code repositories from GitHub, GitLab, and Gitea into AI-powered documentation sites. It analyzes source code, generates structured documentation with Mermaid diagrams, and adds a conversational AI interface for asking questions about the codebase.

This tool is useful for engineering teams onboarding new developers, open-source maintainers who want better docs, and anyone who needs to understand an unfamiliar codebase quickly. It ships under the MIT license.

§02

How it saves time or tokens

Reading a large codebase file by file is slow and error-prone. OpenDeepWiki automates the documentation generation process, producing architecture overviews, dependency graphs, and API references from source code. The generated knowledge base also serves as context for AI assistants, reducing the token cost of repeatedly explaining code structure in chat conversations.

§03

How to use

  1. Clone the OpenDeepWiki repository and install dependencies.
  2. Configure your Git provider credentials and target repository.
  3. Run the documentation generation process.
  4. Access the generated knowledge base through the web interface.
# Clone OpenDeepWiki
git clone https://github.com/AIDotNet/OpenDeepWiki.git
cd OpenDeepWiki

# Configure environment
cp .env.example .env
# Edit .env with your GitHub token and LLM API key

# Run with Docker Compose
docker-compose up -d

# Access the web UI
# Open http://localhost:3000 in your browser
§04

Example

After pointing OpenDeepWiki at a repository, it generates pages like:

# Architecture Overview

The project follows a layered architecture:

- **API Layer**: Express.js routes in /src/routes/
- **Service Layer**: Business logic in /src/services/
- **Data Layer**: PostgreSQL via Prisma ORM in /src/models/
§05

Dependency Graph

(Mermaid diagram auto-generated from imports)

§06

Key Components

AuthService

Handles JWT token generation and validation.

Used by: routes/auth.ts, middleware/auth.ts

§07

Related on TokRepo

§08

Common pitfalls

  • Large repositories take significant time and API tokens to process. Start with smaller repos to validate your setup.
  • The quality of generated documentation depends on the LLM used. Stronger models produce more accurate architecture descriptions.
  • Private repository access requires proper Git provider tokens with read permissions.
  • Mermaid diagrams can become cluttered for repositories with complex dependency trees. Consider filtering to specific modules.
  • The tool generates a snapshot of documentation. Re-run it periodically to keep docs in sync with code changes.
  • Review the official documentation before deploying to production to ensure compatibility with your specific environment and requirements.

Questions fréquentes

Which Git providers does OpenDeepWiki support?+

OpenDeepWiki supports GitHub, GitLab, and Gitea. You configure provider credentials in the environment file. Both public and private repositories are supported with proper authentication tokens.

What LLM does OpenDeepWiki use?+

OpenDeepWiki is LLM-agnostic. You configure the model endpoint in the environment file. It works with OpenAI, Anthropic Claude, and other providers that expose a compatible API.

Can I customize the generated documentation?+

Yes. You can configure which directories to include or exclude, set documentation depth, and customize the output format. The generated markdown files can be edited manually after generation.

How does the conversational AI feature work?+

Once documentation is generated, the web interface includes a chat panel. You can ask questions about the codebase in natural language, and the AI answers using the generated documentation as context via retrieval-augmented generation.

Is OpenDeepWiki suitable for monorepos?+

It can handle monorepos, but processing time and cost increase with repository size. For large monorepos, consider pointing it at specific subdirectories rather than the entire repository to keep generation manageable.

Sources citées (3)
🙏

Source et remerciements

Created by AIDotNet. Licensed under MIT.

OpenDeepWiki — ⭐ 3,000+

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires