AIAny
AI Client2021
GitHub

khoj

Self-hostable personal “AI second brain” that turns web pages and documents into a searchable knowledge base, builds custom agents and automations, and connects to local or cloud LLMs with multi-platform access.

Introduction

Most teams either trust a closed cloud assistant or wrestle with brittle, ad-hoc document search. This platform treats your documents and web content as a structured, semantic knowledge layer you can query, extend with agents, and automate — without forcing you into a proprietary cloud.

What Sets It Apart
  • Unified semantic index across web pages, PDFs, Markdown, Notion, Word and other formats, so searches return passage-level answers with provenance rather than opaque model guesses — useful when you need sourced responses.
  • Agent + automation capabilities: create agents with custom knowledge, persona, tools and scheduled tasks to run research workflows or deliver notifications, turning one-off queries into repeatable pipelines.
  • Local-first, multi-provider LLM support: works with local models (Llama-family, Qwen, Mistral) and cloud models (OpenAI, Anthropic, Gemini) so you can balance latency, cost and privacy.
  • Multi-platform integrations (browser, Obsidian, Emacs, desktop, mobile, WhatsApp) that make the knowledge base accessible where you work, not confined to a single UI.
Who It's For and Trade-offs

Great fit if you want private, self-hosted semantic search and agentic automations over proprietary docs, or if you need to switch between local and cloud LLMs for cost/privacy reasons. It’s also useful for teams that want reproducible research/automation pipelines tied to a document corpus.

Look elsewhere if you need a turn-key, fully managed enterprise support SLA out of the box (the project is open-source and community-driven, and enterprise features typically require additional configuration or a vendor plan). Also, very large-scale deployments may need custom infra and tuning for vector store and indexing costs.

Where It Fits

Compared with single-purpose RAG libraries or closed assistants, this project sits between a developer-oriented RAG stack and a full SaaS assistant: it provides an opinionated app + orchestration layer for retrieval, reasoning, agents and multi-client access, and is designed to be self-hosted or run as a cloud service.

How It Works (high level)

The system ingests documents and webpages, builds embeddings and a semantic index, and routes queries through a retrieval layer before hitting an LLM. Agents are composable — you can give an agent a persona, knowledge subset, tools (HTTP, file access, search), and schedules so it can run tasks autonomously on your behalf.

Honest trade-offs: licensing is AGPL-3.0 (check for commercial constraints), and running advanced pipelines at scale requires attention to vector store, embedding costs, and model choice. For people who need an auditable, portable knowledge/agent stack, this is one of the more complete open-source options available today.

Information

  • Websitegithub.com
  • AuthorsKhoj AI (khoj-ai)
  • Published date2021/08/16

More Items

GitHub
AI Client2024

Unifies visual creator tools, reusable Skills, and a Codex-powered Agent to handle video translation, image/video generation, voiceovers, and editing in one local multimodal workspace. Desktop and web clients share a synchronized state machine and keep data local by default.

GitHub
AI Client2025

Private, local-first desktop assistant for voice and text conversations that runs models on your hardware. Uses local model servers (Ollama or OpenAI-compatible endpoints), offers personal memory, dictation, TTS/STT, MCP integrations and automatic redaction; free for personal use.

GitHub
AI Coding2025

Runs many shells inside one terminal and treats coding agents as first-class panes. Combines daemon-backed persistent sessions, vim-style modal control, BSP tiling, a session rail and an Inbox that surfaces approvals, questions and finished turns from LLM-based coding agents — useful when you run and manage agent workflows alongside shells.