OpenWiki: a CLI for agent wikis
LangChain’s open-source CLI creates and maintains Markdown wikis about codebases or personal knowledge, giving coding agents durable context. It supports code and personal wiki modes, plus search and links between wikis.
softwaredocs.langchain.com · Saved Oct 28, 2026
llm knowledge bases, coding agents, agent infrastructure, personal knowledge management
OpenWiki is an open source CLI that writes and maintains a Markdown wiki about your codebase or personal knowledge. The wiki captures details such as architecture, integrations, evals, and workflows so coding agents can use it as durable context instead of rediscovering the repository on every task. That makes agent work faster and cheaper in tokens: agents read a curated wiki first, then inspect source only where they need more detail. Humans can browse the same Markdown (and the local visualizer), but the primary audience is agents. OpenWiki is built on Deep Agents and supports tracing with LangSmith.
Get started
Install the CLI, then initialize documentation for the current repository:
See the Quickstart to choose a model provider, generate docs, and keep them up to date. To run OpenWiki inside a coding agent instead of a standalone model session, see Coding-agent integrations. To search an existing wiki or group related repositories, see Search and link wikis.
Modes
OpenWiki has two modes:
| Mode | Command | Output | Use when |
|---|---|---|---|
| Code (default) | openwiki / openwiki code | openwiki/ in the current repository | You want repository context and documentation for coding agents |
| Personal | openwiki personal | ~/.openwiki/wiki | You want a local personal brain from configured sources |
Bare openwiki --init and openwiki --update run in code mode. Use openwiki personal --init or openwiki personal --update for the personal wiki.