AnythingLLM Installation

Linux Installation

There are two ways to install AnythingLLM on Linux distros

1. Install using the installer script

2. Install using Docker

Install using the installer script

⚠️

NOTICE

➤ AnythingLLM packages as an AppImage but you will not be able to boot if you run just the AppImage. Please only use the script below.

➤ Please open a Github Issue (opens in a new tab) if you have installation or bootup troubles.

First, open a terminal on your Linux machine and run this command.

  1. curl -fsSL https://s3.us-west-1.amazonaws.com/public.useanything.com/latest/installer.sh | sh

You can view the raw script contents here (opens in a new tab).

This will download the latest version of AnythingLLM’s AppImage, unpack it, and then supply a symlink to seamlessly run AnythingLLM. This script will unpack the app in $HOME/AnythingLLMDesktop.

You can start the app at any time by running ./AnythingLLMDesktop/start. This will boot the app with full logging.


Install using Docker

Make sure you have installed Docker (opens in a new tab) on your machine, if you don’t have Docker installed then you can install it by following this guide (opens in a new tab)

Run this command on your terminal

  1. docker pull mintplexlabs/anythingllm

It will pull in the latest AnythingLLM image from docker.

Once you have pulled the latest image, run the following commands

  1. export STORAGE_LOCATION=$HOME/anythingllm && \
  2. mkdir -p $STORAGE_LOCATION && \
  3. touch "$STORAGE_LOCATION/.env" && \
  4. docker run -d -p 3001:3001 \
  5. --cap-add SYS_ADMIN \
  6. -v ${STORAGE_LOCATION}:/app/server/storage \
  7. -v ${STORAGE_LOCATION}/.env:/app/server/.env \
  8. -e STORAGE_DIR="/app/server/storage" \
  9. mintplexlabs/anythingllm

The above command will mount the storage locally and run AnythingLLM in Docker

Now go to http://localhost:3001 on your browser and you are now using AnythingLLM!

All your data and progress will persist between container rebuilds or pulls from Docker Hub.