# OpenWiki (AI)
OpenWiki is [[LangChain]]'s open source (MIT) CLI that generates and maintains documentation written for AI agents, not humans. Run it on a codebase and it produces an `openwiki/` directory of agent-readable docs, then keeps them in sync with the code over time. 1.4k GitHub stars shortly after release.
## How it works
- `openwiki --init` configures the inference provider and API key ([[Anthropic]], OpenAI, OpenRouter, Fireworks, Baseten). Claude Sonnet 5 ships among the pre-configured models
- `openwiki` generates the initial documentation set
- A GitHub Action proposes daily documentation updates as pull requests, so the docs track the code instead of rotting
- It injects instructions into `AGENTS.md` and `CLAUDE.md` (see [[AGENTS.md (File Convention)]]) telling coding agents to reference the generated docs. That closes the loop: the docs exist for agents, and the agents are told to use them
- TypeScript/JavaScript, distributed via npm
## Why it matters
Documentation for agents is becoming its own genre: context files, capability registries, architecture maps that an agent can load on demand instead of re-deriving from the source every session. OpenWiki automates that genre at the repository level and, crucially, treats doc maintenance as a CI concern (daily PRs) rather than a heroic one-off effort. The same problem my vault solves for knowledge work, applied to codebases.
The parallel with my LLM Wiki approach is direct: curated, structured knowledge that agents consume, with maintenance built into the process instead of bolted on.
## References
- Repository: https://github.com/langchain-ai/openwiki
## Related
- [[LangChain]]
- [[LangGraph]]
- [[LangChain Deep Agents]]
- [[AGENTS.md (File Convention)]]
- [[AI Agents]]
- [[LLM Wiki]]
- [[Claude Code]]