Credentials. The .env file holds your provider key, so keep it out of git and out of shared logs.
Who it is forA developer or team that wants a shared wiki service that scripts and agents can call over HTTP.
The problemAdding documents and asking questions by hand does not fit into an automated workflow.
The outcomeA running wiki on port 8000 that accepts documents and questions through HTTP requests.
What you need first
- Python 3.11 or later, or uv to install it
- An API key for OpenRouter, OpenAI, Gemini or another OpenAI-compatible server, or Ollama installed for free local use
- Documents as text, Markdown, PDF, Word, PowerPoint, Excel or OpenDocument files
Steps
- Run
git clone https://github.com/crow-hq/llm-wiki-v2 && cd llm-wiki-v2. - Run
cp .env.example .env, then set OKF_LLM_PROVIDER and its key in the file. - Run
docker compose up -d --buildto start the wiki on port 8000. - Run
curl -X POST localhost:8000/ingest -H 'content-type: application/json' -d '{"text": "Acme refunds orders within 30 days of delivery.", "title": "Refund policy"}'to file a note. (inferred, check the README) - Run
curl -X POST localhost:8000/ask -H 'content-type: application/json' -d '{"question": "How long do customers have to ask for a refund?"}'to get a cited answer. (inferred, check the README)
Prompt for your agent
Clone the llm-wiki-v2 repo, start it with Docker Compose on port 8000, then POST the text in <source file> to /ingest and ask <question> through /ask. Expected output: the ingest response and an answer with cited notes. Verify that /health reports the service as running.
Caveat. With Docker the settings come from .env and the web page shows them but cannot change them.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for crow-hq/llm-wiki-v2 and "Run the wiki as a server that other tools can call"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer