Self-hosted service
AsyncFuncAI/deepwiki-open avatar
AsyncFuncAI/deepwiki-open

DeepWiki-Open: Self-Hosted AI Wiki Generator for GitHub, GitLab, and Bitbucket Repositories

Open Source DeepWiki: AI-Powered Wiki Generator for GitHub/Gitlab/Bitbucket Repositories. Join the discord:.

18,107 stars2,011 forksTypeScriptMIT

At a glance

What is it?
DeepWiki-Open is a free, MIT-licensed application that automatically generates interactive documentation wikis for any GitHub, GitLab, or Bitbucket repository. It combines a Python 3.11 API backend with a Next.js frontend, stores embeddings locally in ~/.adalflow, and runs entirely in Docker on your own hardware.
Who is it for?
Developers who regularly need to understand unfamiliar codebases and want the wiki to run on their own machine will find DeepWiki-Open directly deployable with Docker. The limitation to confirm upfront is the 6 GB RAM requirement in the Docker Compose configuration; systems below that threshold will hit the mem_limit.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 26 days ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on September 30, 2026, and from our analysis. They are not legal advice.

Editorial analysis

What DeepWiki-Open Does and Who It Is For

When an engineer joins a new project or reviews an unfamiliar library, they typically spend hours reading scattered README files, tracing import chains, and piecing together mental models of how components interact. DeepWiki-Open automates that process by accepting a repository URL and generating a structured wiki with documentation, code diagrams, and navigation links.

The application supports GitHub, GitLab, and Bitbucket repositories. The README describes five outputs: code structure analysis, comprehensive documentation, visual diagrams explaining component relationships, an organized navigable wiki, and a codemap for code-centric guided tours.

The primary audience is software engineers who want to quickly understand a large or complex codebase, teams onboarding new members to an existing project, and developers who need offline or private-repository wiki generation without sending code to a third-party hosted service. The 2.0 release, branded as Grok Wiki and available at grok-wiki.com, is the hosted version of the same application.

The project describes itself as 'my own implementation attempt of DeepWiki,' which positions it explicitly as a self-hosted alternative to the official DeepWiki hosted service. Ten language variants of the README exist in the repository (English, Simplified Chinese, Traditional Chinese, Japanese, Spanish, Korean, Vietnamese, Portuguese, French, Russian), indicating a broad international contributor and user base.

How DeepWiki-Open Analyzes a Repository

The architecture splits into two processes running alongside each other. The Python 3.11 backend handles repository ingestion, code analysis, and AI-driven documentation generation. The Next.js frontend (built with Next.js 15, React 19, and Mermaid.js) renders the wiki and diagrams.

When you provide a repository URL, the backend fetches the repository's contents, generates embeddings from the code and text, and stores those embeddings in ~/.adalflow on the host machine. This path is mounted into the container as a volume:

yaml
volumes:
  - ~/.adalflow:/root/.adalflow

Persistent storage means subsequent visits to the same repository do not require re-embedding. The backend starts at port 8001 and the Next.js frontend at port 3000. The Mermaid.js dependency (version 11.4.1 in package.json) handles rendering the visual architecture diagrams.

The Dockerfile uses a multi-stage build combining Python 3.11 (for the backend) and Node.js 20 (for the frontend) in a single final image. The backend uses Poetry for Python dependency management. The build process copies and compiles the Next.js frontend with telemetry disabled and a 4 GB Node.js memory limit (`NODE_OPTIONS=--max-old-space-size=4096`).

The backend health check endpoint at `http://localhost:8001/health` runs every 60 seconds, which means the container marks itself healthy only after the embedding and backend setup completes.

Running DeepWiki-Open Locally via Docker Compose

The Docker Compose file defines a single service with two exposed ports and a volume for embedding persistence:

yaml
services:
  deepwiki:
    ports:
      - "${PORT:-8001}:${PORT:-8001}"
      - "3000:3000"
    volumes:
      - ~/.adalflow:/root/.adalflow
    mem_limit: 6g
    mem_reservation: 2g

The mem_limit of 6g sets a hard memory ceiling on the container. The mem_reservation of 2g is the soft minimum. Any deployment host with less than 6 GB of available RAM will hit the memory limit during embedding generation.

After cloning the repository and configuring a .env file (a .env example is not shown in the README, but the docker-compose.yml references an env_file directive), start the stack with docker compose up. The API becomes available at `http://localhost:8001` and the frontend at `http://localhost:3000`. A health check polls the API every 60 seconds and gives the process up to 30 seconds to start before the first check.

Three Dockerfile variants exist for different configurations: the main Dockerfile for standard deployments, Dockerfile-litellm for using LiteLLM as a model proxy, and Dockerfile-ollama-local for running inference with locally hosted Ollama models. The corresponding docker-compose-litellm.yml and litellm-config.yml files configure the LiteLLM variant.

Grok Wiki 2.0, MCP Support, and Local Model Options

The README announces a Grok Wiki 2.0 release available as a download at grok-wiki.com. This appears to be the hosted or packaged version of DeepWiki-Open with a different branding. The relationship between the open-source repository and the grok-wiki.com hosted service is not documented beyond the download link in the README.

The RELATED SEARCHES list includes 'deepwiki open mcp' and 'DeepWiki MCP,' indicating users are looking for MCP (Model Context Protocol) integration. The repository includes no MCP-specific configuration files in the visible file listing, though the project's claude.ai URL is referenced in the community links, which may indicate Claude Code integration via MCP is either planned or in progress.

For teams wanting to run without external API calls, the Dockerfile-ollama-local and the Ollama-instruction.md file in the repository root document a path for using locally hosted models via Ollama. This variant requires Ollama installed and a model pulled locally before the container can generate documentation without sending data to an external AI service.

The project includes end-to-end tests (tests/ directory), a pytest configuration, and pre-commit hooks (.pre-commit-config.yaml), suggesting a structured development workflow despite having no tagged releases.

DeepWiki-Open Against the Official DeepWiki Service

The official DeepWiki service at deepwiki.com generates documentation for public repositories as a hosted product, without requiring any local installation. DeepWiki-Open differs in three concrete ways.

First, DeepWiki-Open runs on your infrastructure. Embeddings and processed data stay in ~/.adalflow on your host, not on a third-party server. For teams working with private repositories or codebases that cannot leave the organization's network, this distinction matters directly.

Second, DeepWiki-Open supports local LLMs via the Ollama variant, removing the dependency on any external AI API. The official hosted service runs on whatever model infrastructure its operators have chosen and does not give users control over that.

Third, DeepWiki-Open is a self-hosted project with no guaranteed uptime or SLA. The official hosted service is a product with an operator responsible for availability. Teams that need reliable, always-available wiki generation without infrastructure overhead will find the hosted service simpler. Teams that need private-repository support, local model inference, or full control over the embedding and generation pipeline have a concrete reason to run DeepWiki-Open instead.

The main practical limitation of the self-hosted path is the 6 GB RAM requirement and the combined Python/Node.js container, which adds deployment complexity compared to a hosted solution.

Maintenance Status, Documentation Gaps, and MIT License

The last push to the repository was on 2026-09-03. The repository has no tagged releases; all versions flow through the main branch. The README is short: the visible portion covers the five features, a contributing invitation, and a license notice. It does not document configuration variables, environment setup, or how to choose between the three Dockerfile variants. Developers deploying DeepWiki-Open will need to read the docker-compose files and the litellm-config.yml directly to understand configuration options.

The Ollama-instruction.md file is a separate document in the repository root for the local-model variant, which suggests that specific path has enough complexity to warrant its own guide. No equivalent guide is visible for the standard deployment, though the docker-compose.yml is self-documenting enough to get a basic deployment running.

The MIT license permits modification, redistribution, and commercial use without restriction. Teams can fork the project, add authentication, connect to internal Git servers, or build proprietary tooling on top of the embedding pipeline. The .pre-commit-config.yaml, CONTRIBUTING.md, and GitHub Actions workflows (.github/) indicate the project has contributor tooling in place for pull request contributions.

Editorial conclusion

Developers who regularly need to understand unfamiliar codebases and want the wiki to run on their own machine will find DeepWiki-Open directly deployable with Docker. The limitation to confirm upfront is the 6 GB RAM requirement in the Docker Compose configuration; systems below that threshold will hit the mem_limit. Teams with private repositories that cannot be sent to a hosted service will find the self-hosted path's local embedding storage (persisted to ~/.adalflow) the main practical advantage over using deepwiki.com directly.

Frequently asked questions

Can I run DeepWiki locally?

Yes. DeepWiki-Open is designed for local self-hosted deployment via Docker Compose. The API server runs on port 8001 and the Next.js frontend on port 3000. Embeddings are stored in ~/.adalflow on the host and persist across container restarts. The deployment requires at least 6 GB of available RAM.

Is DeepWiki free?

DeepWiki-Open is free and MIT-licensed; you can download, run, and modify it without paying. A hosted version branded as Grok Wiki is available at grok-wiki.com with its own pricing. The self-hosted Docker deployment carries no licensing cost, though it requires API keys for the AI model unless you use the Ollama local-model variant.

How does DeepWiki-Open work?

The application fetches a repository's code, generates embeddings from its files, stores those embeddings locally in ~/.adalflow, and uses a configured AI model to produce documentation, diagrams, and a structured wiki. A Python 3.11 backend handles ingestion and generation; a Next.js frontend renders the result, including Mermaid.js diagrams for visual architecture representation.

Is DeepWiki-Open open source?

Yes. The AsyncFuncAI/deepwiki-open repository is published under the MIT license, which permits modification, redistribution, and commercial use. The full source code including Dockerfiles, tests, and configuration files is available on GitHub.

Official sources

  1. Official documentation
  2. Official README
  3. Project repository
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/asyncfuncai-deepwiki-open.svg)](https://hysenlabs.com/projects/asyncfuncai-deepwiki-open)