This guide walks you through the manual setup for DeepWiki Open: a Python FastAPI backend that handles AI processing and a Next.js frontend that serves the wiki interface. By the end you will have both services running locally and be ready to generate your first repository wiki.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AsyncFuncAI/deepwiki-open/llms.txt
Use this file to discover all available pages before exploring further.
Set up API keys
DeepWiki needs at least one AI provider key to generate wikis. Create a
.env file in the project root with your credentials:.env
Where to get API keys:
- Google API key — Google AI Studio
- OpenAI API key — OpenAI Platform
- OpenRouter API key — OpenRouter
- Azure OpenAI credentials — Azure Portal — create an Azure OpenAI resource to get your key, endpoint, and API version
GOOGLE_API_KEY or OPENAI_API_KEY. The default embedder type is openai, so OPENAI_API_KEY is required unless you set DEEPWIKI_EMBEDDER_TYPE=google.Start the backend
Install Python dependencies using Poetry, then start the API server on port 8001:The backend requires Python 3.11 or later. Leave this terminal running — the API server must stay active while you use the frontend.
Start the frontend
In a new terminal, install JavaScript dependencies and start the Next.js development server:The frontend runs on port 3000. Leave this terminal running alongside the backend.
Generate your first wiki
Open http://localhost:3000 in your browser. To generate a wiki:
- Enter a GitHub, GitLab, or Bitbucket repository URL — for example,
https://github.com/openai/codexorhttps://gitlab.com/gitlab-org/gitlab. - For private repositories, click + Add access tokens and enter your personal access token.
- Click Generate Wiki and wait for DeepWiki to analyze the repository, create embeddings, and build the wiki.
Next steps
Configure AI models
Switch between Google Gemini, OpenAI, OpenRouter, Azure, and Ollama models.
Generate your first wiki
Learn how DeepWiki analyzes repositories and structures documentation.
Chat with your repo
Use the Ask feature to ask questions about any repository using RAG.
Run with Docker instead
Skip the manual setup and run the full stack with a single Docker command.