How to Install and Use AnythingLLM on Ubuntu 26.04 and 24.04

Share

Install AnythingLLM on Ubuntu 26.04 or 24.04 with the official Linux installer, then download a model in the app and create a workspace to chat with your documents.

Use a short project brief to test your setup. You’ll ask for a date in the PDF, check the source excerpt, and see what happens when you ask for something the brief leaves out.

Before you begin
  1. Desktop and architecture. Use Ubuntu 26.04 or 24.04 Desktop on a 64-bit Intel or AMD PC (x86_64) or an ARM64 machine (aarch64).
  2. Account access. Use your regular account. Installing packages and creating the AppArmor profile require sudo.
  3. Downloads and storage. Use an internet connection for initial setup and allow several gigabytes for the app, model and workspace files. Pick a small text model for your first run.

Install AnythingLLM Desktop

Step 1. Install and open the AppImage

Open a terminal. Install curl, the certificate bundle, and the FUSE 2 compatibility library. Ubuntu supplies libfuse2t64 through Universe on both releases. If APT cannot find it, enable Universe in Software & Updates and refresh the package list.

Ubuntu terminal
sudo apt update && sudo apt install -y curl ca-certificates libfuse2t64

Avoid the legacy fuse package. Installing it can remove FUSE 3 and break your Ubuntu desktop session. The AppImage needs the compatibility library above.

Run the official Linux installer from your home directory as your regular user. You can inspect the downloaded script before running it. The installer refuses to run as root.

Ubuntu terminal
cd "$HOME" && curl -fsSL https://cdn.anythingllm.com/latest/installer.sh -o installer.sh && chmod +x installer.sh && ./installer.sh

It selects the x64 or ARM64 build, saves it as ~/AnythingLLMDesktop.AppImage, and creates the launcher at ~/.local/share/applications/anythingllmdesktop.desktop. For a custom location, set ANYTHING_LLM_INSTALL_DIR to a writable directory before the first run and keep that path for future updates.

When asked to create the AppArmor profile, answer y. This is the part that uses sudo to write and load /etc/apparmor.d/anythingllmdesktop. The profile gives the AppImage the user namespace permission its Chromium sandbox needs on Ubuntu. Keep the sandbox enabled.

Open AnythingLLM Desktop from the apps menu. If it fails to open, run it in the terminal to see the full startup log:

Ubuntu terminal
"$HOME/AnythingLLMDesktop.AppImage"

Set up a local model

Step 2. Download a model and send a test message

Choose AnythingLLM Built-in during setup, or find it under Settings → AI Providers → LLM. Select a small text model, wait for the download, then create a workspace named Project Brief. Send a simple message such as Reply with one sentence saying you’re ready.

The built-in provider uses Lemonade and llama.cpp. It can run on the CPU when compatible GPU acceleration is unavailable. The app manages the engine and model downloads.

Already using Ollama? Select Ollama, enter http://127.0.0.1:11434, and choose a model already installed in your running Ollama setup. LM Studio and llama.cpp can also serve models on this computer. With either server running, choose OpenAI (Generic), use the loopback API root ending in /v1 (for example http://127.0.0.1:9931/v1 for llama serve), and enter the model ID exposed by that server.

Chat with a PDF in your workspace

Step 3. Embed a project brief and check the source

For a repeatable test, type this sample into a document and export or print it as project-brief.pdf. Use a PDF with selectable text.

The community website redesign goes live on 18 September. The first content review is on 3 September. Maya is responsible for the launch checklist.

  1. Open the Upload dialog for the Project Brief workspace and upload the PDF.
  2. Select the file in the Document Picker, click Move to Workspace, then Save and Embed. Wait for embedding to finish.
  3. Open the workspace’s gear icon and, under Chat Settings, switch the mode to Query.
  4. Ask When does the community website redesign go live? Expect 18 September. Open the cited source excerpt and check the date against the brief.
  5. Still in Query mode, ask What is the budget for the redesign? The brief has no budget. Query mode is designed to report when it can’t find relevant information. If the model supplies a number, check the citation and disregard any number the excerpt cannot support.

Workspace upload versus chat attachment. The chat’s + button puts the document’s extracted text into the current thread’s prompt context, subject to the model’s context limit. Embedding breaks the document into chunks so AnythingLLM can retrieve relevant excerpts from any thread in that workspace. This is retrieval-augmented generation (RAG).

Choose the mode for the job. New workspaces default to Agent mode, which can use configured tools with a compatible model. Chat mode can draw on both documents and general model knowledge. Use Query to ground answers in the workspace documents, and verify important details in the quoted text.

Keep document processing local. A local chat model, the default local CPU embedder and bundled LanceDB keep the sample document workflow on your PC. A cloud chat provider receives the prompt and retrieved excerpts or attached text. A cloud embedder receives the text it converts into vectors. A separately hosted database can also receive indexed content. Keep LanceDB for this walkthrough. Qdrant on Ubuntu is an optional external database if you need to manage your own vector store.

Troubleshoot AnythingLLM on Ubuntu

The AppImage won’t open

Run the AppImage from the terminal. If it reports a missing libfuse.so.2, install libfuse2t64 from Step 1. If it reports a sandbox or SUID error, check that /etc/apparmor.d/anythingllmdesktop exists. Re-run the official installer as your user and accept its AppArmor prompt if the profile is missing or needs refreshing. Avoid --no-sandbox.

The model replies slowly

Switch to a smaller model, start a fresh chat, and keep the first test short. If you expected GPU inference, check that the driver and runtime for your hardware are working. See the CUDA and ROCm setup guide for relevant NVIDIA and AMD checks.

Query mode can’t find a detail in the PDF

Check that the file was moved into the workspace and that you clicked Save and Embed. Confirm its text is selectable and try a question using the wording in the source. If a known excerpt still doesn’t match, open Workspace Settings → Vector Database and lower the Document similarity threshold one level, then retry and inspect the excerpts.

Update or uninstall AnythingLLM Desktop

Step 4. Update the app or remove it and keep your work

Quit AnythingLLM fully. Run the installer again from the same directory to update the AppImage in place. Fetch a fresh copy of the script with the Step 1 command when the saved script is old. If you customized the location, use the same ANYTHING_LLM_INSTALL_DIR as before.

Update the existing install
cd "$HOME" && ./installer.sh

To uninstall, quit the app and confirm the paths before removing the following files. Adjust the AppImage or script path if you stored it elsewhere. The -i flag asks before each removal. If a file is already absent, skip it.

Remove the app and its launcher
rm -i -- "$HOME/installer.sh" "$HOME/AnythingLLMDesktop.AppImage" "$HOME/.local/share/applications/anythingllmdesktop.desktop"
if [ -f /etc/apparmor.d/anythingllmdesktop ]; then
  sudo apparmor_parser -R /etc/apparmor.d/anythingllmdesktop &&
    sudo rm -i -- /etc/apparmor.d/anythingllmdesktop
fi

This leaves your work under ~/.config/anythingllm-desktop/. In ~/.config/anythingllm-desktop/storage/, look for anythingllm.db, lancedb/, documents/, models/, and plugins/ as applicable. You can open the folder from the top-right version button → Open storage before uninstalling. Back up the configuration directory with the app closed before deleting it. Deleting it removes local workspaces, chats, indexed data, and app-managed models.

AnythingLLM on Ubuntu Server

Use the official Docker setup for browser access or multiple users. It runs mintplexlabs/anythingllm on port 3001 and uses persistent storage for workspace data. Start with Docker on Ubuntu if you need the container runtime. Enable multi-user mode to manage accounts and workspace permissions.

AnythingLLM Desktop is single-user. Enable network discovery exposes the headless API for mobile clients or scripts. The API has no login protection and serves no browser UI. Keep network discovery off for desktop-only use and keep the Desktop API off the public internet.

Frequently asked questions

Do I need Ollama or a dedicated GPU to use AnythingLLM?

No. AnythingLLM Desktop can download and run a model using its built-in provider. Start with a small text model if you are running it on the CPU.

Does uploading a PDF make it searchable in every chat?

Only after you add and embed it in the workspace. A PDF attached with the plus button stays in that chat thread. An embedded PDF is available across threads in the same workspace.

Can I use AnythingLLM without internet access?

Yes, for local document chat once the app, chat model, and local embedding model have been downloaded. Leave online tools disabled and use a local vector database such as the built-in LanceDB.

Helpful Resources

r/anythingllm ↗

Ask setup and document-workspace questions.

AnythingLLM on GitHub ↗

Find the source code, releases and issue tracker.