ScriptsApr 6, 2026·3 min read

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.

SC
Script Depot · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

git clone https://github.com/AIDotNet/OpenDeepWiki.git
cd OpenDeepWiki
# Configure API keys in docker-compose.yml
make build
make up

Access at http://localhost:8090. Enter any repo URL to generate documentation.


Intro

OpenDeepWiki is an open-source tool that converts any code repository into a comprehensive, AI-powered knowledge base — with auto-generated Mermaid diagrams, structured documentation, and a conversational AI interface for asking questions about the code. With 3,000+ GitHub stars and MIT license, it supports GitHub, GitLab, Gitea, Gitee, and Bitbucket repositories. Built on .NET 9 and Semantic Kernel, it processes repos in minutes: cloning, scanning, filtering, generating README, creating document catalogs, and building searchable wikis. Also supports MCP integration for connecting to AI tools.

Best for: teams who want auto-generated documentation and a chat interface for understanding codebases. Works with: GitHub, GitLab, Gitea, Gitee, AtomGit repositories. Setup time: under 5 minutes with Docker.


OpenDeepWiki — How It Works

Processing Pipeline

  1. Clone — Clones the target repository
  2. Scan — Reads .gitignore, scans directory structure
  3. Filter — Intelligent filtering for relevant files
  4. Generate README — Creates or improves project README
  5. Classify — Generates project type classifications
  6. Catalog — Creates structured document catalog
  7. Process — Generates detailed documentation pages
  8. Visualize — Creates Mermaid diagrams for code structure

Key Features

  • Multi-Platform: GitHub, GitLab, Gitea, Gitee, AtomGit, Bitbucket
  • Multi-Language: Analyzes code in any programming language
  • Mermaid Diagrams: Auto-generated architecture and flow diagrams
  • Conversational AI: Chat interface powered by RAG for code questions
  • SEO-Friendly: Next.js frontend with proper meta tags
  • MCP Support: Connect as MCP server to AI tools
  • Multi-DB: SQLite, PostgreSQL, SQL Server, MySQL

Tech Stack

Layer Technology
Backend C#, .NET 9, Semantic Kernel
Frontend TypeScript, Next.js
AI Providers OpenAI, Azure OpenAI, Anthropic
Databases SQLite, PostgreSQL, SQL Server, MySQL
Deployment Docker, Kubernetes (Sealos)

FAQ

Q: What is OpenDeepWiki? A: A self-hosted tool that converts any Git repository into an AI-powered wiki with auto-generated documentation, Mermaid diagrams, and a conversational AI interface.

Q: Is it free? A: Yes, MIT license. You provide your own LLM API keys (OpenAI, Azure, or Anthropic).

Q: How long does it take to process a repo? A: Small repos: 1-2 minutes. Large repos: 5-15 minutes depending on size and LLM speed.


🙏

Source & Thanks

Created by AIDotNet. Licensed under MIT.

OpenDeepWiki — ⭐ 3,000+

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets