Skip to content
AIRepoHub

anything-llm

by Mintplex-Labs

Local-first app for chatting with your documents and running AI agents with the model of your choice.

Local LLMsRAG & KnowledgeJavaScriptMIT license
Stars
68,618
stars
Forks
7.7k
forks
Last push
today
Activity
Active
anything-llm: quick start
# Pull the Docker image$ docker pull mintplexlabs/anythingllm

Commands from the project's README. Run them after installing (see below).

Overview

Understand anything-llm in 60 seconds

What it does
AnythingLLM is an all-in-one AI app for chatting with your documents and running AI agents. You connect a local or cloud language model, add your files, and get a private ChatGPT-style workspace, as a desktop app or a self-hosted Docker server.
The problem it solves
Building a private document chatbot usually means wiring together a model, embeddings, a vector database and a UI. AnythingLLM bundles all of that, runs locally by default, and supports multiple users when self-hosted.
Why choose it
Choose it for an easy, polished, local-first document chat and agent app. Multi-user permissions and the website chat widget need the Docker version.
Who should use it
  • People who want a private ChatGPT over their own documents
  • Teams self-hosting a multi-user AI workspace
  • Local model users (Ollama, LM Studio and others)
  • Developers who want an API and embeddable chat widget
Setup difficulty

You'll need:

  • Desktop app: Mac, Windows or Linux
  • Docker version: Docker, with at least 2 GB RAM and about 10 GB disk recommended on cloud servers
  • Access to an LLM, local or remote

How anything-llm works

AnythingLLM lets you create workspaces, upload documents like PDF, TXT and DOCX by drag and drop, and chat with them with source citations. Agents inside workspaces can browse the web and more. It works with popular closed and open-source LLM providers, embedding models, speech models and vector databases.

By default it uses a built-in LanceDB vector database and embeds text privately on the instance. The Docker version adds multi-user support with permissions and an embeddable chat widget for websites; there's also white-labelling, a developer API and a browser extension.

You can install the desktop app, run the Docker image, or deploy to AWS, GCP, DigitalOcean, Render, Railway and others. The app collects anonymous telemetry, which you can turn off with DISABLE_TELEMETRY or in the Privacy settings.

Features

Key features

Chat with documents

Drag-and-drop uploads with source citations.

AI agents

Agents in workspaces that can browse the web.

Any LLM

Closed and open-source providers, including local models.

Built-in vector DB

LanceDB by default; others supported.

Multi-user

Permissions per user (Docker version).

Embeddable widget and API

Add chat to your website or integrate via API.

Strengths

  • Very easy to get started
  • Local and private by default
  • Many model and database options
  • MIT licensed

Limitations

  • Multi-user and the embed widget require the Docker version
  • Telemetry is on by default (can be disabled)
  • Quality depends on the model you connect

Practical use cases

Company knowledge base

Self-host and let staff chat with internal docs.

Private research assistant

Use the desktop app with a local model.

Website support bot

Embed a chat widget trained on your docs.

Installation

Install anything-llm

Based on official documentation

Commands come from AnythingLLM's README and Docker guide. AIRepoHub hasn't run them yet. View source

Prerequisites

  • Docker, or the desktop app

Supported systems

  • Windows
  • macOS
  • Linux
  1. 1

    Pull the image

    Shell
    docker pull mintplexlabs/anythingllm
  2. 2

    Run with local storage

    Mounting storage on the host lets you update without losing data.

    Shell
    export STORAGE_LOCATION=$HOME/anythingllm && \mkdir -p $STORAGE_LOCATION && \touch "$STORAGE_LOCATION/.env" && \docker run -d --rm -p 3001:3001 \--cap-add SYS_ADMIN \-v ${STORAGE_LOCATION}:/app/server/storage \-v ${STORAGE_LOCATION}/.env:/app/server/.env \-e STORAGE_DIR="/app/server/storage" \mintplexlabs/anythingllm
  3. 3

    Open http://localhost:3001

  1. 1

    Download AnythingLLM for desktop

    Available for Mac, Windows and Linux from anythingllm.com.

Configuration and API keys

SettingWhat it's for
STORAGE_DIRRequiredStorage path inside the Docker container, /app/server/storage.
DISABLE_TELEMETRYOptionalSet to true to opt out of anonymous telemetry.

First run

  1. 1

    Open http://localhost:3001 and connect an LLM

anything-llm's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.

Your first project

Chat with your documents in AnythingLLM

Self-host AnythingLLM and ask questions about your files.

Before you start

  • Docker
  • An LLM (local like Ollama, or a cloud API key)
  1. 1

    Start the container

    Use the Docker command from Installation.

  2. 2

    Open http://localhost:3001

    Choose your LLM provider in setup.

  3. 3

    Create a workspace and upload documents

    Drag and drop PDFs or DOCX files.

  4. 4

    Ask a question

    Answers include source citations.

What to expect

A private workspace that answers questions about your documents with citations.

Next steps

  • Add users and permissions
  • Enable an agent in the workspace
  • Embed a chat widget on your website

Costs and requirements

What it costs to run

License
MIT.Free
Software
Free desktop app and self-hosting.Free
Hosted instance
Mintplex Labs offers a hosted version.Depends
LLM
Local models are free to run; cloud APIs are billed by the provider.Depends

Troubleshooting

Common setup issues

Can't reach Ollama, LM Studio or Chroma on localhost from Docker

Use http://host.docker.internal:PORT; on Linux add --add-host=host.docker.internal:host-gateway to docker run.

Source: README.md

Lost data after updating the container

Mount the storage folder on the host as in the install command.

Source: README.md

Want to stop telemetry

Set DISABLE_TELEMETRY to true, or turn it off under Privacy in the sidebar.

Source: README.md

Alternatives

Similar AI repositories