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.
What is Khoj?
Khoj is a free and open-source self-hosted ai & llm tools. It's written mainly in Python and released under the AGPL-3.0 license. The project has 38.2K stars on GitHub and 2.6K forks, and its last commit landed 4 months ago. Our maintenance health score is 77/100 (thriving). It can be deployed with Docker.
How to self-host Khoj
- 1. Get a server. A $5/month VPS or any always-on machine at home works for most single-user setups.
- 2. Install it. Khoj ships Docker images — grab the
docker-compose.ymlfrom the repository and rundocker compose up -d. - 3. Add HTTPS. Put it behind Caddy, Traefik or Nginx Proxy Manager.
- 4. Back up. Schedule backups of its data volume and database — self-hosting means you own recovery too.
Khoj FAQ
Is Khoj free?
Yes. Khoj is open-source (AGPL-3.0), so you can download, self-host and modify it for free. You only pay for the server you run it on.
How do I self-host Khoj?
The quickest route is Docker: Khoj ships container images, so a single docker-compose file on any Linux VPS or home server gets you running. Supported platforms/stacks: Python, Docker. Put it behind a reverse proxy such as Caddy, Traefik or Nginx Proxy Manager for HTTPS, and back up its data volume regularly.
Is Khoj still maintained?
Khoj's last commit was 4 months ago and its latest release (2.0.0-beta.28) shipped 8 months ago. Its health score is 77/100, which we rate as “Thriving”.
What are the best alternatives to Khoj?
Popular alternatives to Khoj include Open-WebUI (★ 159.3K), Onyx Community Edition (★ 33.5K), SurfSense (★ 16.9K), Jan (★ 46K), Utopia (★ 8.7K). Compare them side by side on this page.
Khoj alternatives
All ai & llm tools →User-friendly AI Interface, supports Ollama, OpenAI API.
★ 159.3KSvelteBSD-3-ClauseThrivingChat UI that works with any LLM. It comes loaded with advanced features like agents, web search, RAG, MCP, deep research, Connectors to…
★ 33.5KPythonMITThrivingAir-gapped, privacy-focused, open-source NotebookLM alternative. AI agent that researches, transforms, and edits your documents. Join our…
★ 16.9KPythonApache-2.0ThrivingJan is an open source alternative to ChatGPT that runs 100% offline on your computer.
★ 46KRustThrivingPrivacy-first AI meeting note taker for Windows, macOS and Linux. Free, open source (MIT). On-device Whisper/Parakeet transcription and…
★ 33KRustMITThrivingKortix CompanyOS – the open-source operating system for your company. Multiplayer AI agents, your company as code, sovereign on your…
★ 20.8KTypeScriptThrivingLocal UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
★ 80KPythonApache-2.0ThrivingAll-in-one desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
★ 68.5KJavaScriptMITThriving