Offline-web-search: A Local Google Search Alternative for AI Agents

What This Is
offline-web-search is a fully local Google Search alternative designed specifically for AI agents that need offline web search capabilities. It was created as a drop-in replacement for Claude's web tools, allowing LLMs to use it without complex prompting.
Core Problem Being Solved
The developer identified that existing offline search solutions for AI agents have significant limitations. Most tools either dump raw HTML files into the context window or have basic search functionality that prevents agents from finding specific documentation. This is particularly problematic in air-gapped environments, when handling sensitive data, or when building fully local stacks.
Key Technical Features
- Search Engine Behavior: Instead of text dumps, it indexes content into a local SQLite FTS5 database using BM25 ranking, title boosting, synonym expansion, prefix matching, and non-English demotion.
- Content Sources: Natively supports Kiwix ZIM archives (containing offline snapshots of Stack Overflow, Python docs, DevDocs, Wikipedia) and includes an indexing API and crawler for custom content like internal Confluence, company docs, or random HTML pages.
- Architecture: Uses a client-server model with an HTTP API. The "heavy" content server runs centrally on your network, while lightweight clients connect via MCP server for Claude Desktop or native Claude Code skill.
- Exposed Tools: Provides two standard tools:
Google Searchfor BM25 ranked search andvisit_pageto return clean Markdown of full pages.
How It Works
The tool was built by reverse-engineering Claude's Web-Fetch and Web-Search tools, their system prompts, and functionality. Search results provide highly relevant, ranked snippets to the LLM, which can then use the visit_page tool to access clean, readable Markdown versions of full pages.
Who It's For
Developers building offline AI agents or heavily local setups who need reliable search capabilities without internet access.
📖 Read the full source: r/ClaudeAI
👀 See Also

OpenAlly: Local AI Assistant for Android with Phone Control
OpenAlly is an Android app that runs an AI assistant locally on your phone via an embedded Node.js process, with 51 built-in skills and phone control capabilities through Aster companion. It connects to 19+ messaging platforms and supports 18 model providers with your own API keys.

Alfred Beta Launches: Simplified OpenClaw Alternative for Non-Technical Users
Alfred is a new beta tool that provides approximately 70% of OpenClaw's functionality with significantly reduced complexity, featuring simple defaults for app connections, memory, usage modes, and infrastructure while allowing customization.

OpenTrace: Self-Hosted Observability Server with 75+ MCP Tools
OpenTrace is a self-hosted observability server that provides logs, user analytics, and database introspection through 75+ MCP tools, running on a $4 VPS with SQLite storage and read-only Postgres connections.

Comparing Local vs. Cloud AI Agents: OpenClaw and Twin.so
OpenClaw is an open-source local AI agent that runs on your machine with full data control, while Twin.so is a cloud-based platform with 200,000+ community-built agents for 24/7 automation.