@livewiki/cli
The livewiki command builds a Markdown wiki beside your code, detects when
documentation becomes stale, and validates its references.
Full guide and dated benchmark archive:
github.com/eduardoabreu81/livewiki
Install
Requires Node.js 24 or newer.
npm install -g @livewiki/cli
You can also prefix commands with npx @livewiki/cli.
Lifecycle
1. Initialize
livewiki init
This indexes the repository and creates the wiki skeleton without calling an
LLM.
2. Bootstrap once
Connect livewiki to your coding agent:
livewiki install
Through the MCP server, the agent can call livewiki_next_task, read the
returned source paths, and submit each page with livewiki_write_doc and the
returned taskId. This uses the model from the agent's existing session and
requires no provider, model, or API credential in livewiki. The queue owns
priority, bounded attempts, checkpoints, validation, and resume.
For an unattended API-backed bootstrap, run the interactive wizard:
livewiki config
It writes provider settings to .livewiki/config.json and stores the API key
separately at ~/.livewiki/credentials.json, without echoing the key during
input. On POSIX the credentials file uses mode 0600; on Windows it inherits
the user profile's ACL. Check presence and origin without printing the value:
livewiki config show
Environment variables take precedence and remain available for CI and other
headless environments:
export ANTHROPIC_API_KEY=sk-ant-...
livewiki init --batch
In PowerShell, set the key with
$env:ANTHROPIC_API_KEY = "sk-ant-...". For ollama and lmstudio the
credential is optional: leave it empty for a local server, or supply one with a
custom base URL to reach an authenticated remote endpoint.
3. Maintain incrementally
After the bootstrap, the active agent uses the same MCP connection and its
existing session to inspect debt and update affected pages as code changes.
livewiki index
livewiki status
4. Verify and browse
livewiki verify
livewiki view
Bootstrap and maintenance are consecutive phases: create the initial corpus
once, then keep it current incrementally.
Related packages
@livewiki/mcp — MCP
server for stdio-capable clients
@livewiki/core — the
indexer, anchor ledger, batch pipeline, and verification library
License
MIT