Scripts2026年7月14日·1 分钟阅读

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.

Agent 就绪

先审查再安装

这个资产需要先审查。复制的指令会要求 Agent dry-run、列出写入项,确认后再继续。

Needs Confirmation · 64/100策略:需确认
Agent 入口
任意 MCP/CLI Agent
类型
Knowledge
安装
Single
信任
信任等级:Established
入口
DeepWiki Open
先审查命令
npx -y tokrepo@latest install 97fe4c78-7fc2-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run,确认写入项后再运行此命令。

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

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产