10 Sentinels Active
SENTINEL 01: [AEGIS] AUDITING POCKETBASE INFRASTRUCTURE...
Back to Self-Hosted Stacks
khoj

Deploy 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.

Quick Start

1

Create a directory

mkdir khoj-self-hosted && cd khoj-self-hosted
2

Create config file

Copy the content from the Config tab below into a file named docker-compose.yml

3

Deploy

docker compose up -d
Fast Track

Deploy khoj in Minutes

Use our optimized Docker templates to deploy khoj on any cloud provider. Get $200 in free credit to start on DigitalOcean.

Start with free creditDeploy on DigitalOcean
$200

Metadata

License
AGPL-3.0
Language
Python
Last Updated
8/2/2026
Category
AI Tools

Configuration

yaml


# -------------------------------------------------------------------------
# ๐Ÿš€ Created and distributed by The AltStack
# ๐ŸŒ https://thealtstack.com
# -------------------------------------------------------------------------

version: '3.8'

services:
  khoj:
    image: khoj/khoj:latest
    container_name: khoj
    restart: unless-stopped
    ports:
      - "8001:8000"
    environment:
      - DATABASE_URL=postgresql://khoj:khoj@db:5432/khoj

  db:
    image: postgres:15-alpine
    container_name: khoj-db
    restart: unless-stopped
    environment:
      - POSTGRES_USER=khoj
      - POSTGRES_PASSWORD=khoj
      - POSTGRES_DB=khoj

Community Notes

Help others by adding context, corrections, or warnings about this tool. Sign in to contribute.

No community notes yet. Be the first to add context.