# Self-host AnythingLLM

> A private chat workspace over your documents, with built-in RAG and support for local or hosted models.

- Page: https://levelrail.com/templates/anythingllm/
- JSON: https://levelrail.com/templates/anythingllm.json
- Category: AI
- Licence: MIT (Permissive license)
- Source: https://github.com/Mintplex-Labs/anything-llm
- Upstream docs: https://docs.anythingllm.com

## Requirements
- Memory: about 2 GiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 1.16.2

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| anythingllm | mintplexlabs/anythingllm | 1.16.2 | 3001 | anythingllm_storage -> /app/server/storage |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| anythingllm | JWT_SECRET | generated |
| anythingllm | SERVER_PORT | preset |
| anythingllm | STORAGE_DIR | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy anythingllm --name my-anythingllm
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/anythingllm/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy AnythingLLM on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id anythingllm for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image mintplexlabs/anythingllm:1.16.2 is what you deploy there.

Self-host AnythingLLM, AnythingLLM docker compose file, deploy AnythingLLM on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
