Agentic hosting is here. Connect to our MCP now
CloudLinux.ro
Applications

How to install AnythingLLM on a Cloud VPS

Updated 11/29/2026

AnythingLLM is an AI assistant over your own documents: upload PDFs, Word files, web pages or code repositories and it answers from them with cited sources, separate workspaces, agents and team accounts, using your own model provider key.

Running it on your own server keeps your data and API keys with you, with no SaaS usage limits and predictable hourly billing.

One-click install on cloudlinux.ro

The fastest way: AnythingLLM installs automatically at the first boot of a new server.

  1. Create a Cloud VPS from the control panel.
  2. In the configuration step, pick AnythingLLM from the app catalog.
  3. Start the server. The install runs in the background for a few minutes and its status shows on the server page.
  4. Access details and generated passwords are saved on the server in /root/app-credentials.txt.

Manual install on any Ubuntu server

If you prefer doing it yourself, below is the exact script our automatic install runs. Execute it as root on a fresh Ubuntu server (24.04 recommended). It stops at the first error, and when it finishes you will find the access details in /root/app-credentials.txt.

export DEBIAN_FRONTEND=noninteractive
cl_firewall
curl -fsSL https://get.docker.com | sh
apt-get install -y jq
mkdir -p /opt/anythingllm/storage
cd /opt/anythingllm
ADMIN_PASS=$(openssl rand -base64 24 | tr -dc 'A-Za-z0-9' | cut -c1-20)
# The app keeps its settings in this file; the account's EU model endpoint is the default model when set.
: > .env
if cl_ai_configured; then
  {
    printf 'LLM_PROVIDER=generic-openai\n'
    printf 'GENERIC_OPEN_AI_BASE_PATH=%s\n' "$CL_AI_BASE_URL"
    printf 'GENERIC_OPEN_AI_API_KEY=%s\n' "$CL_AI_API_KEY"
    printf 'GENERIC_OPEN_AI_MODEL_PREF=%s\n' "$CL_AI_MODEL"
    printf 'GENERIC_OPEN_AI_MODEL_TOKEN_LIMIT=32000\n'
  } > .env
fi
chmod 600 .env
# The container runs as UID 1000.
chown -R 1000:1000 /opt/anythingllm
cat > docker-compose.yml <<'YML'
services:
  anythingllm:
    image: mintplexlabs/anythingllm:1.20.0
    restart: unless-stopped
    cap_add:
      - SYS_ADMIN
    ports:
      - "127.0.0.1:3001:3001"
    environment:
      STORAGE_DIR: /app/server/storage
    volumes:
      - ./storage:/app/server/storage
      - ./.env:/app/server/.env
YML
docker compose pull
docker compose up -d
for i in $(seq 1 60); do curl -fs -o /dev/null http://127.0.0.1:3001/api/ping && break; sleep 5; done
curl -fs -o /dev/null http://127.0.0.1:3001/api/ping
# Without this the instance is open to anyone: switch to multi-user mode with an admin now.
jq -n --arg p "$ADMIN_PASS" '{username: "admin", password: $p}' \
  | curl -fs -o /dev/null -X POST http://127.0.0.1:3001/api/system/enable-multi-user -H 'Content-Type: application/json' -d @-
curl -fs http://127.0.0.1:3001/api/system/multi-user-mode | jq -e '.multiUserMode == true' >/dev/null
{
  printf 'AnythingLLM: utilizator admin, parola %s\n' "$ADMIN_PASS"
  if cl_ai_configured; then
    printf 'Modelul implicit este endpoint-ul AI din contul tau (%s, modelul %s).\n' "$CL_AI_BASE_URL" "$CL_AI_MODEL"
  else
    printf 'Alege furnizorul de modele si pune cheia ta de API in Settings > AI Providers > LLM.\n'
  fi
  printf 'Colegii se adauga din Settings > Users. Documentele stau in /opt/anythingllm/storage.\n'
  printf 'Actualizare: in /opt/anythingllm schimbi versiunea imaginii in docker-compose.yml, apoi docker compose pull && docker compose up -d\n'
} > /root/app-credentials.txt
cl_expose AnythingLLM 3001

You can also save this script as a recipe in your account and reuse it on any new server.

Put this guide into practice on your own VPS

EU cloud servers, billed hourly, ready in minutes, with one-click installs for dozens of apps.

See pricing

Related tutorials