AnythingLLM’s desktop app can run a model with its built-in engine, but if you already use Ollama, you can point AnythingLLM at it instead: Ollama serves the model, and AnythingLLM provides the workspaces, document chat, and interface. The connection is one settings screen — pick Ollama as the provider, confirm the address, and choose the models.
Pull the models first
AnythingLLM only lists models Ollama already has, so pull a chat model and an embedding model before you open the settings. A desktop setup guide gives these exact commands:
ollama pull llama3.1:8b-instruct-q4_K_M
ollama pull nomic-embed-text
The embedding model is separate from the chat model: it turns your documents into vectors for retrieval, so it needs to be a real embedding model, not a chat model.
Pick Ollama in the settings
In AnythingLLM, open the settings with the gear icon in the bottom left and go to AI Providers, then LLM. Select Ollama from the dropdown. AnythingLLM will automatically detect the default Ollama API endpoint, http://127.0.0.1:11434, and query your running Ollama instance to show the models you have downloaded. Select your chat model from the Chat Model dropdown, pick nomic-embed-text as the embedding model, and click Save. A second guide confirms the same path and adds that you can set the context window (Token Context Window) to a value that fits your memory, for example 8192 tokens.
| Check | What you should see | If you do not see it |
|---|---|---|
| Ollama running | ollama list shows the two pulled models |
Pull them first — AnythingLLM cannot list a model Ollama does not have |
| Provider | Ollama is selected under AI Providers, LLM | You are still on the built-in provider — change the dropdown |
| Address | The Ollama base URL is http://127.0.0.1:11434 |
Ollama is not on this computer — use the address where it runs |
| Saved | Your chat model and nomic-embed-text are saved |
Click Save — the settings do not apply until you do |
Expected result. We checked two third-party AnythingLLM guides for the pull commands, the settings path, the Ollama address, and the Save step. We did not run AnythingLLM or Ollama.
Limits
These steps are for the desktop app with Ollama on the same computer; if AnythingLLM runs in Docker, localhost points inside the container, not at your computer, so the address is different. The model names above are the guides’ own examples, not recommendations — use the models you already have. Picking a cloud provider instead of Ollama would send your messages to that provider. We did not run AnythingLLM, so no setting here is a recorded result.
Sources
- AnythingLLM guide (third-party) — settings gear, LLM Provider section, Ollama auto-detects http://127.0.0.1:11434, Chat Model dropdown, nomic-embed-text, Save
- AnythingLLM desktop guide (third-party) — ollama pull llama3.1:8b-instruct-q4_K_M and nomic-embed-text, AI Providers > LLM, context window 8192
