Forked from lmstudio/wikipedia
intro mode when fetching an article, which allows you LLM to provide quick yet factual responses. If the LLM needs more context, it will call the tool in either full or refs mode to get the full article or the references section. Additionally, this tool uses cheerio to strip away unnecessary HTML elements, significantly reducing prompt processing times.OPDS API. Since the vast majority of the content resides on disk, this minimal overhead makes it possible to implement on SBCs / mobile devices.For a more detailed installation guide with pictures, visit the GitHub repository.
Kiwix Desktop (Recommended for beginners):
kiwix-desktop via your package manager or from Flathub.Setup: Once Kiwix is installed, navigate to "Online Files" to download your desired wiki dumps (e.g., Wikipedia, ArchWiki). Select "Local Kiwix Server" from the drop-down menu in the top-right corner (or press Ctrl+I). Set the address to 127.0.0.1 on port 8080 and start the server.
Kiwix Server (Recommended for headless systems / SBCs):
kiwix-tools via your package manager.Setup:
You may also pass the -d flag to run the server as a background daemon.
Terminal Setup:
Assuming you did not uncheck the "add lms to your PATH" option during LM Studio's setup, run:
Tool Activation:
Your LLM is now ready to read articles from your Kiwix library!
This tool is a fork of lmstudio/wikipedia and is mainly authored/enhanced by Deepseek-V4 and Deepseek-V3.3, with the code audited by me.
Disclaimer: This is just a for-fun weekend project and should NOT be used in production environments. This tool is provided "as is" with NO WARRANTY.
Feedbacks and contributions to this project are welcome! :D
This tool is released under the GPLv3 license.
kiwix-serve -i 127.0.0.1 -p 8080 *.zim
lms get 2vibeornot2vibe/localwiki