Deploy AnythingLLM from Its Official Docker Image
AnythingLLM combines document chat, workspaces, and agent tools in a project-maintained Docker image. A basic deployment can use its embedded database and local vector store alongside remote chat and embedding APIs. Start with that configuration before adding browser tools or local inference.
This is a documentation-checked candidate recipe, checked October 28, 2026, not a live deployment certification. In particular, validate the host CPU, writable storage, and each required agent tool. See the comparison guide for the selection criteria.
Configure the image and volume
Configure AnythingLLM on JustRunMy.App
Supply authentication before Create. The link contains only non-secret configuration.
| Field | Value |
|---|---|
| Image | mintplexlabs/anythingllm:latest |
| Registry | Docker Hub; leave the custom registry empty |
| Run command | Leave empty |
| Persistent volume | /app/server/storage |
| Environment | STORAGE_DIR=/app/server/storage |
| Container port and protocol | 3001, HTTPS |
These image, storage, and port values come from the official Docker instructions. The published image runs as UID/GID 1000:1000; its mounted directory must be writable by that user. An unable to open database file error is a storage-permission failure, not a reason to remove persistence.
latest moves. Choose a validated release tag or digest before relying on a deployment for durable work, and keep a backup before upgrades.
Add password protection before startup
Set both variables privately in the panel:
| Variable | Purpose |
|---|---|
AUTH_TOKEN |
A unique strong password for the single-user application |
JWT_SECRET |
A separate securely generated random signing secret; keep it stable |
Use at least 32 random characters for the signing secret. The project's environment example documents the remote-hosting password and JWT secret. Its authentication middleware shows why both matter: single-user authentication is bypassed when either is missing. This recipe uses password-protected single-user mode, not multi-user account provisioning.
Set the variables in the form before the first public start. Do not put them in a badge URL, and do not reuse the model provider key as either secret.
Select models and document storage
For example, to use OpenAI for both chat and embeddings, add these panel variables before Create. Replace the model placeholders with IDs available to your account:
LLM_PROVIDER=openai
OPEN_AI_KEY=YOUR_PRIVATE_PROVIDER_KEY
OPEN_MODEL_PREF=YOUR_CHAT_MODEL_ID
EMBEDDING_ENGINE=openai
EMBEDDING_MODEL_PREF=YOUR_EMBEDDING_MODEL_ID
VECTOR_DB=lancedb
These names are documented in the project environment example. Other providers have different variable names. Never paste the placeholders unchanged or encode your key into a deploy link.
After creation, open the generated HTTPS URL and enter the application password. Complete onboarding and confirm the selected providers and embedded LanceDB store. Provider and vector-store options are listed in the official quickstart.
The image includes a writable application environment file. Keep provider settings in panel variables so they are reapplied on recreation. Changes made only to that environment file can disappear because it is outside the storage volume. Do not mount the panel's read-only Config File over it: the application expects to update it. Verify provider configuration after recreation.
Select resources for document ingestion, not only an idle dashboard. Check account limits before importing a document collection. Remote embeddings avoid loading an embedding model locally, but parsing documents and maintaining the vector store still use CPU, RAM, and disk. API usage is an additional charge.
Check the capabilities your assistant needs
The upstream Compose example requests SYS_ADMIN. The deploy-link format has no capability parameter. Consequently, this recipe does not promise compatibility with the entire upstream Docker setup, especially browser-dependent tools. Verify basic chat and document retrieval first; if a required feature needs extra capabilities, this link alone cannot satisfy it.
The Docker documentation also identifies AVX2 as a requirement of the default vector database on relevant CPUs. An Illegal instruction crash needs a host-compatibility check; increasing RAM will not fix it. Built-in LLM/GPU inference is outside this remote-model recipe.
Test before uploading important documents
- Confirm that a fresh private browser session requires the password before accessing the workspace.
- Create a workspace, send a chat message, and verify the configured model answers.
- Upload a small text document containing a distinctive fact. Ask about that fact and inspect the retrieved context or citation.
- Recreate the container through a configuration change. Verify the workspace, document retrieval, provider configuration, and password protection again.
- If using an agent tool, invoke that tool explicitly and inspect its result. A successful chat is not a browser or tool test.
Monitor volume growth and keep a separate backup. The platform's volume guide explains persistence and account-wide disk limits. For a chat-focused alternative, see Open WebUI.