repobenchmarks // personal ai assistant
AI TOOLS
$ docker run -p 42110:42110 ghcr.io/khoj-ai/khoj

Khoj: AI Second Brain

An open-source personal AI assistant that indexes your Obsidian notes, Emacs Org-files, PDFs, and web searches with 100% private local execution.

Integrations: Obsidian, Emacs, WhatsApp LLM Engines: Ollama, Anthropic, OpenAI Stars: >15,000
Personal Vault Obsidian / Markdown PDFs & Bookmarks Khoj Server Semantic RAG Local Ollama LLM

Thousands of researchers, writers, and software engineers maintain personal knowledge bases in tools like Obsidian, Logseq, or Emacs. Over years of note-taking, however, finding old insights becomes difficult: simple keyword searches fail when you can't recall the exact wording you used years ago. Khoj acts as an AI second brain that continuously indexes your notes, extracts semantic meaning, and answers complex conversational questions citing your original notes.

Key Features of Khoj

  • Native Obsidian & Emacs Plugins: Rather than forcing you to move your notes into another proprietary cloud database, Khoj runs alongside your existing Markdown vault and integrates into Obsidian as an interactive sidebar assistant.
  • Multi-Modal Search & Speech-to-Text: Khoj can transcribe voice notes locally using Whisper, index images, and synthesize web search results alongside your personal files.
  • Complete Privacy: When configured with Ollama, zero data leaves your local machine. Your notes, queries, and embeddings remain strictly within your network.

Khoj Semantic Search & Citation Flow

Khoj Semantic Search Pipeline Shows user asking a natural language question, Khoj locating relevant note chunks, and the LLM synthesizing answers with direct markdown file citations. User Question "What was my 2024 plan?" Vector Search Embed & Rank Chunks LLM Synthesis Ollama / Claude Citations [[vault/notes.md]]

Docker Compose Deployment

services:
  khoj:
    image: ghcr.io/khoj-ai/khoj:latest
    container_name: khoj
    restart: unless-stopped
    ports:
      - "42110:42110"
    volumes:
      - ./khoj_data:/root/.khoj
      - /path/to/my/obsidian_vault:/vault:ro
    environment:
      - KHOJ_ANONYMOUS_TELEMETRY=false

Khoj vs AnythingLLM vs Obsidian Smart Connections

Capability Khoj AnythingLLM Obsidian Smart Connections
Client Footprint Desktop, Web, Obsidian, Mobile Desktop & Web UI Obsidian Plugin Only
Note Sync Integration Live filesystem watching Manual upload / batch ingestion Live in-app indexing
Autonomous Research Yes (Web Search + Notes) Yes (Agent Workspaces) No (Local notes only)
⚠ Vault Permissions Gotcha: Read-Only Mounting

When mounting your personal notes into the Khoj Docker container, always append the :ro (read-only) volume flag (e.g. -v ~/Documents/Notes:/vault:ro). This guarantees that even during aggressive automated indexing or LLM agent tool execution, the container cannot inadvertently overwrite, reformat, or corrupt your primary markdown files on the host machine.

Explore Khoj at khoj.dev or inspect the project repository on GitHub.