Khoj
Your AI second brain. 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.
- AI & LLM Tools
- Python
- AGPL-3.0
- Docker
- Actively maintained
GitHub stats
- GitHub stars
- 37,565
- Forks
- 2,497
- Open issues
- 107
- Commits, last 12 months
- 120
- Last commit
- Aug 2, 2026
- Latest release
- 2.0.0-beta.28Mar 26, 2026
- Created
- Aug 16, 2021
Data from the GitHub API, refreshed daily.
About Khoj
Your AI second brain. 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. Khoj is open source under the AGPL-3.0 license and written mainly in Python, so you can read the code, run it on your own hardware and keep full control of your data.
The project has 37,565 stars and 2,497 forks on GitHub, with 120 commits over the last year. It ships a Docker image, which makes it a good fit for a small VPS or a home server running Docker Compose.
Topics
- semantic-search
- emacs
- obsidian-md
- chat
- chatgpt
- ai
- llm
- productivity
- agent
- self-hosted
Open-source alternative to
Khoj can replace these commercial products. Compare every option on each page.
Repository preview
Similar apps
More apps like Khoj
Other projects in AI & LLM Tools, ranked by GitHub stars.
Ollama
ollama/ollama
Get up and running with Llama 3.3, DeepSeek-R1, Phi-4, Gemma 3, and other large language models.
AI & LLM ToolsGoDockerStable Diffusion WebUI
AUTOMATIC1111/stable-diffusion-webui
Browser interface for Stable Diffusion image generation.
AI & LLM ToolsPythonLangflow
langflow-ai/langflow
Visual framework for building and deploying AI agents and RAG workflows.
AI & LLM ToolsPythonDockerOpen-WebUI
open-webui/open-webui
User-friendly AI Interface, supports Ollama, OpenAI API.
AI & LLM ToolsPythonDockerComfyUI
Comfy-Org/ComfyUI
Node-based interface and engine for diffusion image and video generation.
AI & LLM ToolsPythonRAGFlow
infiniflow/ragflow
Open-source RAG engine with deep document understanding.
AI & LLM ToolsGoDocker
What is Khoj?
Khoj is a free, open-source app you can host on your own server, listed in our AI & LLM Tools category. Your AI second brain. 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. The source code lives at github.com/khoj-ai/khoj, where it has 37,565 stars.
Is Khoj free and open source?
Yes. Khoj is open-source software released under the AGPL-3.0 license, so you can self-host it at no cost. You only pay for the server it runs on, and some projects also offer an optional paid cloud plan.
Can I run Khoj with Docker?
Yes. Khoj provides a Docker image, so you can run it on any Linux server with Docker and Docker Compose installed. The project README lists the image name and the environment variables to set.
What are the best alternatives to Khoj?
Popular open-source alternatives to Khoj include Ollama, Stable Diffusion WebUI and Langflow. Khoj itself is a self-hosted alternative to ChatGPT.
Is Khoj actively maintained?
The most recent commit to Khoj was on Aug 2, 2026 with 120 commits in the past twelve months. The latest release is 2.0.0-beta.28, published Mar 26, 2026. Check the open issues on GitHub to gauge how quickly maintainers respond.