{
  "guide": {
    "slug": "self-hosted-deepwiki-alternatives",
    "title": "Self-Hosted DeepWiki Alternatives Guide",
    "subtitle": "OSS and self-hostable ways to replace Devin's DeepWiki with generated repo docs, MCP, code search, Q&A, and agent context.",
    "summary": "The closest single OSS/self-hosted replacement for Devin DeepWiki is OpenDeepWiki. For AI coding agents, the best default stack is Sourcebot plus Serena; the strict OSS version is Kodit plus Serena plus Repomix, with OpenDeepWiki added when agents need durable architecture docs.",
    "category": {
      "slug": "software",
      "name": "Software",
      "description": "Fact sheets for developer tools, AI systems, software platforms, and technical buying or adoption decisions."
    },
    "tags": [
      "ai-tools",
      "deepwiki",
      "devin",
      "codebase-intelligence",
      "mcp",
      "self-hosted",
      "software-development",
      "coding-agents",
      "agent-context"
    ],
    "version": "2026-05-04.2",
    "publishedAt": "2026-05-04T13:28:24-04:00",
    "updatedAt": "2026-05-04T13:28:24-04:00",
    "freshness": "Primary sources and GitHub metrics checked on 2026-05-04. Repository metrics and product features can drift quickly.",
    "heroLabel": "Codebase intelligence",
    "vaultPath": "Research/Technology/Software Development/AI Tools/Self-Hosted DeepWiki Alternatives Guide.md",
    "r2JsonKey": "guides/self-hosted-deepwiki-alternatives/2026-05-04.2.json",
    "thesisCards": [
      {
        "label": "Answer",
        "title": "OpenDeepWiki is the closest OSS single-tool replacement.",
        "body": "It combines generated repository documentation, Mermaid diagrams, multi-code-host ingest, local/ZIP support, user management, database options, and a built-in MCP endpoint."
      },
      {
        "label": "Better stack",
        "title": "Use a layered stack when you want more than DeepWiki.",
        "body": "Pair OpenDeepWiki or Kodit for generated docs with Sourcebot for shared search/Q&A/MCP and Serena or Narsil for local agent-grade code intelligence."
      },
      {
        "label": "Agent audience",
        "title": "Coding agents need tools, not just pages.",
        "body": "For Claude, Codex, Pi, Cursor, or a custom MCP client, prioritize file reads, symbol lookup, references, grep, call graphs, and small cited context over a polished human wiki."
      },
      {
        "label": "Catch",
        "title": "The hard part is not generation; it is coverage, permissions, and retrieval quality.",
        "body": "Generated pages can look complete while skipping subsystems. Enterprise usefulness depends on ACLs, refreshes, source citations, and MCP tools that agents actually use."
      }
    ],
    "stats": [
      {
        "label": "Candidates checked",
        "value": "18",
        "detail": "Wiki generators, MCP engines, code search tools, RAG platforms, and execution agents."
      },
      {
        "label": "Top OSS single tool",
        "value": "OpenDeepWiki",
        "detail": "82/100 fit score in this source-based rubric."
      },
      {
        "label": "Strongest search/Q&A layer",
        "value": "Sourcebot",
        "detail": "Fair-source, not OSI OSS, but the best lightweight shared code-intelligence product."
      },
      {
        "label": "Strict OSS stack",
        "value": "OpenDeepWiki + Kodit + Serena",
        "detail": "Generated wiki, MCP/REST code search, and local symbolic agent tools."
      },
      {
        "label": "Best agent stack",
        "value": "Sourcebot + Serena",
        "detail": "Shared MCP search/Q&A plus local LSP-backed symbol retrieval and editing."
      }
    ],
    "sections": [
      {
        "id": "bottom-line",
        "eyebrow": "Bottom line",
        "title": "There is no perfect clone; there is a clear best stack.",
        "body": "The closest OSS/self-hosted replacement for Devin's DeepWiki is OpenDeepWiki. If the job is a private repo wiki with diagrams and MCP, start there. If the job is broader codebase intelligence, the stronger answer is a stack: OpenDeepWiki or Kodit for generated docs, Sourcebot for shared search/navigation/Q&A/MCP, and Serena or Narsil for local agent code intelligence."
      },
      {
        "id": "baseline",
        "eyebrow": "Baseline",
        "title": "What Devin DeepWiki is actually doing",
        "table": {
          "columns": [
            "Capability",
            "Devin / DeepWiki baseline",
            "Replacement implication"
          ],
          "rows": [
            [
              "Repository indexing",
              "Indexing enables Ask Devin and DeepWiki and is separate from Devin's dev-environment setup.",
              "A replacement needs a durable repo index, not just one prompt with repo text."
            ],
            [
              "Generated wiki",
              "DeepWiki produces architecture diagrams, docs, source links, and codebase summaries.",
              "A plain semantic-search MCP server is not enough."
            ],
            [
              "Q&A",
              "Ask Devin uses DeepWiki plus advanced code search for cited answers.",
              "The search/Q&A layer and generated docs layer can be separate tools."
            ],
            [
              "Public repo MCP",
              "Public DeepWiki MCP exposes read_wiki_structure, read_wiki_contents, and ask_question for public repos.",
              "A self-hosted private-repo replacement should expose MCP, not only a web UI."
            ],
            [
              "Steering",
              ".devin/wiki.json can steer docs with notes and explicit page plans.",
              "The best replacements need explicit page planning or repeatable prompt/config control."
            ],
            [
              "Limits",
              "Standard DeepWiki steering supports 30 explicit pages; enterprise supports 80.",
              "Large repos need intentional page selection and coverage validation."
            ]
          ]
        }
      },
      {
        "id": "shortlist",
        "eyebrow": "Shortlist",
        "title": "Best candidates by fit score",
        "table": {
          "columns": [
            "Rank",
            "Tool",
            "Fit score",
            "Use it for",
            "Why it ranks here",
            "Main catch"
          ],
          "rows": [
            [
              "1",
              "OpenDeepWiki",
              "82 / 100",
              "Self-hosted DeepWiki-like generated wiki plus MCP",
              "Best single-package clone shape: generated docs, diagrams, multi-code-host ingest, local/ZIP support, database options, user management, and MCP.",
              "Smaller ecosystem than deepwiki-open; .NET/Semantic Kernel stack; quality still depends on LLM prompts/models."
            ],
            [
              "2",
              "Sourcebot",
              "80 / 100",
              "Shared code search, Ask-style Q&A, code navigation, MCP context",
              "Best lightweight product for ask/search every repo with citations and agent MCP access.",
              "Fair-source, not OSI OSS; no durable generated wiki; permission syncing and OAuth MCP are Enterprise-gated."
            ],
            [
              "3",
              "Kodit",
              "78 / 100",
              "OSS MCP/REST code and document intelligence server",
              "Apache-2.0, no-key startup, built-in embeddings, SQLite default, BM25 + semantic + grep + visual document search, wiki/enrichment MCP tools.",
              "Young project with lower adoption; generated docs require LLM enrichment configuration."
            ],
            [
              "4",
              "SourceBridge",
              "76 / 100",
              "Ambitious field-guide/context layer pilot",
              "Conceptually closest to better-than-DeepWiki: field guides, code tours, diagrams, requirements traceability, MCP, GraphQL, CLI, VS Code.",
              "Very young by public repo signals; treat as a pilot, not the default platform."
            ],
            [
              "5",
              "deepwiki-open",
              "70 / 100",
              "Popular OSS DeepWiki-style web app",
              "Strong adoption, private repo token support, diagrams, RAG Ask, DeepResearch, local Ollama support.",
              "No obvious MCP in the README; less useful as an agent context service unless wrapped."
            ],
            [
              "6",
              "CodeWiki",
              "68 / 100",
              "Static repo documentation generation",
              "Research-backed structured docs with Mermaid architecture/data-flow/dependency/sequence diagrams and GitHub Pages output.",
              "More CLI/static-docs than always-on shared code intelligence."
            ],
            [
              "7",
              "Serena",
              "64 / 100",
              "Local MCP navigation and editing",
              "Excellent agent-side symbol retrieval/editing through LSP across 40+ languages.",
              "Not a wiki generator or shared web knowledge base."
            ],
            [
              "8",
              "Narsil MCP",
              "62 / 100",
              "Local MCP code intelligence and security context",
              "90 tools, 32 languages, call graphs, taint analysis, SBOM, license checks, optional neural search.",
              "Young; high tool count needs careful client/tool budgeting; not reader-facing wiki output."
            ]
          ]
        }
      },
      {
        "id": "matrix",
        "eyebrow": "Matrix",
        "title": "Feature comparison",
        "table": {
          "columns": [
            "Tool",
            "License posture",
            "Self-host",
            "Generated wiki/docs",
            "Diagrams",
            "MCP",
            "Search/Q&A",
            "Code nav/graph",
            "Private repo story"
          ],
          "rows": [
            [
              "OpenDeepWiki",
              "MIT",
              "Yes",
              "Strong",
              "Mermaid",
              "Built in",
              "Chat/Q&A",
              "Basic graph/code analysis",
              "Git hosts, ZIP/local upload"
            ],
            [
              "deepwiki-open",
              "MIT",
              "Yes",
              "Strong",
              "Mermaid",
              "Not obvious",
              "RAG Ask, DeepResearch",
              "Light",
              "GitHub/GitLab token support"
            ],
            [
              "CodeWiki",
              "MIT in README",
              "Local/self-host",
              "Strong static docs",
              "Mermaid plus visual artifacts",
              "Docs linked",
              "Not primary",
              "Architecture-aware docs",
              "Local repo"
            ],
            [
              "SourceBridge",
              "AGPL-3.0",
              "Yes",
              "Strong",
              "Mermaid",
              "Built in",
              "Code discussion",
              "Tree-sitter graph/impact",
              "Any local/server repo"
            ],
            [
              "Sourcebot",
              "Fair-source / FSL",
              "Yes",
              "No",
              "No",
              "Built in",
              "Strong Ask with citations",
              "Strong search/nav",
              "Enterprise permission sync"
            ],
            [
              "Kodit",
              "Apache-2.0",
              "Yes",
              "Optional enrichment",
              "Optional enrichment",
              "Built in",
              "Strong search, enrichment tools",
              "Search/snippet layer",
              "Any Git URL with PAT/SSH"
            ],
            [
              "Sourcegraph Enterprise",
              "Commercial self-host",
              "Yes, Enterprise",
              "No",
              "No",
              "Built in",
              "Strong Deep Search/Cody",
              "Strongest mature nav/permissions",
              "Enterprise permission sync"
            ],
            [
              "Onyx CE/EE",
              "MIT CE, EE add-ons",
              "Yes",
              "Not code-wiki-specific",
              "No",
              "Built in",
              "Strong workplace RAG",
              "No real code navigation",
              "GitHub connector focuses PRs/issues; permission sync EE/Cloud"
            ],
            [
              "Serena",
              "MIT",
              "Local",
              "No",
              "No",
              "Built in",
              "Retrieval/memory",
              "Strong LSP symbolic editing",
              "Local checkout"
            ],
            [
              "Narsil MCP",
              "Apache-2.0",
              "Local",
              "No",
              "Graph/security reports",
              "Built in",
              "Hybrid/neural search",
              "Call graphs/security/SBOM",
              "Local repos, optional remote"
            ]
          ]
        }
      },
      {
        "id": "recommended-architectures",
        "eyebrow": "Architectures",
        "title": "Recommended stacks",
        "table": {
          "columns": [
            "Need",
            "Recommended stack",
            "Why"
          ],
          "rows": [
            [
              "One OSS/self-hosted DeepWiki clone",
              "OpenDeepWiki",
              "Best single-tool balance of wiki generation, diagrams, repository ingest, and MCP."
            ],
            [
              "Best internal private codebase intelligence",
              "Sourcebot + OpenDeepWiki",
              "Sourcebot handles search/navigation/Q&A/MCP; OpenDeepWiki handles durable generated wiki pages."
            ],
            [
              "Strict OSI OSS and agent MCP",
              "Kodit + OpenDeepWiki + Serena",
              "Avoids fair-source/commercial layers while covering wiki, MCP search, and local symbolic work."
            ],
            [
              "Best experimental better-than-DeepWiki pilot",
              "SourceBridge",
              "Most ambitious field-guide/code-tour/requirements-traceability product shape, but high maturity risk."
            ],
            [
              "Enterprise scale with budget",
              "Sourcegraph Enterprise",
              "Best mature code navigation, permissions, search, and MCP controls; not OSS."
            ],
            [
              "Broader engineering knowledge base",
              "Onyx + Sourcebot or Kodit",
              "Onyx is strong for docs/tickets/Slack/Drive RAG, but should not be the sole source-code intelligence layer."
            ],
            [
              "Per-developer local agent improvement",
              "Serena + Narsil + Repomix",
              "Gives coding agents symbol operations, search/security context, and portable repo packing."
            ],
            [
              "AI agent planning or writing code",
              "Sourcebot + Serena; Kodit + Serena + Repomix if strict OSS",
              "Agents need precise file/symbol retrieval and editable local context first; generated wiki pages are useful background, not the primary tool surface."
            ]
          ]
        }
      },
      {
        "id": "agent-audience",
        "eyebrow": "Agent audience",
        "title": "Best choices when the reader is Claude, Codex, Pi, or another coding agent",
        "body": "If the consumer is an AI agent planning or writing code, the ranking changes. Human-readable architecture pages help orientation, but an agent usually needs narrow, current, source-linked retrieval: file reads, grep, symbol definitions, references, call graphs, dependency context, and compact Markdown or MCP tool output it can cite in a plan.",
        "table": {
          "columns": [
            "Agent job",
            "Best pick",
            "Why it helps an agent",
            "Do not use as the only layer"
          ],
          "rows": [
            [
              "Claude/Codex/Cursor-style local coding loop",
              "Serena",
              "LSP-backed symbol retrieval, references, memories, and editing tools map directly to how an agent plans and changes code in a checkout.",
              "Generated wiki pages; they are too coarse for safe edits."
            ],
            [
              "Shared multi-repo agent questions",
              "Sourcebot",
              "MCP tools for grep, file reads, tree/glob, commits, symbol definitions/references, model listing, and ask_codebase give agents live cited context across repositories.",
              "A static wiki; it will drift and may miss the exact file path."
            ],
            [
              "Strict OSS shared agent context",
              "Kodit + Serena + Repomix",
              "Kodit supplies permissive MCP/REST search and enrichment, Serena supplies local symbolic operations, and Repomix gives portable snapshots when the agent cannot call the live index.",
              "Sourcebot if OSI licensing is mandatory."
            ],
            [
              "Planning before a larger change",
              "Sourcebot or Kodit + OpenDeepWiki",
              "Use search/Q&A for current files and citations, then use generated wiki/docs for architecture hypotheses and subsystem maps.",
              "OpenDeepWiki alone; planning needs exact file evidence."
            ],
            [
              "Security, dependency, or impact analysis",
              "Narsil MCP, then Serena",
              "Narsil adds call graphs, taint analysis, SBOM, license, and dependency context; Serena can then inspect and edit the relevant symbols.",
              "Plain semantic search; it misses graph and supply-chain structure."
            ],
            [
              "Agent-readable onboarding for a new repo",
              "OpenDeepWiki or CodeWiki + Sourcebot/Kodit",
              "Generated docs are useful as a first-pass map, but the agent still needs live search and file access to verify every plan.",
              "deepwiki-open unless wrapped with MCP or another file/symbol tool."
            ]
          ]
        }
      },
      {
        "id": "layers",
        "eyebrow": "Layers",
        "title": "What each layer does",
        "table": {
          "columns": [
            "Layer",
            "Best tools",
            "What it contributes",
            "What it does not solve"
          ],
          "rows": [
            [
              "Generated wiki",
              "OpenDeepWiki, deepwiki-open, CodeWiki, SourceBridge",
              "Human-readable pages, diagrams, architecture overviews, onboarding docs.",
              "Precise code navigation and live agent context by itself."
            ],
            [
              "Shared code search/Q&A",
              "Sourcebot, Sourcegraph, Kodit",
              "Multi-repo search, citations, file reads, branch/ref awareness, MCP/API access.",
              "Durable wiki pages unless enrichment is configured."
            ],
            [
              "Agent-side code intelligence",
              "Serena, Narsil, CodeGraphContext, Blarify",
              "Symbol definitions/references, call graphs, impact analysis, local editing, security context.",
              "Shared reader-facing product surface."
            ],
            [
              "General knowledge RAG",
              "Onyx",
              "GitHub PRs/issues plus docs, tickets, Slack, Drive, Confluence-style knowledge and MCP.",
              "Real source-code navigation or generated repo wiki."
            ],
            [
              "Execution agent",
              "OpenHands",
              "Devin-like task execution foundation and self-hosted agent runtime.",
              "Standing codebase wiki/search layer."
            ]
          ]
        }
      },
      {
        "id": "github-health",
        "eyebrow": "Repo health",
        "title": "GitHub signals as of May 4, 2026",
        "table": {
          "columns": [
            "Tool",
            "Repo",
            "Stars",
            "Forks",
            "Latest observed push",
            "Public signal"
          ],
          "rows": [
            [
              "deepwiki-open",
              "AsyncFuncAI/deepwiki-open",
              "16,082",
              "1,796",
              "2026-04-21",
              "Very high adoption for wiki clone, but MCP gap."
            ],
            [
              "OpenDeepWiki",
              "AIDotNet/OpenDeepWiki",
              "3,147",
              "412",
              "2026-04-11",
              "Smaller but more complete single-tool feature shape."
            ],
            [
              "CodeWiki",
              "FSoft-AI4Code/CodeWiki",
              "928",
              "148",
              "2026-04-04",
              "Research-backed and focused on docs generation."
            ],
            [
              "SourceBridge",
              "sourcebridge-ai/sourcebridge",
              "10",
              "1",
              "2026-05-04",
              "Very young despite strong concept fit."
            ],
            [
              "Sourcebot",
              "sourcebot-dev/sourcebot",
              "3,319",
              "264",
              "2026-05-02",
              "Productized and current, but fair-source."
            ],
            [
              "Kodit",
              "helixml/kodit",
              "118",
              "15",
              "2026-05-01",
              "Early but technically well-shaped."
            ],
            [
              "Serena",
              "oraios/serena",
              "23,809",
              "1,596",
              "2026-05-04",
              "Strong local MCP adoption signal."
            ],
            [
              "Narsil MCP",
              "postrv/narsil-mcp",
              "144",
              "19",
              "2026-02-25",
              "Powerful but still early."
            ],
            [
              "CodeGraphContext",
              "CodeGraphContext/CodeGraphContext",
              "3,142",
              "563",
              "2026-05-03",
              "Popular graph-first MCP option, still young."
            ],
            [
              "Repomix",
              "yamadashy/repomix",
              "24,322",
              "1,205",
              "2026-05-04",
              "Excellent packing/snapshot utility, not a wiki."
            ],
            [
              "OpenHands",
              "OpenHands/OpenHands",
              "72,603",
              "9,180",
              "2026-05-04",
              "Best OSS execution-agent signal, not a standing code index."
            ]
          ]
        }
      },
      {
        "id": "best-picks",
        "eyebrow": "Picks",
        "title": "Best picks by job",
        "table": {
          "columns": [
            "Job",
            "Pick",
            "Reason"
          ],
          "rows": [
            [
              "Replace DeepWiki pages for private repos",
              "OpenDeepWiki",
              "Built-in wiki generation, diagrams, MCP, and self-hosting."
            ],
            [
              "Ask questions across all company repos",
              "Sourcebot",
              "Best lightweight self-hosted Ask/search/navigation product with MCP."
            ],
            [
              "Stay strictly OSS and avoid fair-source",
              "OpenDeepWiki + Kodit",
              "Covers generated docs plus MCP/REST code search with permissive licenses."
            ],
            [
              "Give Claude/Codex/Cursor better local repo tools",
              "Serena",
              "LSP-backed symbol retrieval and editing is more precise than wiki text."
            ],
            [
              "Give Claude, Codex, Pi, or a custom MCP client shared repo context",
              "Sourcebot + Serena",
              "Sourcebot handles shared search/Q&A/file/symbol context; Serena handles local symbol-aware edits."
            ],
            [
              "Keep the agent stack strictly OSS",
              "Kodit + Serena + Repomix",
              "Permissive search/enrichment, local LSP operations, and portable context packing without a fair-source shared search layer."
            ],
            [
              "Add security and supply-chain intelligence to agent context",
              "Narsil MCP",
              "Taint analysis, SBOM, license, dependency, and call-graph tools."
            ],
            [
              "Generate static architecture docs for a repo",
              "CodeWiki",
              "Strong static-doc and visual artifact generator."
            ],
            [
              "Build an internal codebase field guide product",
              "SourceBridge pilot",
              "Most aligned product vocabulary and feature ambition; maturity risk is the reason to pilot."
            ],
            [
              "Enterprise search with serious ACLs",
              "Sourcegraph Enterprise",
              "Mature permissions and code-intelligence controls, but commercial."
            ],
            [
              "Broader company knowledge, not just code",
              "Onyx",
              "Good RAG/MCP layer for docs and work systems; pair it with a code tool."
            ]
          ]
        }
      },
      {
        "id": "caveats",
        "eyebrow": "Caveats",
        "title": "Where these tools can mislead you",
        "bullets": [
          "Self-hosted does not mean no external model calls. Many tools need OpenAI, Anthropic, Gemini, Voyage, OpenRouter, or another provider unless configured with Ollama/local embeddings.",
          "MCP support varies a lot. Some tools expose search and file reads; others expose generated wiki pages, graph traversal, or agentic Q&A.",
          "For agent audiences, generated wiki quality matters less than tool granularity. A coding agent will usually make better plans with exact file reads, references, call graphs, and snippets than with polished prose.",
          "GitHub star counts are adoption signals, not correctness. Kodit and SourceBridge are low-star but strategically interesting; deepwiki-open is popular but lacks obvious MCP.",
          "Generated wikis need coverage testing. Large repos can produce attractive but incomplete pages unless you steer page structure and verify missing subsystems.",
          "Permission sync is the hidden enterprise boundary. Sourcebot and Sourcegraph have the clearest stories; many OSS tools have no real multi-user ACL model.",
          "Onyx is better treated as a companion workplace knowledge layer than a codebase wiki replacement because its GitHub connector docs emphasize PRs and issues rather than source-code navigation."
        ]
      }
    ],
    "claims": [
      {
        "id": "devin-indexing",
        "claim": "Devin's repository indexing enables Ask Devin and DeepWiki and is separate from environment setup.",
        "sourceId": "devin-index-repo",
        "evidenceType": "official",
        "confidence": "high",
        "caveat": "Devin docs can change quickly.",
        "guideLocation": "Baseline"
      },
      {
        "id": "deepwiki-generation",
        "claim": "DeepWiki generates codebase wikis with architecture diagrams, source links, and summaries; Ask Devin uses DeepWiki plus code search.",
        "sourceId": "devin-deepwiki",
        "evidenceType": "official",
        "confidence": "high",
        "caveat": "Product quality is not independently benchmarked here.",
        "guideLocation": "Baseline"
      },
      {
        "id": "deepwiki-mcp-public",
        "claim": "DeepWiki MCP exposes public-repo wiki structure, wiki contents, and Q&A tools, while private repo use points to Devin.",
        "sourceId": "devin-deepwiki-mcp",
        "evidenceType": "official",
        "confidence": "high",
        "caveat": "Public DeepWiki MCP is not a private self-hosted option.",
        "guideLocation": "Baseline"
      },
      {
        "id": "opendeepwiki-best-single",
        "claim": "OpenDeepWiki is the closest single OSS/self-hosted DeepWiki replacement because it combines generated docs, diagrams, repo ingest, and MCP.",
        "sourceId": "opendeepwiki",
        "evidenceType": "official",
        "confidence": "high",
        "caveat": "Maturity and generated-doc quality need a live pilot.",
        "guideLocation": "Shortlist"
      },
      {
        "id": "deepwiki-open-mcp-gap",
        "claim": "deepwiki-open has strong wiki generation and adoption but no obvious MCP support in its README.",
        "sourceId": "deepwiki-open",
        "evidenceType": "inference",
        "confidence": "medium",
        "caveat": "MCP may exist outside the README or be added later.",
        "guideLocation": "Shortlist"
      },
      {
        "id": "kodit-substrate",
        "claim": "Kodit exposes MCP/REST, BM25, semantic search, grep, visual document search, and optional wiki/enrichment tools.",
        "sourceId": "kodit",
        "evidenceType": "official",
        "confidence": "high",
        "caveat": "Adoption is still early.",
        "guideLocation": "Shortlist"
      },
      {
        "id": "sourcebot-search",
        "claim": "Sourcebot is the best lightweight shared search/Q&A/MCP layer, but core licensing is fair-source and permission syncing is Enterprise-gated.",
        "sourceId": "sourcebot-overview",
        "evidenceType": "official",
        "confidence": "high",
        "caveat": "Fair-source may be acceptable for self-hosting but is not OSI OSS.",
        "guideLocation": "Shortlist"
      },
      {
        "id": "sourcebot-mcp-tools",
        "claim": "Sourcebot MCP includes grep, list/read file tools, tree/glob, commits, symbol definitions/references, model listing, and ask_codebase.",
        "sourceId": "sourcebot-mcp",
        "evidenceType": "official",
        "confidence": "high",
        "caveat": "OAuth and permission behavior depend on license and instance configuration.",
        "guideLocation": "Decision matrix"
      },
      {
        "id": "sourcegraph-enterprise",
        "claim": "Sourcegraph Enterprise has the strongest mature MCP/code-intelligence and permission story, but is commercial.",
        "sourceId": "sourcegraph-mcp",
        "evidenceType": "official",
        "confidence": "high",
        "caveat": "Public Sourcegraph repo metrics are not representative because the main repo is no longer public in the same way.",
        "guideLocation": "Recommended architectures"
      },
      {
        "id": "serena-agent-layer",
        "claim": "Serena is best treated as local agent code intelligence, not a generated wiki.",
        "sourceId": "serena",
        "evidenceType": "official",
        "confidence": "high",
        "caveat": "Some deeper refactors require the paid JetBrains backend.",
        "guideLocation": "Layers"
      },
      {
        "id": "narsil-agent-layer",
        "claim": "Narsil MCP provides local code-intelligence/security tools across 32 languages, including call graphs, taint analysis, SBOM, and optional neural search.",
        "sourceId": "narsil",
        "evidenceType": "official",
        "confidence": "high",
        "caveat": "Young project and high tool count may require MCP tool filtering.",
        "guideLocation": "Layers"
      },
      {
        "id": "agent-primary-stack",
        "claim": "For Claude, Codex, Pi, Cursor, or a custom MCP coding agent, Sourcebot plus Serena is the best default stack when fair-source licensing is acceptable.",
        "sourceId": "sourcebot-mcp",
        "evidenceType": "inference",
        "confidence": "medium",
        "caveat": "This is a fit judgment from the available MCP/search and local-symbol tool surfaces, not a benchmark.",
        "guideLocation": "Agent audience"
      },
      {
        "id": "agent-strict-oss-stack",
        "claim": "Kodit plus Serena plus Repomix is the best strict-OSS agent-context stack among the surveyed tools.",
        "sourceId": "kodit",
        "evidenceType": "inference",
        "confidence": "medium",
        "caveat": "Repomix packing helps snapshot-based planning, but live edits still need file/symbol tools.",
        "guideLocation": "Agent audience"
      },
      {
        "id": "agent-wiki-limitation",
        "claim": "Generated wiki pages are useful agent background but should not be the only layer for agents that will plan or edit code.",
        "sourceId": "serena",
        "evidenceType": "inference",
        "confidence": "high",
        "caveat": "A high-quality wiki can still help orientation when paired with exact code retrieval.",
        "guideLocation": "Agent audience"
      },
      {
        "id": "onyx-not-code-nav",
        "claim": "Onyx is strong for workplace RAG/MCP but not a source-code navigation replacement.",
        "sourceId": "onyx-github",
        "evidenceType": "official",
        "confidence": "high",
        "caveat": "Onyx can still ingest code-like documents through other paths.",
        "guideLocation": "Caveats"
      }
    ],
    "sources": [
      {
        "id": "devin-index-repo",
        "title": "Index a Repository",
        "publisher": "Devin Docs",
        "url": "https://docs.devin.ai/onboard-devin/index-repo",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "devin-deepwiki",
        "title": "DeepWiki",
        "publisher": "Devin Docs",
        "url": "https://docs.devin.ai/work-with-devin/deepwiki",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "devin-ask",
        "title": "Ask Devin",
        "publisher": "Devin Docs",
        "url": "https://docs.devin.ai/work-with-devin/ask-devin",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "devin-deepwiki-mcp",
        "title": "DeepWiki MCP",
        "publisher": "Devin Docs",
        "url": "https://docs.devin.ai/work-with-devin/deepwiki-mcp",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "opendeepwiki",
        "title": "OpenDeepWiki",
        "publisher": "AIDotNet",
        "url": "https://github.com/AIDotNet/OpenDeepWiki",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "deepwiki-open",
        "title": "deepwiki-open",
        "publisher": "AsyncFuncAI",
        "url": "https://github.com/AsyncFuncAI/deepwiki-open",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "codewiki",
        "title": "CodeWiki",
        "publisher": "FSoft-AI4Code",
        "url": "https://github.com/FSoft-AI4Code/CodeWiki",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "sourcebridge",
        "title": "SourceBridge",
        "publisher": "SourceBridge.ai",
        "url": "https://github.com/sourcebridge-ai/sourcebridge",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "sourcebot-overview",
        "title": "Sourcebot Overview",
        "publisher": "Sourcebot",
        "url": "https://docs.sourcebot.dev/",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "sourcebot-mcp",
        "title": "Sourcebot MCP Server",
        "publisher": "Sourcebot",
        "url": "https://sourcebot.mintlify.app/docs/features/mcp-server",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "sourcebot-permissions",
        "title": "Sourcebot Permission Syncing",
        "publisher": "Sourcebot",
        "url": "https://docs.sourcebot.dev/docs/features/permission-syncing",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "kodit",
        "title": "Kodit README",
        "publisher": "HelixML",
        "url": "https://raw.githubusercontent.com/helixml/kodit/main/README.md",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "sourcegraph-mcp",
        "title": "Sourcegraph MCP Server",
        "publisher": "Sourcegraph",
        "url": "https://sourcegraph.com/docs/api/mcp",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "sourcegraph-permissions",
        "title": "Sourcegraph Repository Permissions",
        "publisher": "Sourcegraph",
        "url": "https://sourcegraph.com/docs/admin/permissions",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "serena",
        "title": "Serena",
        "publisher": "Oraios",
        "url": "https://github.com/oraios/serena",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "narsil",
        "title": "Narsil MCP",
        "publisher": "postrv",
        "url": "https://github.com/postrv/narsil-mcp",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "codegraphcontext",
        "title": "CodeGraphContext",
        "publisher": "CodeGraphContext",
        "url": "https://github.com/CodeGraphContext/CodeGraphContext",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "blarify",
        "title": "Blarify",
        "publisher": "blarApp",
        "url": "https://github.com/blarApp/blarify",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "repomix",
        "title": "Repomix",
        "publisher": "yamadashy",
        "url": "https://github.com/yamadashy/repomix",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "onyx-github",
        "title": "Onyx GitHub Connector",
        "publisher": "Onyx",
        "url": "https://docs.onyx.app/admins/connectors/official/github",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "onyx-mcp",
        "title": "Onyx MCP Server",
        "publisher": "Onyx",
        "url": "https://docs.onyx.app/deployment/configuration/mcp_server",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      },
      {
        "id": "openhands",
        "title": "OpenHands",
        "publisher": "OpenHands",
        "url": "https://github.com/OpenHands/OpenHands",
        "accessedAt": "2026-05-04",
        "sourceType": "official"
      }
    ],
    "revisions": [
      {
        "version": "2026-05-04.1",
        "date": "2026-05-04",
        "summary": "Initial public guide comparing OSS and self-hosted DeepWiki alternatives, MCP code-intelligence tools, shared search/Q&A platforms, and recommended stacks."
      },
      {
        "version": "2026-05-04.2",
        "date": "2026-05-04",
        "summary": "Added an agent-audience section ranking tools for Claude, Codex, Pi, Cursor, and custom MCP coding agents that need planning and editing context rather than human-facing documentation."
      }
    ]
  },
  "publicUrl": "https://fieldguides.co/g/self-hosted-deepwiki-alternatives"
}