OpenDeepWiki is the open-source version of the DeepWiki project, aiming to provide a powerful knowledge management and collaboration platform. The project is mainly developed using C# and TypeScript, supporting modular design, and is easy to expand and customize.
See the codeOpenDeepWiki turns Git repositories, ZIP archives, and local directories into searchable knowledge bases. It generates structured repository docs, serves them through a public Next.js site, and reuses the same indexed content for chat, embed, and MCP workflows.
Enterprise support and pricing: docs.opendeep.wiki/pricing
/{owner}/{repo}, /{owner}/{repo}/mindmap, and /{owner}/{repo}/graphify.| Layer | Current implementation |
|---|---|
| Backend | ASP.NET Core on .NET 10, MiniApis, background workers |
| AI orchestration | Microsoft.Agents.AI, prompt assets under src/OpenDeepWiki/prompts, provider/model binding from settings |
| Frontend | Next.js 16, React 19, App Router |
| Database | SQLite or PostgreSQL |
| Repo processing | LibGit2Sharp, ZIP/local-directory ingestion, incremental update pipeline |
| Visualization | Mermaid mind maps plus optional graphifyy artifacts |
| Deployment | Docker Compose, Makefile, optional Sealos deployment |
git clone https://github.com/AIDotNet/OpenDeepWiki.git
cd OpenDeepWiki
compose.yamlAt minimum, set a real JWT secret and your AI credentials:
services:
opendeepwiki:
environment:
- JWT_SECRET_KEY=replace-this-in-production
- CHAT_API_KEY=your-chat-api-key
- ENDPOINT=https://api.openai.com/v1
- CHAT_REQUEST_TYPE=OpenAI
- WIKI_CATALOG_MODEL=gpt-4o
- WIKI_CATALOG_ENDPOINT=https://api.openai.com/v1
- WIKI_CATALOG_API_KEY=your-catalog-api-key
- WIKI_CATALOG_REQUEST_TYPE=OpenAI
- WIKI_CONTENT_MODEL=gpt-4o
- WIKI_CONTENT_ENDPOINT=https://api.openai.com/v1
- WIKI_CONTENT_API_KEY=your-content-api-key
- WIKI_CONTENT_REQUEST_TYPE=OpenAI
- WIKI_LANGUAGES=en,zh,zh-tw,ja,ko,es,fr,de,pt-br,pl,ru,ar
- WIKI_PARALLEL_COUNT=5
Notes:
CHAT_*, WIKI_CATALOG_*, and WIKI_CONTENT_* can point to the same provider.WIKI_TRANSLATION_* is not set, translation falls back to the content-generation provider/model.compose.yaml uses Database__Type=sqlite and ConnectionStrings__Default=Data Source=/data/opendeepwiki.db by default.docker compose up -d --build
Or use the Makefile shortcuts:
make build
make up
On a fresh database, the seeded admin account is:
admin@routin.aiAdmin@123Change the default JWT secret and admin password before any real deployment.
The current runtime code supports sqlite and postgresql.
To boot the bundled PostgreSQL stack:
docker compose -f compose.pgsql.yaml up -d --build
If you prefer your own database, configure either of these equivalent pairs:
- Database__Type=postgresql
- ConnectionStrings__Default=Host=your-host;Port=5432;Database=opendeepwiki;Username=postgres;Password=secret
or
- DB_TYPE=postgresql
- CONNECTION_STRING=Host=your-host;Port=5432;Database=opendeepwiki;Username=postgres;Password=secret
dotnet restore OpenDeepWiki.sln
dotnet build OpenDeepWiki.sln
dotnet run --project src/OpenDeepWiki/OpenDeepWiki.csproj
Useful local endpoints:
http launch profile, or the URL printed by ASP.NET CoreDevelopmentSet the backend proxy first. The web app reads API_PROXY_URL from the environment, web/.env.local, or web/.env.
cd web
npm install
echo API_PROXY_URL=http://localhost:5265 > .env.local
npm run dev
cd docs
npm install
npm run dev
dotnet test tests/OpenDeepWiki.Tests/OpenDeepWiki.Tests.csproj
cd web && npm test
cd web && npm run lint
Common Makefile shortcuts:
make dev
make down
make logs
make test
make build-arm
make build-amd
graph LR
A["Git / ZIP / Local directory"] --> B["Prepare workspace"]
B --> C["Analyze tree and existing repo context"]
C --> D["Generate README, overview, and wiki catalog"]
D --> E["Generate document content"]
E --> F["Translation / mind map / Graphify / incremental workers"]
F --> G["Public docs, chat, embed, and MCP"]
In practice, the main runtime path looks like this:
REPOSITORIES_DIRECTORY.OpenDeepWiki registers official MCP endpoints at:
/api/mcp/api/mcp/{owner}/{repo}You can scope the repository either by path or query string. Example:
{
"mcpServers": {
"OpenDeepWiki": {
"url": "http://localhost:8080/api/mcp/AIDotNet/OpenDeepWiki"
}
}
}
Query-based alternative:
http://localhost:8080/api/mcp?owner=AIDotNet&name=OpenDeepWiki
Optional:
MCP_ENABLED=false to disable MCP endpoints.GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET if you want protected-resource MCP OAuth support.The backend Docker image already installs graphifyy. To enable Graphify artifact generation, configure one of the optional provider groups already present in compose.yaml, such as:
GRAPHIFY_BACKENDGRAPHIFY_MODELGRAPHIFY_OPENAI_BASE_URLGRAPHIFY_OPENAI_API_KEYOPENAI_BASE_URL / OPENAI_API_KEYOLLAMA_BASE_URL / OLLAMA_MODELsrc/OpenDeepWiki/: ASP.NET Core entry point, endpoints, workers, AI/repository/chat/MCP servicessrc/OpenDeepWiki.Entities/: domain entitiessrc/OpenDeepWiki.EFCore/: shared EF Core model and context contractsrc/EFCore/OpenDeepWiki.Sqlite/: SQLite providersrc/EFCore/OpenDeepWiki.Postgresql/: PostgreSQL providerweb/: public docs site and admin UI built with Next.jsdocs/: separate documentation apptests/OpenDeepWiki.Tests/: xUnit and FsCheck testsscripts/: deployment and helper scriptssrc/OpenDeepWiki/Dockerfileweb/Dockerfile
This project is licensed under the MIT License. See LICENSE for details.
(top 24 of 29)
6,374 followers · starred Jul 2025
1,002 followers · starred Oct 2025
4,848 followers · starred Dec 2025
164 followers · starred Jun 2025
OpenDeepWiki is the open-source version of the DeepWiki project, aiming to provide a powerful knowledge management and collaboration platform. The project is mainly developed using C# and TypeScript, supporting modular design, and is easy to expand and customize.
See the codeOpenDeepWiki turns Git repositories, ZIP archives, and local directories into searchable knowledge bases. It generates structured repository docs, serves them through a public Next.js site, and reuses the same indexed content for chat, embed, and MCP workflows.
Enterprise support and pricing: docs.opendeep.wiki/pricing
/{owner}/{repo}, /{owner}/{repo}/mindmap, and /{owner}/{repo}/graphify.| Layer | Current implementation |
|---|---|
| Backend | ASP.NET Core on .NET 10, MiniApis, background workers |
| AI orchestration | Microsoft.Agents.AI, prompt assets under src/OpenDeepWiki/prompts, provider/model binding from settings |
| Frontend | Next.js 16, React 19, App Router |
| Database | SQLite or PostgreSQL |
| Repo processing | LibGit2Sharp, ZIP/local-directory ingestion, incremental update pipeline |
| Visualization | Mermaid mind maps plus optional graphifyy artifacts |
| Deployment | Docker Compose, Makefile, optional Sealos deployment |
git clone https://github.com/AIDotNet/OpenDeepWiki.git
cd OpenDeepWiki
compose.yamlAt minimum, set a real JWT secret and your AI credentials:
services:
opendeepwiki:
environment:
- JWT_SECRET_KEY=replace-this-in-production
- CHAT_API_KEY=your-chat-api-key
- ENDPOINT=https://api.openai.com/v1
- CHAT_REQUEST_TYPE=OpenAI
- WIKI_CATALOG_MODEL=gpt-4o
- WIKI_CATALOG_ENDPOINT=https://api.openai.com/v1
- WIKI_CATALOG_API_KEY=your-catalog-api-key
- WIKI_CATALOG_REQUEST_TYPE=OpenAI
- WIKI_CONTENT_MODEL=gpt-4o
- WIKI_CONTENT_ENDPOINT=https://api.openai.com/v1
- WIKI_CONTENT_API_KEY=your-content-api-key
- WIKI_CONTENT_REQUEST_TYPE=OpenAI
- WIKI_LANGUAGES=en,zh,zh-tw,ja,ko,es,fr,de,pt-br,pl,ru,ar
- WIKI_PARALLEL_COUNT=5
Notes:
CHAT_*, WIKI_CATALOG_*, and WIKI_CONTENT_* can point to the same provider.WIKI_TRANSLATION_* is not set, translation falls back to the content-generation provider/model.compose.yaml uses Database__Type=sqlite and ConnectionStrings__Default=Data Source=/data/opendeepwiki.db by default.docker compose up -d --build
Or use the Makefile shortcuts:
make build
make up
On a fresh database, the seeded admin account is:
admin@routin.aiAdmin@123Change the default JWT secret and admin password before any real deployment.
The current runtime code supports sqlite and postgresql.
To boot the bundled PostgreSQL stack:
docker compose -f compose.pgsql.yaml up -d --build
If you prefer your own database, configure either of these equivalent pairs:
- Database__Type=postgresql
- ConnectionStrings__Default=Host=your-host;Port=5432;Database=opendeepwiki;Username=postgres;Password=secret
or
- DB_TYPE=postgresql
- CONNECTION_STRING=Host=your-host;Port=5432;Database=opendeepwiki;Username=postgres;Password=secret
dotnet restore OpenDeepWiki.sln
dotnet build OpenDeepWiki.sln
dotnet run --project src/OpenDeepWiki/OpenDeepWiki.csproj
Useful local endpoints:
http launch profile, or the URL printed by ASP.NET CoreDevelopmentSet the backend proxy first. The web app reads API_PROXY_URL from the environment, web/.env.local, or web/.env.
cd web
npm install
echo API_PROXY_URL=http://localhost:5265 > .env.local
npm run dev
cd docs
npm install
npm run dev
dotnet test tests/OpenDeepWiki.Tests/OpenDeepWiki.Tests.csproj
cd web && npm test
cd web && npm run lint
Common Makefile shortcuts:
make dev
make down
make logs
make test
make build-arm
make build-amd
graph LR
A["Git / ZIP / Local directory"] --> B["Prepare workspace"]
B --> C["Analyze tree and existing repo context"]
C --> D["Generate README, overview, and wiki catalog"]
D --> E["Generate document content"]
E --> F["Translation / mind map / Graphify / incremental workers"]
F --> G["Public docs, chat, embed, and MCP"]
In practice, the main runtime path looks like this:
REPOSITORIES_DIRECTORY.OpenDeepWiki registers official MCP endpoints at:
/api/mcp/api/mcp/{owner}/{repo}You can scope the repository either by path or query string. Example:
{
"mcpServers": {
"OpenDeepWiki": {
"url": "http://localhost:8080/api/mcp/AIDotNet/OpenDeepWiki"
}
}
}
Query-based alternative:
http://localhost:8080/api/mcp?owner=AIDotNet&name=OpenDeepWiki
Optional:
MCP_ENABLED=false to disable MCP endpoints.GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET if you want protected-resource MCP OAuth support.The backend Docker image already installs graphifyy. To enable Graphify artifact generation, configure one of the optional provider groups already present in compose.yaml, such as:
GRAPHIFY_BACKENDGRAPHIFY_MODELGRAPHIFY_OPENAI_BASE_URLGRAPHIFY_OPENAI_API_KEYOPENAI_BASE_URL / OPENAI_API_KEYOLLAMA_BASE_URL / OLLAMA_MODELsrc/OpenDeepWiki/: ASP.NET Core entry point, endpoints, workers, AI/repository/chat/MCP servicessrc/OpenDeepWiki.Entities/: domain entitiessrc/OpenDeepWiki.EFCore/: shared EF Core model and context contractsrc/EFCore/OpenDeepWiki.Sqlite/: SQLite providersrc/EFCore/OpenDeepWiki.Postgresql/: PostgreSQL providerweb/: public docs site and admin UI built with Next.jsdocs/: separate documentation apptests/OpenDeepWiki.Tests/: xUnit and FsCheck testsscripts/: deployment and helper scriptssrc/OpenDeepWiki/Dockerfileweb/Dockerfile
This project is licensed under the MIT License. See LICENSE for details.
(top 24 of 29)
6,374 followers · starred Jul 2025
1,002 followers · starred Oct 2025
4,848 followers · starred Dec 2025
164 followers · starred Jun 2025