
OpenWiki
langchain-ai/openwikiAgent-written docs for your codebase
PersonalEnterpriseDeveloper toolsCoding assistantsCLIPermissiveAt a glance
- stars on GitHub
- 18k
- contributors
- 124+
- last commit
- latest release, 3 weeks ago
- v0.9.0
- license
- MIT
About
OpenWiki is a command-line tool from LangChain that has an AI agent read your repository and write a linked Markdown wiki into an openwiki/ folder, with each fact tied back to the source code it came from. Later runs update only the pages whose sources changed, and coding agents such as Claude Code, Codex and Cursor can search the wiki through MCP tools. A personal mode builds a private wiki from sources such as Notion, Gmail, Slack and the web.
From the repository: “OpenWiki is a CLI that writes and maintains agent documentation for your codebase.”
What does OpenWiki do?
OpenWiki writes and maintains documentation about a code repository, mainly for AI coding agents to read. Inside Claude Code, Codex, Cursor, OpenCode, Copilot CLI or another supported agent, you ask it to initialize the wiki; the agent studies the source and tests and writes linked Markdown pages to openwiki/. OpenWiki stores Claims that tie each fact to source evidence, so an update rewrites only pages whose evidence changed, and a clean update makes no model calls. Agents then use openwiki_search and openwiki_read to look up only the sections they need. You can also explore the pages as an interactive graph.
What are the alternatives to OpenWiki?
DeepWiki Open, in our catalog, generates a browsable wiki with diagrams for any GitHub, GitLab or Bitbucket repository, as a web app you host; it suits people reading code more than agents. Graphify and Understand Anything, both in our catalog, turn a codebase into a knowledge graph that coding agents and people can query. Repomix, also in our catalog, packs a whole repository into one file to give to a model, with no lasting docs. Pick OpenWiki when you want Markdown docs inside the repository that stay current and are checked against the source.
What do I need to run OpenWiki?
You need Node.js 22.22.0 or newer, then npm install -g openwiki. The easiest route runs inside a coding agent you already use: OpenWiki then uses that agent's model session, so there is no extra API key. The standalone CLI (openwiki --init) runs its own agent built on LangChain Deep Agents and asks you to pick one of fourteen model providers, including local models through Ollama or LM Studio. On Windows, install it with npm or pnpm, not bun. To keep the wiki current, the project ships CI examples for GitHub Actions, GitLab and Bitbucket that open a docs pull request when something changes.
What are OpenWiki's limits?
It is a young project, still at version 0.x, so expect changes. Each code-mode run manages AGENTS.md at the root of your repository and refreshes CLAUDE.md if you have one; an open request asks to make this optional. Other open requests ask for monorepo support and a configurable output folder, and one reports that code mode assumes GitHub. Inside a coding agent, pages are written one at a time; only the standalone CLI can run several page workers in parallel. Ignored paths are never read, but the agent may still infer them from other files.
Is OpenWiki free, and does it collect data?
OpenWiki is free and open source under the MIT license. You pay only for the model calls, through your coding agent's plan or your own provider key. It collects anonymous usage data by default: the command, its outcome and, at setup, the model provider and connector names, keyed by a random install ID. According to the README, it never sends file contents, repository names, prompts, model output or your IP address. Turn it off with OPENWIKI_TELEMETRY_DISABLED=1 or DO_NOT_TRACK=1. Provider keys are stored in ~/.openwiki/.env on your machine.
Why it's in the catalog
Useful for teams whose coding agents keep relearning a large codebase: the wiki lives in the repository, can update in CI and stays reviewable in pull requests. It is young (version 0.x), it manages your AGENTS.md file, and each generation run costs model tokens. If you mainly want people to browse docs for a repository, DeepWiki Open is closer to that job.
Get it
npm install -g openwiki openwiki integrations install claude
npm install -g openwiki openwiki --init
Downloads
All releases on GitHub ↗Latest release: v0.9.0,
Source code only: this release has no files to download.
Alternatives
All alternatives →| Project | Stars | Last commit | License | Worth |
|---|---|---|---|---|
| 18k | MIT | 79 | ||
| 151k (best) | MIT | 96 (best) | ||
| 56k | Apache-2.0 | 93 | ||
| 76k | MIT | 91 | ||
| 29k | MIT | 84 |
▲ marks the most stars and the best worth score.