Deployment guide

AnythingLLM

Overview

AnythingLLM is an all-in-one AI application from Mintplex Labs. It lets you chat with your documents using retrieval-augmented generation (RAG), organise conversations into workspaces, and share access across a team with full multi-user controls. It bundles a built-in vector database (LanceDB) and a SQLite metadata store, and it connects to the large language model (LLM) provider of your choice: OpenAI, Anthropic or a local Ollama.

The SecureAnyCloud image installs AnythingLLM 1.14.1 on Node.js 20 LTS and runs the server and document collector as systemd services behind an nginx reverse proxy on port 80. It stores the database, vector store and uploads on a dedicated Azure data disk, and it generates all application secrets plus a unique admin user on the first boot of every VM.

What you get:

  • AnythingLLM 1.14.1 on Node.js 20 LTS, served on port 80 via nginx
  • The built-in LanceDB vector store and SQLite database on a dedicated Azure data disk at /var/lib/anythingllm
  • Multi-user mode enabled with a unique admin user generated on first boot
  • WebSocket-aware reverse proxy and a 1 GB upload limit for document ingestion
  • anythingllm.service, anythingllm-collector.service and nginx.service as systemd units, enabled and active
  • 24/7 SecureAnyCloud support

The image ships AnythingLLM running and ready. The application and admin panel are fully functional out of the box. Chat needs an LLM provider, which you supply on first use (see Step 7). No LLM provider or API key is preset.

Prerequisites

You need an active Azure subscription, an SSH key pair, and a VNet with a subnet in the target region.

Standard_B4ms (4 vCPU / 16 GiB RAM) is a good starting size for an AI workload. Configure the network security group (NSG) to allow inbound 22/tcp from your management network and 80/tcp for the web application. For public exposure, front the application with TLS (see Step 10).

Step 1 - Deploy from the Azure Marketplace

Sign in to the Azure Portal, choose Create a resource, search the Marketplace for AnythingLLM by SecureAnyCloud, and select Create.

On the Basics tab, pick your subscription, resource group, region and size. Under Administrator account, choose SSH public key and paste your key. Under Inbound port rules, allow SSH (22) and HTTP (80).

Review the dedicated data disk on the Disks tab, then select Review + create and Create.

Step 2 - Deploy from the Azure CLI

# Accept the Marketplace terms once per subscription (required before the first CLI deploy)
az vm image terms accept --urn sac1647283583153:anythingllm-ubuntu-24-04:default:latest
az vm create \
  --resource-group <your-rg> \
  --name anythingllm \
  --image sac1647283583153:anythingllm-ubuntu-24-04:default:latest \
  --size Standard_B4ms \
  --admin-username azureuser \
  --ssh-key-values ~/.ssh/id_ed25519.pub \
  --vnet-name <your-vnet> --subnet <your-subnet> \
  --public-ip-sku Standard
az vm open-port --resource-group <your-rg> --name anythingllm --port 80 --priority 1010

Step 3 - Connect to your VM

ssh azureuser@<vm-public-ip>

Step 4 - Confirm the services are running

systemctl is-active anythingllm.service anythingllm-collector.service nginx.service

All three services report active. On first boot, AnythingLLM generates its secrets, seeds the admin user, enables multi-user mode and starts the server.

Step 5 - Retrieve your admin credentials

The first boot of your VM generates a unique admin password and writes it to a root-only file. Read it as root:

sudo cat /root/anythingllm-credentials.txt

The file contains anythingllm.admin.user (admin) and anythingllm.admin.pass. Store the password in a safe place.

Step 6 - Sign in to AnythingLLM

Open http://<vm-public-ip>/ in your browser and sign in as user admin with the password from Step 5. To check first that the API is healthy, run this command from the shell:

curl -s http://127.0.0.1:3001/api/ping

The server responds {"online":true}.

You can also confirm your admin login programmatically. The multi-user login endpoint returns a session token:

PASS=$(sudo grep '^anythingllm.admin.pass=' /root/anythingllm-credentials.txt | cut -d= -f2-)
curl -s -H 'Content-Type: application/json' \
  --data "{\"username\":\"admin\",\"password\":\"${PASS}\"}" \
  http://127.0.0.1:3001/api/request-token | head -c 80

A successful login returns JSON containing "valid":true and a "token".

Step 7 - Connect your LLM provider

AnythingLLM ships with no LLM provider configured, so you choose one on first use. In the web UI, open Settings (the wrench icon), then AI Providers, then LLM Preference. Pick your provider and supply the credentials:

  • OpenAI or Anthropic: paste your API key and select a model.
  • Local Ollama: run Ollama on a reachable host and point AnythingLLM at http://<ollama-host>:11434.

Embeddings for document ingestion use the built-in native embedder by default. Document upload and vector search therefore work without any external provider, and only chat generation needs the LLM you select here.

Step 8 - Create a workspace and chat with your documents

In the UI, select New Workspace, give it a name, and use Upload to add PDFs, Word documents, text files or web pages. AnythingLLM's document collector extracts the text, and the native embedder vectorises it into the LanceDB store. You can then ask questions grounded in your documents in the workspace chat.

Step 9 - Data, database and vector store on the dedicated disk

All durable state lives on the dedicated Azure data disk mounted at /var/lib/anythingllm:

df -h /var/lib/anythingllm
sudo ls /var/lib/anythingllm/storage

The listing shows the anythingllm.db SQLite database, the lancedb vector store, the documents cache and the per-VM .env. Because this is a separate managed disk, you can snapshot it independently, and it survives a VM resize.

Step 10 - Enabling HTTPS

For public exposure, front AnythingLLM with TLS. Point a DNS A record at your VM's public IP, then install a certificate with Certbot and the nginx plugin:

The commands install Certbot and request a certificate for your domain (replace your-domain.example.com). Certbot edits the nginx site in place and reloads it. The packaged systemd timer renews the certificate automatically.

Step 11 - Maintenance

Restart the application or follow its logs:

sudo systemctl restart anythingllm.service
sudo journalctl -u anythingllm.service -n 50 --no-pager

The collector runs as a separate service:

sudo systemctl restart anythingllm-collector.service

Ubuntu's unattended-upgrades stays enabled in the image, so your VM keeps applying OS security updates automatically.

Screenshots

The following screenshot shows the terminal output you can expect during setup:

The AnythingLLM web application:

Support

SecureAnyCloud publishes this image and provides 24/7 support for it. AnythingLLM is a trademark of Mintplex Labs Inc. SecureAnyCloud is not affiliated with or endorsed by Mintplex Labs. AnythingLLM is distributed under the MIT License.

Deploy on Azure

Launch AnythingLLM on Ubuntu 24.04 LTS on Azure with 24/7 support from SecureAnyCloud.

View this image

Need Help?

Our support team is available 24/7.

sales@secureanycloud.com

Deploy on Azure