Back to services

Khoj

Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI (gpt, claude, gemini, llama, qwen, mistral). Get started - free.

View alternatives to Khoj
Suggest edit
Open source
Self-hostable
AGPL-3.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Note: We were unable to retrieve the official website content this time, so the following is written based on what we already know about the project. Please refer to the official website https://khoj.dev and the official documentation for details.

Overview

Khoj is an open-source personal AI assistant, positioned as an "AI second brain." It indexes your personal documents and notes, then combines large language models with web search to answer questions and find information. You can use the official cloud service, or deploy it on your own device or server and keep control of your data.

Key Features

  • Chat with your documents: Supports formats such as PDF, Markdown, Org-mode, plain text and Word, and can also connect to sources like Notion and GitHub, offering semantic search and Q&A over the content.
  • Web search: Generates answers using real-time information from the web.
  • Multiple models: Works with online models such as GPT, Claude and Gemini, and can also run local open-source models through tools like Ollama.
  • Custom agents: Set up a persona, knowledge base and tools for each agent individually.
  • Automations: Run queries on a schedule and have the results sent to you, for example to generate regular briefings.
  • Access from multiple platforms: Use it in the browser, on desktop, through the Obsidian plugin, the Emacs plugin and on mobile.

Target Users and Use Cases

  • Knowledge workers with lots of notes: those who want to search and organize their notes using natural language.
  • Researchers and students: for looking up literature and summarizing materials.
  • Privacy-conscious users: those who want a self-hosted AI assistant that uses local models.
  • Obsidian and Emacs users: those who want to call on an AI assistant directly from their editor.

Core Strengths

  • Open source and self-hostable, so you don't have to hand your data over to a third party.
  • Works with both local and online models, giving you flexibility.
  • Tight integration with popular note-taking tools such as Obsidian and Emacs.
  • Offers an out-of-the-box cloud service, and can also be deployed fully privately.

Installation and Deployment

  • Cloud service: Sign up for the official hosted version and start using it right away.
  • Self-hosting: The official documentation provides a Docker Compose deployment method, and you can also install the Python package with pip and run it. After deployment, open the admin dashboard in your browser to configure models and data sources.

Technical Requirements

  • The server is built on Python, and the database is PostgreSQL (with a vector extension). Deploying with Docker is the easiest route.
  • Running local large models requires enough memory and, ideally, a GPU; if you only call online model APIs, the hardware requirements are lower.

Worth Noting

  • The project is licensed under AGPL-3.0.
  • The quality of the answers depends to a large extent on the capabilities of the model you choose.