← All guides

AnythingLLM with Ollama on Proxmox: chat with your own documents (and when Dify fits better)

AnythingLLM turns a local language model into a private assistant for your own documents: upload manuals, notes or PDFs into a workspace and ask questions about them. We run our models in Ollama on an RTX 3090, so AnythingLLM only has to do the document side, which keeps it light.

We tested it on 2026-11-28 in a throwaway Proxmox LXC container with Docker (AnythingLLM 1.20.0, Debian 13), connected to our existing Ollama container with Gemma 4 26B, and deleted it afterwards. One default surprised us, and it matters for privacy: read step 5 before you rely on it. People often compare it with Dify, so the last section says where each fits. We did not install Dify for this guide.

Step 1: a small container for AnythingLLM, the model elsewhere

  1. AnythingLLM does not run the language model. It talks to Ollama, so the GPU and the big memory needs stay with the Ollama container. If you do not have Ollama yet, see our Ollama and Open WebUI guide first.
  2. The AnythingLLM container needs Docker, so in an unprivileged LXC turn on nesting and keyctl. We used 2 cores, 3 GB of RAM and a 20 GB disk on our SSD pool. The image is 3.5 GB.
  3. Ollama must listen on the network, not only on 127.0.0.1. Ours runs with OLLAMA_HOST=0.0.0.0:11434. Check from the new container with curl http://<ollama-ip>:11434/api/tags.

On the Proxmox host, then inside the container

pct create 196 local:vztmpl/debian-13-standard_13.6-1_amd64.tar.zst \
  --hostname anythingllm --cores 2 --memory 3072 --swap 0 \
  --rootfs Samsung-500-gb:20 --unprivileged 1 --features nesting=1,keyctl=1 \
  --net0 name=eth0,bridge=vmbr0,ip=dhcp --onboot 1
pct start 196

# inside the container
apt-get update && apt-get install -y docker.io docker-compose curl
curl -s http://192.168.1.84:11434/api/tags     # your Ollama address

Step 2: compose file and settings

  1. The app runs as user 1000 inside the image, so create the storage folder and an empty .env file first and give them to that user. Without this the container cannot write its database.
  2. The .env file can hold the whole setup. With the provider, model, embedder and vector database set there, the first-run wizard is skipped. We kept the built-in embedder (native) and the built-in LanceDB vector database, so nothing else has to run.
  3. OLLAMA_MODEL_TOKEN_LIMIT is the context size AnythingLLM will use. We set 8192, which fits a normal question plus a few document snippets.

/opt/anythingllm

mkdir -p /opt/anythingllm/storage && cd /opt/anythingllm

cat > storage/.env <<'EOF'
SERVER_PORT=3001
STORAGE_DIR=/app/server/storage
LLM_PROVIDER=ollama
OLLAMA_BASE_PATH=http://192.168.1.84:11434
OLLAMA_MODEL_PREF=gemma4:26b-a4b
OLLAMA_MODEL_TOKEN_LIMIT=8192
EMBEDDING_ENGINE=native
VECTOR_DB=lancedb
DISABLE_TELEMETRY=true
EOF
chown -R 1000:1000 storage

cat > compose.yml <<'EOF'
services:
  anythingllm:
    image: mintplexlabs/anythingllm:latest
    container_name: anythingllm
    restart: unless-stopped
    mem_limit: 2g
    cap_add:
      - SYS_ADMIN
    ports:
      - "3001:3001"
    environment:
      STORAGE_DIR: /app/server/storage
    volumes:
      - ./storage:/app/server/storage
      - ./storage/.env:/app/server/.env
EOF

docker compose up -d
curl -s localhost:3001/api/ping     # {"online":true}

Step 3: first start

  1. It answered 16 seconds after start and used about 480 MB of RAM. Open http://<container-ip>:3001.
  2. The log should show that it found your Ollama models. Ours listed three and picked gemma4:26b-a4b from the .env file.
  3. Create a workspace with the + button. Think of a workspace as one topic with its own documents and chat history.

Step 4: embed a document, the right way

  1. There are two ways to add a file, and they are not the same. The paperclip in the chat box only attaches the file to that conversation (it says Added as context). That works for one-off questions about one file.
  2. To make a document searchable for the whole workspace, use the upload icon next to the workspace name. Upload the file into My Documents, select it, click Move to Workspace, then Save and Embed.
  3. The first embedding downloads the small built-in embedding model, all-MiniLM-L6-v2 (about 23 MB). After that, our one-page document was embedded on the CPU without a noticeable wait (we did not time it), and the vectors are stored in the built-in LanceDB.
  4. Watch which workspace you are in. The upload icon belongs to the workspace on that row. In our test the document first went into a different workspace than the one we were chatting in.

Step 5: switch the workspace from Agent to Query mode

  1. This is the most important step. Since version 1.20 a new workspace starts in Agent mode: the model can call tools, including web browsing and web scraping.
  2. We asked a question whose answer was in our document. In Agent mode the agent first searched its memory, did not find it, and then sent our question to a web search. After a minute it answered that it could not find the information, with websites listed as sources. For a private assistant that is the opposite of what you want.
  3. Open the workspace settings, Chat Settings, and set Chat mode to Query. It saves on click. Query answers only from embedded documents. When nothing relevant is found it says so (There is no relevant information in this workspace) instead of guessing.
  4. In Query mode the same question was answered correctly from our document, with the source listed. There is also a Chat mode between the two, which we did not test. In Query mode you can still call tools on purpose with @agent.

What we measured (2026-11-28, AnythingLLM 1.20.0, Gemma 4 26B on an RTX 3090)

  • AnythingLLM RAM: about 480 MB after start, 300 to 500 MB in our spot checks while embedding and chatting. At the end the whole 3 GB container showed 473 MB used.
  • Disk: 3.5 GB image, 5 GB for the whole container, 25 MB of data after one workspace and one document.
  • First answer: 48 seconds, because Ollama loaded the 18 GB model into the GPU and Gemma thought before answering.
  • Warm answers: 1.1 to 1.8 seconds of generation (69 to 129 tokens per second). After Ollama unloads an idle model, the next question waits about 45 seconds again.
  • Answers: with the file attached to the chat, Agent mode answered two questions correctly. With the document embedded, Query mode answered the third correctly. The one Agent-mode question without the attachment went to a web search and came back without an answer.

AnythingLLM or Dify?

Both come up when people look for a self-hosted ChatGPT for documents, but they aim at different jobs. We have only run AnythingLLM; the Dify notes below are from its documentation, not from our own test.

AnythingLLM is a finished app for people: workspaces, documents, chat. One container, its own embedder and vector database, about half a gigabyte of RAM in our test. It suits a household or a small team that wants to ask questions about its own files.

Dify is a platform for building LLM apps and workflows: you design chatbots, pipelines and agents in a visual editor and publish them as web apps or APIs. Its Docker Compose setup runs many services (API, worker, web, database, Redis, a vector database and a sandbox), so it needs a bigger container. It suits you if you want to build something for others to use, not just chat with your documents.

Our rule of thumb: start with AnythingLLM for private document chat. Move to Dify when you find yourself wanting workflows, multiple apps or an API product.

Security and limits

  • The default single-user setup has no login. Keep it on your LAN, reach it through a VPN such as Tailscale, or turn on multi-user mode with passwords.
  • Check the chat mode of every new workspace. Agent mode can reach the internet through its web tools.
  • The embedding model is downloaded from the internet on first use. Everything after that, including your documents and vectors, stays in the storage folder.
  • Answer quality depends on the model. A small model on a weak GPU will find the right snippet but may phrase or combine it badly.

Apps in this guide

More guides

Get new guides by email

One short email when we publish a new guide or add apps. No spam, unsubscribe any time.

Browse all apps →Read the weekly notes →