Skip to main content
OpenSourceAlternatives

Khoj

Custom licenseStatus: unknownNew

Open-source AI second brain for notes, agents, and automations

Khoj is an open-source personal AI application that turns scattered notes and documents into a searchable second brain. It answers questions from personal files and the web, runs custom agents, and delivers scheduled research by email. It serves individuals who want a private assistant on their own hardware or in the hosted cloud. It comes from a small applied-AI team that builds in the open, and it scales from an on-device personal setup to cloud and enterprise hosting.[1][2]

Quick verdict

Khoj suits individuals who want a private AI assistant that answers from their own notes and documents. Its semantic search over PDFs, Markdown, Notion, and images, plus custom agents and scheduled automations, turn scattered files into a working second brain. It needs self-hosting effort or trust in the hosted cloud, so anyone wanting a zero-setup team workspace should look at AnythingLLM's one-click desktop app instead. If you live in Obsidian or Emacs and want local-model privacy with automation, choose Khoj; if you need multi-user roles and admin controls, choose AnythingLLM.[1][2][3]

Key features

  • Local or hosted model choice Chat with on-device models such as Llama, Qwen, Gemma, and Mistral through an Ollama-compatible endpoint, or switch to GPT, Claude, and Gemini with an API key. The self-host guide shows exactly where each key goes, so a household can start free on local models and add commercial ones later.[1][2]

  • Semantic search over personal docs Find relevant notes fast across PDFs, Markdown, org-mode, Word, Notion, and images instead of relying on keyword search. Because retrieval understands meaning, a half-remembered idea surfaces even when the exact words do not match.[1]

  • Custom agents with roles Create agents with their own knowledge, persona, chat model, and tools to take on research, tutoring, or support roles. A server host can set up agents once and make them available to everyone on that server.[1][2]

  • Scheduled automations Run a query automatically at a set time and frequency, with results delivered as email newsletters and smart notifications. Repetitive routines happen without retyping the same prompt.[1][2]

  • Online search with references Khoj researches the internet to ground answers when its own knowledge is not enough, and always shows the references it used. Readers can verify a claim against the cited pages instead of taking the answer on trust.[1][2]

  • Python code execution Khoj generates and runs simple Python code for data analysis, plots, and reports that pure language models handle poorly. Quantitative questions get computed answers rather than guessed ones.[1]

  • Voice and image generation Talk out loud, play messages back, and generate images from text prompts without leaving the assistant. A desktop shortcut opens a quick mini-chat for short questions that should not break flow.[1][2]

  • Clients everywhere Reach the same assistant from the browser, desktop, phone, and WhatsApp, or inside Obsidian and Emacs, and share any conversation with a public link. Shared links freeze the conversation at the moment of sharing, so later messages stay private.[1][2]

Who will love it

  • People with large Obsidian or Notion libraries get direct answers from their own writing instead of re-reading folders. The Emacs and Obsidian clients matter here because they answer inside the tool where the notes already live.[1][2]

  • Anyone with a home server or spare computer keeps documents on their own network, including fully offline use. Pairing that with local models through Ollama removes the API-key trail as well.[1][2]

  • People who enjoy setting up agents and scheduled digests get recurring research without repeating the same prompts. Email delivery closes the loop for readers who do not want another dashboard to check.[1][2]

Who should avoid it

  • Khoj is personal software; teams wanting isolated users, roles, and admin controls fit AnythingLLM better, since its workspace and role model is built for sharing.[1][2]

  • Single sign-on, audit logs, and data-residency paperwork were not documented on the inspected pages, so regulated buyers cannot tick those boxes from this review.[1][2]

  • Self-hosting is free apart from infrastructure and model keys, but per-seat cloud prices were not published on the inspected pages, so budget owners should confirm numbers in the live app first.[1][2]

Questions worth asking

What is the best Khoj alternative for non-technical users?

AnythingLLM is the easier pick for non-technical users because its desktop app installs in one click with no account required, while Khoj self-hosting needs Docker or Pip setup. Non-technical users who want Khoj itself can skip self-hosting entirely and start on the hosted cloud app with no setup.[1][2]

Is Khoj really no-code?

Daily use needs no code: chatting, searching, configuring agents, and scheduling automations all happen through the app and its clients. Self-hosting needs comfort with Docker or Pip, environment files, and API keys rather than programming, following a documented guide. Extending Khoj itself or building on it takes Python.[1][2][3]

How much does Khoj cost per month?

Self-hosted Khoj costs nothing in licence fees under AGPL-3.0-or-later; you pay only for your own hardware or hosting plus any commercial model API keys you choose to use. The hosted cloud app starts free with no setup, as checked on October 11, 2026. Published per-seat cloud plan prices were not found on the inspected official pages, so check the live app before budgeting for a team.[1][2][3]

Can you self-host Khoj?

Yes. The official guide documents Docker Compose and Pip installs on macOS, Windows, and Linux, with admin credentials, secret keys, optional commercial model keys, and Ollama support for local models. Khoj stays open-source and self-hostable, and it can run without an internet connection on a personal computer.[1][2]

Sources and editorial review

Source research. Reviewed on October 11, 2026. Written by Sanjib Sah. AI assisted; reviewed by a human editor.

We have not run or tested this product.

  1. Khoj - AI for Humans

    official · Observed October 11, 2026

    Khoj company site: tiny applied-AI team building in the open; Khoj app is a personal AI second brain to build agents, schedule automations, and research across docs and the web with any AI model.

  2. khoj-ai/khoj repository

    official · Observed October 11, 2026

    Repository overview: chat with local or online LLMs; answers from internet and docs including image, PDF, Markdown, org-mode, Word, and Notion; clients for browser, Obsidian, Emacs, desktop, phone, WhatsApp; custom agents; scheduled automations with inbox delivery; semantic search; image generation and voice; open-source and self-hostable always; hosted cloud app; enterprise cloud, on-premises, or hybrid.

  3. Self-Host - Khoj docs

    official · Observed October 11, 2026

    Self-host guide: Docker or Pip install on macOS, Windows, and Linux; configure admin password, secret key, and optional commercial model keys; Ollama on the host supported; can run without an internet connection on a personal computer.

  4. Features - Khoj docs

    official · Observed October 11, 2026

    Feature catalogue: chat, semantic search, custom agents, scheduled automations emailed to the inbox, Python code execution, image generation, desktop quick chat, online search with shown references, shareable chats, and voice.

  5. khoj-ai/khoj LICENSE

    official · Observed October 11, 2026

    Repository license text is the GNU Affero General Public License version 3; package metadata declares AGPL-3.0-or-later.

  6. khoj-ai/khoj pyproject.toml

    official · Observed October 11, 2026

    Package metadata: Python 3.10-3.12 project; homepage khoj.dev; direct dependencies include FastAPI, Django, PostgreSQL drivers with pgvector, sentence-transformers, and multi-provider model SDKs.

  7. AnythingLLM - On-device AI for productivity

    official · Observed October 11, 2026

    AnythingLLM homepage: private on-device AI assistant with document knowledge, dynamic model selection, background jobs, custom agent skills, and desktop, mobile, and cloud editions.

  8. Open WebUI: Self-Hosted AI Platform

    official · Observed October 11, 2026

    Open WebUI homepage: self-hosted AI platform connecting any local or cloud model with retrieval, voice, vision, search, and Python extension; pip or Docker install with no account required.

Compared with these products

No explicit proprietary baseline is recorded.

Similar projects

Related projects with shared categories, technologies, or licensing.

AnythingLLM

AnythingLLMAIOpen

Self-hosted AI workspace for chatting with documents and running agents

Stars66.7K
Commitjust now
LicenseMIT

AnythingLLM is a self-hostable AI workspace for chatting with documents, running AI agents, and switching between local and hosted language models.

LibreChat

LibreChatAIOpen

The open-source, self-hosted AI chat platform for every model.

Stars45.5K
Commitjust now
LicenseMIT

LibreChat is a free, self-hosted chat workspace for many AI providers and local models, with agents, retrieval, and team controls.

Open WebUI

Open WebUIAIOpen

One chat interface for every model you run or connect

Stars150.5K
Commit10h ago
LicenseBSD-3-Clause

Open WebUI is the front end that turns a local inference server into something a household or a team can actually use. It handles accounts, conversation history, document retrieval, and model switching, and speaks to both local runtimes and hosted APIs.

Onyx

OnyxAIOpen

Open-source AI search and chat across company knowledge

Stars32.4K
Commitjust now
LicenseMIT

Onyx is a self-hosted AI platform that connects to 50+ work apps to provide permission-aware search and chat across company knowledge.

MaxKB

MaxKBAIOpen

Open-source RAG assistant that turns docs into chatbots

Stars22.9K
Commitjust now
LicenseGPL-3.0

MaxKB by FIT2CLOUD is an open-source, out-of-the-box RAG assistant that turns documents into a question-answering chatbot with AI workflows and agents. Teams ingest documents and online docs into knowledge bases, connect local or hosted language models, and publish assistants to websites or APIs from a Docker self-hosted deployment.

LobeChat

LobeChatAI

Polished chat interface for many model providers

Stars82.1K
Commit8h ago
LicenseUnknown

LobeChat is the most designed of the open chat front ends. Plugins, an assistant marketplace, voice input and output, and vision support are all present, and the interface holds up next to commercial products.