OpenWiki is a CLI that writes and maintains agent-readable docs of your codebase, so coding agents stop re-learning your repo from scratch on every task.
Yes, OpenWiki is open source under the MIT license.
OpenWiki is free to use.
Yes, OpenWiki can be self-hosted (the source is available under the MIT license).
MIT-licensed TypeScript CLI from LangChain that writes and maintains agent-readable documentation of your codebase, giving a coding agent persistent context instead of making it re-derive the repo on every task. It stores state locally in ~/.openwiki and operates on local repositories, and it can run through local model backends (Ollama, LM Studio, any OpenAI-compatible endpoint) as well as hosted providers, so a paid key is optional rather than required.
The quiet tax on agent-built GTM tooling is context: past a certain repo size, every task begins with the agent re-reading the codebase, burning tokens and still missing things. OpenWiki's bet is to keep a maintained, agent-readable doc layer the agent can load instead — persistent memory of what the repo is and how it fits together. It is MIT, runs against local models, and comes from LangChain, which is a credible source for this exact problem. The catch is the failure mode of any generated-docs tool: stale docs can steer an agent wrong just as confidently as good ones help, so this is a keep-it-current layer, not a set-and-forget export. For a team maintaining more agent-written code than any one context can hold, that trade is usually worth making.