AnythingLLM needs an AI model to power the chat. You have two main options: (A) Use OpenAI — fast and easy, costs a small amount per query, requires an API key from platform.openai.com. (B) Use Ollama — completely free and private, runs on your own machine, but requires Ollama to already be installed (ollama.com). During onboarding, pick whichever fits you. For OpenAI, paste your API key when prompted. For Ollama, make sure Ollama is running first, then select it and pick a model like llama3.
$ For OpenAI: Get your API key at https://platform.openai.com/api-keys
$
$ For Ollama (free/local): Install from https://ollama.com, then run in your terminal:
$ ollama pull llama3
What you should see
The onboarding screen shows a green checkmark or 'Connection successful' message after you save your LLM settings.
This might happen
Ollama connection fails even though Ollama is installed.
Make sure Ollama is actually running. Open a terminal and type 'ollama serve' to start it, then return to AnythingLLM and try again.