Repolode
khoj-ai

khoj-ai/khoj

Self-hostable AI second brain that answers questions from the web and your own documents, with custom agents and scheduled automations.

Open-source alternative to:ChatGPTNotion AI

Stars
37,754
Forks
2,526
Open issues
164
Last commit
3 months ago

What is it?

Khoj is a personal AI app that lets you chat with local or online LLMs such as llama3, qwen, mistral, GPT, Claude and Gemini, grounded in your own files and the internet. It can read PDFs, Markdown, Notion exports, Word documents and org-mode files, and offers semantic search over them.

You can access Khoj from a browser, Obsidian, Emacs, a desktop app, a phone, or WhatsApp. Users can create agents with their own knowledge base, persona, chat model and tools, and set up automations such as recurring research and newsletters delivered to their inbox.

Khoj can run privately on your own computer or be self-hosted, and a hosted cloud version is also available. The project is open source under AGPL-3.0.

Key features

  • 01Chat with local or online LLMs such as llama3, qwen, GPT and Claude.
  • 02Answer questions using web results and your own PDFs, Markdown, Notion, Word and org-mode files.
  • 03Semantic search over your documents.
  • 04Build custom agents with their own knowledge, persona, model and tools.
  • 05Schedule automated research and newsletters.
  • 06Access from browser, Obsidian, Emacs, desktop, phone and WhatsApp.

Use cases

  • Querying personal notes in Obsidian or Emacs with an AI assistant.
  • Running a private AI assistant on your own computer or server with local models.
  • Automating recurring research and receiving digests in your inbox.
  • Building specialized agents for a particular domain or workflow.

Quick start

  1. 1

    Try the hosted cloud app at app.khoj.dev (no setup required)

  2. 2

    To self-host, follow the setup guide in the Khoj docs

Things to know

  • Licensed under AGPL-3.0, a copyleft license that requires derivative network services to share their source code.

Topics

FAQ

What is khoj?
Self-hostable AI second brain that answers questions from the web and your own documents, with custom agents and scheduled automations. Khoj is a personal AI app that lets you chat with local or online LLMs such as llama3, qwen, mistral, GPT, Claude and Gemini, grounded in your own files and the internet. It can read PDFs, Markdown, Notion exports, Word documents and org-mode files, and offers semantic search over them.
Is khoj free to use? What license does it have?
khoj is open source under the AGPL-3.0 license. Check the license terms before using it in commercial products.
Is khoj still maintained?
Updated within 6 months. The last commit to khoj was on Aug 2, 2026.
What can I use khoj for?
Querying personal notes in Obsidian or Emacs with an AI assistant. Running a private AI assistant on your own computer or server with local models. Automating recurring research and receiving digests in your inbox. Building specialized agents for a particular domain or workflow.
How do I install khoj?
Try the hosted cloud app at app.khoj.dev (no setup required) To self-host, follow the setup guide in the Khoj docs
Where can I get khoj?
The source code and installation instructions are on GitHub: https://github.com/khoj-ai/khoj

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects