DockerSelf-HostingAI

kotaemon with Docker and Ollama: chat with your PDFs, privately (Linux, Windows, Mac)

Before you start

  • 20 min read

Boxes marked Run in terminal are what you type; plain text explains why. Check what you need first

What you get in one minute#

kotaemon is a free, open-source web app where you upload PDFs and ask questions in plain language. Each answer comes with citations, and the cited passage is highlighted in an in-browser PDF viewer.

kotaemon official logo (the app icon)

Logo: the app icon from the official kotaemon project (github.com/Cinnamon/kotaemon, favicon.svg at tag v0.12.0)

It suits a home lab where you want to check an answer against its source page. Two honest notes first. The latest release, v0.12.0, is from May 2026, and the repository has had no commit since. Two security reports are open and unfixed. So this is a private evaluation: the app stays on your computer and the models stay local.

WhatValue (official sources, read November 2026)
Current versionv0.12.0, released 31 May 2026. Before it: v0.11.3, March 2026
Image we pinghcr.io/cinnamon/kotaemon:main-lite@sha256:29cffbc1... (the v0.12.0 build, see Step 1)
Time neededAbout 30 to 45 minutes, mostly downloads (our estimate)
SizeApp image about 5.2 GB; chat model 4.7 GB; embedding model 274 MB
PortsTCP 7860 (web page). Ollama uses 11434 inside Docker only
LicenceApache-2.0 (LICENSE.txt at the release tag). No paid edition found
Official docsUser guide and the README at v0.12.0

Screenshot of the kotaemon Chat tab in dark mode: a conversation list on the left with a File Index selector, a question and an answer in the middle, and an Information panel on the right

Image: the official kotaemon project (docs image at v0.12.0, "Chat tab" screenshot). It is an older screenshot, dated April 2024; the current screen has more options.

At a glance:

  • What it is: one Python app (built with Gradio, a toolkit for web pages) plus a model server you choose.
  • Not private by default: the stock defaults point at cloud services. Step 3 changes that.
  • Status: not archived, not renamed, but quiet, with two open security reports.
  • Image: no 0.12.0 tag exists, so we pin by digest.

How it fits together#

You open the page in a browser. kotaemon stores files and indexes in one folder and asks Ollama (a program that runs AI models) for embeddings and answers.

Diagram: you in a browser reach the kotaemon container on port 7860, optionally through Caddy or Traefik with a login; kotaemon reads and writes SQLite, your uploaded files and a search index in one data folder, and calls an Ollama container for the chat and embedding models, or cloud APIs only if you pick them

Drawn for this guide from the official README, Dockerfile and flowsettings.py at v0.12.0. The dashed boxes are optional.

The data folder /app/ktem_app_data holds user_data/sql.db (users, settings, the model list), user_data/files (your PDFs), user_data/docstore (LanceDB, for text search) and user_data/vectorstore (Chroma, for meaning search).

Before you start#

The project gives no RAM or CPU minimum. Its README says to pick a model smaller than your free memory and leave about 2 GB. Our 4.7 GB chat model therefore needs about 7 GB free, plus the app (our arithmetic).

Linux: amd64 or arm64 with a current Docker Engine and the Compose plugin.

Run in terminalbash
docker --version
docker compose version
uname -m
df -h ~

Windows: Windows 10 or 11 with Docker Desktop (WSL 2 backend). Use Linux containers.

Run in terminalpowershell
docker --version
docker compose version
Get-PSDrive C

Mac: Intel or Apple Silicon with Docker Desktop. The README says Docker images are tested on linux/amd64 and linux/arm64 ("for newer Mac").

Run in terminalbash
docker --version
docker compose version
df -h ~

Our stack runs the models on the CPU. For a GPU, run Ollama natively on your computer and point kotaemon at it (see Performance).

  • [ ] Docker and Compose print version numbers
  • [ ] About 20 GB free disk (our estimate: images plus two models)
  • [ ] Port 7860 free (ss -ltn on Linux, netstat -ano on Windows)
  • [ ] A short, text-based test PDF with nothing secret in it

Tested by DIY Lab Hub: not yet. The commands come from the official README, Dockerfile, flowsettings.py and docs at tag v0.12.0, and from the container registry. We did not run them.

Step 1: Create the folders and the Compose file#

kotaemon has no official Compose file, so we translate the README's docker run command. The README uses a moving tag, so we need a safer pin.

What we found in the registry: there is no 0.12.0 tag, and latest and latest-lite still point at v0.11.0 from July 2025. The tag main-lite was built from the v0.12.0 release commit (9ad3e4e). So we pin its digest, a fingerprint that never changes. We use the lite image because the README says it "should work well in most cases".

Linux#

First replace <choose-a-long-password> with your own password (no $ sign), then paste:

Run in terminalbash
mkdir -p ~/docker_volumes/kotaemon/{data,ollama,backups}
cd ~/docker_volumes/kotaemon
cat > .env << 'EOF'
KOTAEMON_ADMIN_PASSWORD=<choose-a-long-password>
EOF
chmod 600 .env
cat > docker-compose.yml << 'EOF'
services:
  kotaemon:
    image: ghcr.io/cinnamon/kotaemon:main-lite@sha256:29cffbc182dda9631b8f54f382c5711eac405ca2a2f1e8958c1da64f9f144208
    container_name: kotaemon
    restart: unless-stopped
    ports:
      - "127.0.0.1:7860:7860"
    volumes:
      - ./data:/app/ktem_app_data
    environment:
      GRADIO_SERVER_NAME: "0.0.0.0"
      GRADIO_SERVER_PORT: "7860"
      KH_OLLAMA_URL: "http://ollama:11434/v1/"
      KH_GRADIO_SHARE: "false"
      GRADIO_ANALYTICS_ENABLED: "False"
      ANONYMIZED_TELEMETRY: "FALSE"
      KH_FEATURE_USER_MANAGEMENT_PASSWORD: "${KOTAEMON_ADMIN_PASSWORD:?set a password in .env}"
    depends_on:
      - ollama
  ollama:
    image: ollama/ollama:0.40.18
    container_name: ollama
    restart: unless-stopped
    volumes:
      - ./ollama:/root/.ollama
EOF
docker compose config -q

KH_FEATURE_USER_MANAGEMENT_PASSWORD is the first admin password in the official flowsettings.py. We did not verify that it changes an existing admin, so Step 3 also sets it in the page.

Windows (PowerShell)#

Same password rule, then paste:

Codepowershell
New-Item -ItemType Directory -Force "$HOME\docker_volumes\kotaemon\data","$HOME\docker_volumes\kotaemon\ollama","$HOME\docker_volumes\kotaemon\backups" | Out-Null
Set-Location "$HOME\docker_volumes\kotaemon"
Set-Content -Encoding ascii .env "KOTAEMON_ADMIN_PASSWORD=<choose-a-long-password>"
@'
services:
  kotaemon:
    image: ghcr.io/cinnamon/kotaemon:main-lite@sha256:29cffbc182dda9631b8f54f382c5711eac405ca2a2f1e8958c1da64f9f144208
    container_name: kotaemon
    restart: unless-stopped
    ports:
      - "127.0.0.1:7860:7860"
    volumes:
      - ./data:/app/ktem_app_data
    environment:
      GRADIO_SERVER_NAME: "0.0.0.0"
      GRADIO_SERVER_PORT: "7860"
      KH_OLLAMA_URL: "http://ollama:11434/v1/"
      KH_GRADIO_SHARE: "false"
      GRADIO_ANALYTICS_ENABLED: "False"
      ANONYMIZED_TELEMETRY: "FALSE"
      KH_FEATURE_USER_MANAGEMENT_PASSWORD: "${KOTAEMON_ADMIN_PASSWORD:?set a password in .env}"
    depends_on:
      - ollama
  ollama:
    image: ollama/ollama:0.40.18
    container_name: ollama
    restart: unless-stopped
    volumes:
      - ./ollama:/root/.ollama
'@ | Set-Content -Encoding ascii docker-compose.yml
docker compose config -q

Mac (Terminal)#

Same commands as Linux.

Check it worked. docker compose config -q prints nothing. The folder holds .env, docker-compose.yml, data, ollama and backups. If .env is empty, Compose stops with set a password in .env.

Tip: main-lite is a moving tag. With tag@sha256:... Docker uses the digest and ignores the tag, so a later push to the repository cannot change your image.

Step 2: Start the stack and pull two models#

You need two models. A chat model (an LLM) writes the answers. An embedding model turns text into searchable numbers. We use qwen2.5:7b (4.7 GB, the default in the official .env.example) and nomic-embed-text (274 MB).

Linux#

Run in terminalbash
cd ~/docker_volumes/kotaemon
docker compose pull
docker compose up -d
docker compose exec ollama ollama pull qwen2.5:7b
docker compose exec ollama ollama pull nomic-embed-text
docker compose exec ollama ollama list
docker compose logs kotaemon --tail 30

Windows (PowerShell)#

Codepowershell
Set-Location "$HOME\docker_volumes\kotaemon"
docker compose pull
docker compose up -d
docker compose exec ollama ollama pull qwen2.5:7b
docker compose exec ollama ollama pull nomic-embed-text
docker compose exec ollama ollama list
docker compose logs kotaemon --tail 30

Mac (Terminal)#

Same commands as Linux.

Check it worked. ollama list shows both models. The kotaemon log ends with lines like these (taken from a user report in issue 787):

Codetext
User "admin" created successfully
Setting up quick upload event
Running on local URL:  http://0.0.0.0:7860

Near the top you will see /app/launch.sh: 20: ollama: not found. Ignore it. The start script always runs ollama serve &, and the lite image has no Ollama program.

Tip: The 5 GB image download looks like a hang. Run docker compose pull on its own first and wait for it to finish.

Step 3: Sign in, set a password, and make the defaults local#

The page is at http://127.0.0.1:7860. Sign in as admin with the password from .env. If that fails, the account may already have existed, so try the documented default admin / admin.

The first-setup wizard only appears when the data folder did not exist at start (or with KH_FIRST_SETUP=true). We created data, so there is none. The image ships a .env with LOCAL_MODEL=qwen2.5:7b, so kotaemon already lists an ollama chat entry and an ollama embedding entry that point at KH_OLLAMA_URL.

Do not skip this: the stock defaults are cloud services. The default reranker (a model that re-sorts search hits) is Cohere. Without an OpenAI key, the default chat and embedding models are Google's. Until you change them, the setup is not local.

Linux#

  1. Open Settings, then User settings. Set a new admin password. It needs 8 or more characters with upper case, lower case, a digit and a special character.
  2. Open Resources, then LLMs. Click the ollama row. Check that the spec reads base_url: http://ollama:11434/v1/ and model: qwen2.5:7b. Tick Set default and save.
  3. Open Resources, then Embeddings. Select ollama (model nomic-embed-text). Tick Set default and save.
  4. Open Resources, then Index Collections, and set the File Collection's embedding model to ollama.
  5. Open Settings, then Retrieval settings. Untick Use reranking (this is the Cohere cloud reranker). Untick Use LLM relevant scoring, or choose ollama for it.

Windows (PowerShell)#

Same clicks in your browser. Nothing to type in PowerShell.

Mac (Terminal)#

Same clicks in your browser.

Check it worked. In Resources, the ollama rows show default: true for LLMs and Embeddings. In Retrieval settings, reranking is off and relevance scoring is off or set to ollama. If a test shows Connection error., see Troubleshooting.

Screenshot of the kotaemon Resources tab, Embeddings sub-tab: a table with azure, openai, ollama and local-bge-en rows, and the ollama specification showing base_url http://localhost:11434/v1/ and model nomic-embed-text

Image: the official kotaemon project (docs image at v0.12.0, "Models" screenshot). It is from 2024. In our Docker setup the address is http://ollama:11434/v1/, not localhost.

Tip: Documents you indexed before changing the collection's embedding model used the old one. Upload them again.

Tip: Changing .env later does nothing for models that are already stored. The README says the file only fills the database once, on the first run. Change models in the Resources tab.

Step 4: Upload a PDF and ask a question#

The lite image reads .pdf, .html, .mhtml and .xlsx. The README says other types, such as .docx, need the Unstructured package, which the full image includes.

Linux#

  1. Open the File Index tab. Drop in a short text-based PDF and click Upload and Index.
  2. Wait until the file appears in the list.
  3. Open the Chat tab. Under File Index, choose Select and pick your file.
  4. Ask a question with a clear answer in that PDF.

Windows (PowerShell)#

Same clicks in your browser.

Mac (Terminal)#

Same clicks in your browser.

Check it worked. The answer streams in, and the Information panel on the right shows the cited passages with relevance scores. Click a citation to see it highlighted in the PDF viewer. On a CPU the first answer can take minutes.

Screenshot of the kotaemon File Index tab: a Drop File Here upload box, the supported file types, an Upload and Index button, and a list of indexed files with id, name, size and date

Image: the official kotaemon project (docs image at v0.12.0, "File Index" screenshot). It is older and lists fewer file types than v0.12.0.

Tip: Test with a 2-page PDF first. If citations show, a 200-page manual is only a matter of waiting.

Step 5: Optional: GraphRAG and other file readers#

GraphRAG builds a map of people, things and links across your documents instead of only matching text chunks. It makes many model calls, which is slow on a CPU. Start with the normal File Collection.

OptionWhat to know
LightRAGUSE_LIGHTRAG is True by default. The full image installs it; lite does not
NanoGraphRAGThe README recommends it. It needs pip install nano-graphrag and USE_NANO_GRAPHRAG=true (not tested by us in the image)
Docling, PaddleOCRLocal readers for scans and tables (Settings, Retrieval settings, File loader). PaddleOCR's Docker target is GPU-only. Azure and Adobe readers send your files to the cloud

To try the full image, replace the image: line with the digest below (the v0.12.0 build, about 6 GB):

Codetext
ghcr.io/cinnamon/kotaemon:main-full@sha256:cb4b71561e529398bacdf12f1289c32290f6c70f286b8efb7a1ed7e66d089b66

Linux#

Run in terminalbash
cd ~/docker_volumes/kotaemon
docker compose up -d

Windows (PowerShell)#

Codepowershell
Set-Location "$HOME\docker_volumes\kotaemon"
docker compose up -d

Mac (Terminal)#

Same commands as Linux.

Check it worked. Extra collections such as "LightRAG Collection" appear in the File Index tab. Our LightRAG guide explains graph RAG.

Put it behind HTTPS (with or without Traefik)#

This section is optional. It is for a server on a private network with a name such as kotaemon.<your-domain>. Keep it to trusted devices or a VPN. Never open it to the internet, and never use a Cloudflare Tunnel for it.

Both routes add a password at the proxy. Issue 844 says kotaemon's own login only hides the tabs. A login at the proxy guards every path, so it helps, but it is a mitigation, not a fix. Use a host name, not a sub-path: GRADIO_ROOT_PATH breaks the PDF preview (issue 563).

Run in terminalbash
docker network create proxy

With Traefik#

On a server that already runs Traefik v3 (v3.8.0 was the latest when we checked), edit the kotaemon service. Remove its ports: block and add this. We assume an entrypoint named https; use yours:

File contentyaml
    networks:
      - default
      - proxy
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=proxy"
      - "traefik.http.routers.kotaemon.rule=Host(`kotaemon.<your-domain>`)"
      - "traefik.http.routers.kotaemon.entrypoints=https"
      - "traefik.http.routers.kotaemon.tls=true"
      - "traefik.http.routers.kotaemon.middlewares=kotaemon-auth"
      - "traefik.http.services.kotaemon.loadbalancer.server.port=7860"
      - "traefik.http.middlewares.kotaemon-auth.basicauth.users=<user>:<hash with every dollar sign doubled>"

Add the proxy network at the end of the file (external: true). Add your own certificate resolver label if your Traefik uses one. Make the hash with htpasswd -nB <user>; Traefik's docs say to double each $ inside a Compose file. Then run docker compose up -d.

Check it worked. curl -I https://kotaemon.<your-domain>/ returns 401. Adding -u <user> (curl asks for the password) returns 200. On Windows use curl.exe.

Without Traefik: Caddy#

Caddy gets certificates by itself and passes WebSockets through. Its basic_auth directive needs a hashed password (called basicauth before Caddy 2.8).

Create the Caddy folders. Mount the conf folder, not a single file:

Run in terminalbash
mkdir -p ~/docker_volumes/caddy/{conf,data,config}
docker run --rm -it caddy:2.11.9 caddy hash-password

Save ~/docker_volumes/caddy/conf/Caddyfile. Add tls internal for a home-only name; Caddy then makes its own local certificate:

File contenttext
kotaemon.<your-domain> {
    basic_auth {
        <user> <hash from caddy hash-password>
    }
    reverse_proxy kotaemon:7860
}

In the kotaemon service, remove the ports: block and join the external proxy network (the networks: lines in the Traefik example). Then save ~/docker_volumes/caddy/docker-compose.yml:

File contentyaml
services:
  caddy:
    image: caddy:2.11.9
    container_name: caddy
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./conf:/etc/caddy
      - ./data:/data
      - ./config:/config
    networks:
      - proxy
networks:
  proxy:
    external: true

Start both stacks with docker compose up -d in each folder. For tls internal, copy Caddy's root certificate and trust it on each device:

Run in terminalbash
docker cp caddy:/data/caddy/pki/authorities/local/root.crt ./caddy-root.crt
  • Linux: copy it to /usr/local/share/ca-certificates/caddy-root.crt and run sudo update-ca-certificates.
  • Windows: Import-Certificate -FilePath .\caddy-root.crt -CertStoreLocation Cert:\CurrentUser\Root.
  • Mac: sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain caddy-root.crt.

Check it worked. curl -I https://kotaemon.<your-domain>/ returns 401, and 200 with -u <user>. Basic auth is not safe over plain HTTP, so never skip the certificate.

Tip: After the proxy works, test a chat answer and a PDF preview, not just the login. If the page loads but answers stall, look for 401 errors on the /gradio_api requests in your browser's developer tools.

Security and testing#

Anyone who can reach the page can try to attack it. Treat v0.12.0 accordingly.

Open reports, November 2026:

  • Issue 844 (June 2026, open): an outside reporter claims remote code execution without a login. Gradio event routes can be called without signing in, and the model "test connection" code runs deserialize(..., safe=False) on user text. That code is in v0.12.0. We did not reproduce the exploit, and the 10.0 score is the reporter's own.
  • Issue 846 and CVE-2026-82281 (published August 2026): through 0.12.0, conversation functions do not check who owns a conversation. A logged-in user can read, rename or delete other users' chats (CVSS 3.1: 7.4; CVSS 4.0: 9.1). No maintainer reply and no fixed release when we checked.
ControlHow
Local onlyKeep 127.0.0.1:7860:7860. Never forward the port on your router
One userDo not share an instance with people you do not trust (the CVE)
Proxy loginNeeded for any access beyond this computer (see HTTPS)
Admin passwordChange admin. Passwords are stored as plain SHA-256 hashes without a salt (the user.py source), so protect sql.db
Sign-upUsers are added by an admin under Resources, Users. We found no switch for public sign-up
No Docker socketThe official example does not mount it. Do not add it
What leavesCloud embedding, chat or reranker models get your chunks, questions and passages; Azure or Adobe readers get whole files. Local Ollama sends nothing out except model downloads
SecretsAPI keys typed in Resources are stored in sql.db. Back it up carefully
TelemetryChroma telemetry is on by default (a user log shows Anonymized telemetry enabled.). Our file turns it and Gradio analytics off. We did not verify that this stops all outgoing traffic

Quick tests on Linux or Mac (on Windows use curl.exe or Invoke-WebRequest):

Run in terminalbash
cd ~/docker_volumes/kotaemon
docker compose ps
docker compose logs kotaemon --tail=50
curl -I http://127.0.0.1:7860/

There is no health endpoint. docker compose ps should show 127.0.0.1:7860->7860/tcp.

Kotaemon or something else?#

ToolGood atWatch out for
kotaemonHighlighted PDF citations; one data folderQuiet project; open security reports; cloud defaults
RAGFlowMessy scans and tables. Our guideLarger stack; official start is 16 GB RAM
AnythingLLMA gentle start. Our guideFewer retrieval controls
Open WebUIChat with documents. Our guideSimpler citations

Common mistakes#

MistakeWhy it happensDo this instead
Pulling latest or latest-lite and thinking it is v0.12.0In the registry both are the same image as 0.11.0-lite, from July 2025Pin the digest from Step 1
Expecting the first-setup wizardIt only shows when the data folder did not exist at startUse the Resources tab, or add KH_FIRST_SETUP=true
Thinking "I chose Ollama, so it is private"The stock defaults are Cohere for reranking and Google for chat and embeddingsDo Step 3 in full: LLM, embeddings, collection embedding, reranking
Editing .env and seeing no changeThe README: the file only fills the database on the first runEdit models in the Resources tab
Indexing fails while chat works (issue 143)Indexing uses the embedding model, which was still set to a cloud providerSet ollama as the collection embedding model
Removing /v1/ from the Ollama address (issue 797)The reporter thought Ollama has no /v1/chat/completions. It does: kotaemon deliberately uses Ollama's OpenAI-compatible APIKeep http://ollama:11434/v1/
Host Ollama refuses the container (Linux)Ollama listens on 127.0.0.1 only by default. In issue 224 one user needed the host IP and OLLAMA_HOST=0.0.0.0:11434Keep Ollama in Compose as we do, or open it only to that host, behind a firewall
Serving it at /kotaemonGRADIO_ROOT_PATH breaks the file preview (issue 563)Use a host name at /
Running the Windows ZIP installerv0.12.0's run_windows.bat printed "Script completed successfully." after a failed install (issue 866)Use Docker, as here
AI assistants: invented tags, files and settingsTypical wrong answers: an image tag 0.12.0, an official docker-compose.yml (the repo has none), PostgreSQL or Redis, port 8000 (that is the llama-cpp example), removing /v1/, LOCAL_MODEL as a GGUF path (old docs), a switch to disable sign-upCopy only from the README, flowsettings.py and registry at the tag you pin

Tip: The docs show http://localhost:11434/v1/. Inside a container localhost is the container itself, so our Compose file uses http://ollama:11434/v1/.

Tip: Old guides pull llama3.1:8b. The model name in Resources must match ollama list exactly, or you get model not found or a 400 error.

Troubleshooting#

ProblemSolution
Page does not opendocker compose ps and docker compose logs kotaemon --tail 50. Look for Running on local URL
Upload ends in RetryError or a 404Check the embedding model, the collection setting, and the /v1/ address (issues 148, 688)
Answers take minutesNormal on a CPU. Turn LLM relevance scoring off; try qwen2.5:1.5b (986 MB)

Connection error.#

kotaemon cannot reach the model address. In our stack it must be http://ollama:11434/v1/. Check that Ollama is up:

Run in terminalbash
docker compose exec ollama ollama list
docker compose logs ollama --tail 50

Error code: 400 - {'error': {'message': 'unexpected EOF'...#

Reported in issue 224. The reporter fixed it by changing llama3.1:8b to llama3.1:latest. Make the model name match ollama list, and check that the model fits in memory.

model "llama3.1:8b" not found, try pulling it first#

From a user report: the model in Resources was never pulled. Our guide uses qwen2.5:7b. Pull the model you typed, or change the name:

Run in terminalbash
docker compose exec ollama ollama pull <model-name>

ModuleNotFoundError: No module named 'theflow'#

Seen after the Windows v0.12.0 ZIP install (issue 866): a pip install ran over 30 minutes and was never checked. Re-running says "Dependencies are already installed" and does not repair it. Use Docker.

ImportError: cannot import name 'HfFolder' from 'huggingface_hub'#

Reported on a Windows install (issue 833): a package-version clash. The pinned image avoids it.

Known bugs (open, November 2026)#

  • Issues 844 and 846 and CVE-2026-82281: see "Security and testing". Workaround: local only, one user, proxy login.
  • Issue 143: upload and indexing errors, 46 comments. Workaround: local embeddings everywhere.
  • Issue 866: the Windows ZIP installer (see theflow above). Workaround: Docker.

Updates and backups#

There is no release newer than v0.12.0. Watch the releases page for a security fix. Our update steps (there is no official Docker guide): read the release notes, back up, change the digest, run docker compose up -d, and test sign-in, a model test and one cited answer.

Stored settings can need hand changes: v0.11.3 changed the default Cohere reranker to rerank-v4.0-fast, and a stored rerank-multilingual-v2.0 must be edited. There is no downgrade guide and no database dump command. The README names the data folder as the unit to back up or move. Stop the app first so SQLite and the indexes are closed. ollama/ can be downloaded again.

Linux#

Run in terminalbash
cd ~/docker_volumes/kotaemon
cat > backup.sh << 'EOF'
#!/bin/bash
cd ~/docker_volumes/kotaemon || exit 1
docker compose stop kotaemon
tar -czf backups/kotaemon-data-$(date +%F).tar.gz data
chmod 600 backups/kotaemon-data-*.tar.gz
docker compose start kotaemon
EOF
chmod +x backup.sh
./backup.sh
crontab -e

In the editor that opens, add this line (03:00 every day) with your real home path:

File contenttext
0 3 * * * /home/<your-user>/docker_volumes/kotaemon/backup.sh

Windows (PowerShell)#

Windows 10 and 11 include tar.exe. We use it because Compress-Archive limits files to 2 GB (Microsoft Learn).

Codepowershell
Set-Location "$HOME\docker_volumes\kotaemon"
docker compose stop kotaemon
tar.exe -czf ".\backups\kotaemon-data-$(Get-Date -Format yyyy-MM-dd).tar.gz" data
docker compose start kotaemon

Schedule it at 03:00 with Task Scheduler (Docker Desktop must be running):

Codepowershell
$cmd = 'Set-Location $HOME\docker_volumes\kotaemon; docker compose stop kotaemon; tar.exe -czf ".\backups\kotaemon-data-$(Get-Date -Format yyyy-MM-dd).tar.gz" data; docker compose start kotaemon'
$action = New-ScheduledTaskAction -Execute "powershell.exe" -Argument "-NoProfile -WindowStyle Hidden -Command `"$cmd`""
Register-ScheduledTask -TaskName "KotaemonBackup" -Action $action -Trigger (New-ScheduledTaskTrigger -Daily -At 3:00AM)

Mac (Terminal)#

Same commands as Linux. Use cron as shown, or a launchd job.

Restore test#

A backup you never restored is a guess. Try it once:

Run in terminalbash
cd ~/docker_volumes/kotaemon
docker compose stop kotaemon
mv data data.old
tar -xzf backups/kotaemon-data-<date>.tar.gz
docker compose start kotaemon

On Windows use tar.exe -xzf .\backups\kotaemon-data-<date>.tar.gz. Open the page. Your users, files and chats should be there. Then delete data.old.

Performance and resources#

The project publishes no RAM, CPU or speed figures, and we measured none. Run docker stats while you index a file and while an answer is written.

What helps on a slow machine:

  • Untick Use LLM relevant scoring. The docs offer this for machines that cannot handle many parallel model requests. The .env switch USE_LOW_LLM_REQUESTS turns it off by default.
  • Use the normal File Collection before graph indexes, and a smaller chat model such as qwen2.5:1.5b (986 MB, Ollama library).
  • For a GPU, install Ollama on the host and set KH_OLLAMA_URL to http://host.docker.internal:11434/v1/. On Linux, that needs Ollama listening where the container can reach it (see Common mistakes).

FAQ#

Is kotaemon abandoned? Not archived, not renamed. But v0.12.0 is from 31 May 2026, the newest commit is a day older, and 268 issues are open.

Is it free? Yes, under Apache-2.0. We found no paid edition.

Is it safe to share with my team or put on the internet? No, not as it stands. See the security reports. Local, one user, with a proxy login for anything else.

Can I use Ollama on my host instead? Yes. Remove the ollama service and set KH_OLLAMA_URL to the host address. On Linux, Ollama must listen where the container can reach it.

Does it send my data anywhere? Only to the providers you select, plus model downloads and Chroma telemetry unless you switch it off.

Can it use llama.cpp or vLLM? The docs show a llama-cpp-python server for chat only; you still need an embedding model. We found no official vLLM recipe.

Sources#

Checked against the official docs on 2026-11-21.