# DeepWiki Open — AI-Powered Wiki Generator for Code Repositories > An open-source tool that automatically generates comprehensive wiki documentation from GitHub, GitLab, and Bitbucket repositories using AI analysis of the codebase structure and content. ## Install Save as a script file and run: # DeepWiki Open — AI-Powered Wiki Generator for Code Repositories ## Quick Use ```bash git clone https://github.com/AsyncFuncAI/deepwiki-open.git cd deepwiki-open cp .env.example .env # Add your LLM API key docker compose up -d # Open http://localhost:8080 and paste a repo URL ``` ## Introduction DeepWiki Open is an open-source tool that turns any GitHub, GitLab, or Bitbucket repository into a structured wiki. It uses LLMs to analyze code, extract architectural patterns, and produce human-readable documentation pages covering the project's design, components, and workflows. It is the self-hostable version of the DeepWiki service. ## What DeepWiki Open Does - Generates structured wiki pages from any public or private repository - Analyzes code architecture, dependencies, and module relationships - Supports GitHub, GitLab, and Bitbucket as source platforms - Produces documentation with diagrams, component breakdowns, and API references - Lets users ask follow-up questions about the generated documentation ## Architecture Overview DeepWiki Open clones the target repository, parses its file tree, and feeds code segments to an LLM through a chunking and summarization pipeline. The backend is written in Python and orchestrates the analysis across multiple passes: structure extraction, module-level summarization, and cross-reference linking. The frontend provides a wiki-style interface where each page corresponds to a logical section of the codebase. Generated wikis are cached and can be regenerated when the source repo changes. ## Self-Hosting & Configuration - Deploy with Docker Compose for a one-command setup - Configure LLM providers via environment variables (supports OpenAI, Ollama, OpenRouter, and more) - Set up authentication for private repository access via GitHub/GitLab tokens - Customize output templates and wiki structure through configuration files - Runs on modest hardware; GPU not required unless using local models ## Key Features - One-click wiki generation from a repository URL - Multi-provider LLM support including self-hosted models via Ollama - Interactive Q&A over the generated documentation - Supports private repositories with token-based authentication - Clean, navigable wiki UI with automatic section organization ## Comparison with Similar Tools - **ReadMe** — hosted documentation platform; DeepWiki Open is self-hosted and auto-generates from code - **Docusaurus/MkDocs** — static site generators requiring manual content; DeepWiki Open generates content automatically - **GitBook** — collaborative docs platform; DeepWiki Open focuses on AI-generated codebase wikis - **Swimm** — code documentation tool; DeepWiki Open provides broader architectural analysis - **Repomix** — packs repos for LLM context; DeepWiki Open produces readable wiki output ## FAQ **Q: Can I use DeepWiki Open with private repositories?** A: Yes. Configure a personal access token for GitHub, GitLab, or Bitbucket in the environment settings. **Q: Which LLM providers are supported?** A: OpenAI, Ollama, OpenRouter, Google Gemini, and any OpenAI-compatible endpoint. **Q: Does the wiki update when the repository changes?** A: You can manually trigger a regeneration. Automatic sync on push events is not built in by default. **Q: How long does it take to generate a wiki?** A: Generation time varies with repository size. A medium-sized project typically takes a few minutes. ## Sources - https://github.com/AsyncFuncAI/deepwiki-open --- Source: https://tokrepo.com/en/workflows/asset-97fe4c78 Author: Script Depot