Skip to main content
Khoj Logo

Your AI Second Brain

Khoj is an open-source personal AI that helps you extend your capabilities. It smoothly scales from an on-device personal AI to a cloud-scale enterprise solution.

Try Khoj Cloud

Get started instantly with our cloud service

Self-Host

Run Khoj privately on your own hardware

Explore Features

Discover what Khoj can do for you

API Reference

Integrate Khoj into your workflow

Key Features

AI Chat

Chat with any local or online LLM (llama3, qwen, gemma, mistral, gpt, claude, gemini, deepseek)

Smart Search

Get answers from the internet and your docs using advanced semantic search

Custom Agents

Create agents with custom knowledge, persona, chat model and tools for any role

Research Automation

Automate repetitive research and get smart notifications delivered to your inbox

Multi-Modal

Generate images, use voice chat, and work with multiple file formats

Cross-Platform

Access from Browser, Obsidian, Emacs, Desktop, Phone or WhatsApp

What Makes Khoj Different?

Khoj is fully open-source under AGPL-3.0 license. Run it privately on your computer or use our cloud service. Your data, your choice.
Supports images, PDFs, markdown, org-mode, Word docs, Notion pages, and GitHub repositories. Khoj understands your documents and uses them to provide contextual answers.
Use any local or online LLM. Compatible with OpenAI, Anthropic, Google, or local models via Ollama, LiteLLM, and LM Studio.
Self-hosting ensures your data never leaves your machine. All search and indexing happens locally when you self-host.

Quickstart

Get up and running in minutes

Features

Explore all capabilities

Clients

Choose your interface

Data Sources

Connect your data

API Documentation

Integrate programmatically

Contributing

Join the community

Community & Support

Join our thriving community of developers and users:
  • Discord: Get help and share ideas on our Discord server
  • GitHub: Contribute to the project on GitHub
  • Blog: Read about new features and updates on our blog
Khoj has excellent performance on modern retrieval and reasoning benchmarks. Read more about our evaluation results.

Build docs developers (and LLMs) love