https://github.com/khoj-ai/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.
https://github.com/khoj-ai/khoj
agent ai assistant chat chatgpt emacs image-generation llama3 llamacpp llm obsidian obsidian-md offline-llm productivity rag research self-hosted semantic-search stt whatsapp-ai
Last synced: about 7 hours ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/khoj-ai/khoj
- Owner: khoj-ai
- License: agpl-3.0
- Created: 2021-08-16T01:48:44.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-04-19T13:39:26.000Z (16 days ago)
- Last Synced: 2025-04-19T21:50:11.040Z (16 days ago)
- Topics: agent, ai, assistant, chat, chatgpt, emacs, image-generation, llama3, llamacpp, llm, obsidian, obsidian-md, offline-llm, productivity, rag, research, self-hosted, semantic-search, stt, whatsapp-ai
- Language: Python
- Homepage: https://khoj.dev
- Size: 109 MB
- Stars: 28,742
- Watchers: 145
- Forks: 1,608
- Open Issues: 72
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ChatGPT-repositories - khoj - An AI copilot for your second brain. Search and chat with your personal knowledge base, online or offline (NLP)
- awesome-ai - 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. (Agent)
- awesome-ai - 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. (Agent)
- awesome-ai-api-projects - khoj - time information from notes, documents, and the internet, create a personal AI agent that is always available to enhance your capabilities. | open | Both+official | [OpenAI](https://platform.openai.com/playground), [Claude](https://www.anthropic.com/), local models |  | (ChatAI / Web app)
- StarryDivineSky - khoj-ai/khoj
- AiTreasureBox - khoj-ai/khoj - 04-30_29865_14](https://img.shields.io/github/stars/khoj-ai/khoj.svg)|Your AI second brain. A copilot to get answers to your questions, whether they be from your own notes or from the internet. Use powerful, online (e.g gpt4) or private, local (e.g mistral) LLMs. Self-host locally or use our web app. Access from Obsidian, Emacs, Desktop app, Web or Whatsapp.| (Repos)
- awesome-rainmana - khoj-ai/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 (Python)
- awesome-ccamel - khoj-ai/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. (Python)
- awesome-LangGraph - Khoj - hostable AI second brain for web or docs with custom agents.  (Community Projects / Development & Tools)
- awesome - khoj-ai/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. (Python)
- jimsghstars - khoj-ai/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 (Python)
- my-awesome-list - khoj - 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. | khoj-ai | 29915 | (Python)
- my-awesome-github-stars - khoj-ai/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 (Python)
- awesome-safety-critical-ai - `khoj-ai/khoj` - hostable AI second brain (<a id="tools"></a>🛠️ Tools / Bleeding Edge ⚗️)
- awesome-safety-critical-ai - `khoj-ai/khoj` - hostable AI second brain (<a id="tools"></a>🛠️ Tools / Bleeding Edge ⚗️)
- awesomeLibrary - 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. (语言资源库 / python)
- definitive-opensource - Khoj AI - 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. | `Web (Cloud)` `SelfHost` | **29.9k** | (Table of Contents / All In One)
- awesome-chatgpt - khoj-ai/khoj - Khoj is a self-hostable personal AI assistant that integrates with various large language models to provide web and document-based answers, custom agents, automation, and multi-platform accessibility for individuals and enterprises. (ChatGPT-based applications for regular users and specialized problems / Other sdk/libraries)
README
[](https://github.com/khoj-ai/khoj/actions/workflows/test.yml)
[](https://github.com/khoj-ai/khoj/pkgs/container/khoj)
[](https://pypi.org/project/khoj/)
[](https://discord.gg/BDgyabRM6e)
Your AI second brain
[📑 Docs](https://docs.khoj.dev)
•
[🌐 Web](https://khoj.dev)
•
[🔥 App](https://app.khoj.dev)
•
[💬 Discord](https://discord.gg/BDgyabRM6e)
•
[✍🏽 Blog](https://blog.khoj.dev)***
### 🎁 New
* Start any message with `/research` to try out the experimental research mode with Khoj.
* Anyone can now [create custom agents](https://blog.khoj.dev/posts/create-agents-on-khoj/) with tunable personality, tools and knowledge bases.
* [Read](https://blog.khoj.dev/posts/evaluate-khoj-quality/) about Khoj's excellent performance on modern retrieval and reasoning benchmarks.***
## Overview
[Khoj](https://khoj.dev) is a personal AI app to extend your capabilities. It smoothly scales up from an on-device personal AI to a cloud-scale enterprise AI.
- Chat with any local or online LLM (e.g llama3, qwen, gemma, mistral, gpt, claude, gemini, deepseek).
- Get answers from the internet and your docs (including image, pdf, markdown, org-mode, word, notion files).
- Access it from your Browser, Obsidian, Emacs, Desktop, Phone or Whatsapp.
- Create agents with custom knowledge, persona, chat model and tools to take on any role.
- Automate away repetitive research. Get personal newsletters and smart notifications delivered to your inbox.
- Find relevant docs quickly and easily using our advanced semantic search.
- Generate images, talk out loud, play your messages.
- Khoj is open-source, self-hostable. Always.
- Run it privately on [your computer](https://docs.khoj.dev/get-started/setup) or try it on our [cloud app](https://app.khoj.dev).***
## See it in action

Go to https://app.khoj.dev to see Khoj live.
## Full feature list
You can see the full feature list [here](https://docs.khoj.dev/category/features).## Self-Host
To get started with self-hosting Khoj, [read the docs](https://docs.khoj.dev/get-started/setup).
## Enterprise
Khoj is available as a cloud service, on-premises, or as a hybrid solution. To learn more about Khoj Enterprise, [visit our website](https://khoj.dev/teams).
## Frequently Asked Questions (FAQ)
Q: Can I use Khoj without self-hosting?
Yes! You can use Khoj right away at [https://app.khoj.dev](https://app.khoj.dev) — no setup required.
Q: What kinds of documents can Khoj read?
Khoj supports a wide variety: PDFs, Markdown, Notion, Word docs, org-mode files, and more.
Q: How can I make my own agent?
Check out [this blog post](https://blog.khoj.dev/posts/create-agents-on-khoj/) for a step-by-step guide to custom agents.
For more questions, head over to our [Discord](https://discord.gg/BDgyabRM6e)!## Contributors
Cheers to our awesome contributors! 🎉Made with [contrib.rocks](https://contrib.rocks).
### Interested in Contributing?
We are always looking for contributors to help us build new features, improve the project documentation, or fix bugs. If you're interested, please see our [Contributing Guidelines](https://docs.khoj.dev/contributing/development) and check out our [Contributors Project Board](https://github.com/orgs/khoj-ai/projects/4).