Providers & connections
Loach talks to providers over HTTP. When the model dropdown is empty or every request fails, the problem is almost always reachability, authentication or key storage.
Ollama is installed but Loach can’t see it
The Providers panel says Ollama isn’t reachable, or the model dropdown is empty even though ollama list works in a terminal.
- Make sure
ollama serveis running. On Windows, the Ollama tray icon needs to be active; on Linux, theollamaservice must be started. - Open Settings → Providers → Ollama and check the Base URL. The default is
http://localhost:11434. If you run Ollama on another machine or a custom port, change it here. - Click Refresh in the Models tab. The list re-queries Ollama’s
/api/tagsendpoint. - If Ollama runs on another host, make sure its firewall allows inbound connections on the chosen port and that
OLLAMA_HOST=0.0.0.0is set on the server side (Ollama binds to localhost by default).
OpenAI says “invalid key” or returns 401
You added an OpenAI-compatible API key but every request fails with 401.
- Re-enter the key in Settings → Providers → OpenAI. Keys are stored in the operating system’s credential store, not on disk, so a copy-paste that picked up a trailing space will silently fail.
- Confirm the key is active on your OpenAI dashboard and has not been rotated.
- If you’re using a custom OpenAI-compatible endpoint (vLLM, LM Studio, LiteLLM, OpenRouter, Groq), make sure the Base URL ends with
/v1and that the endpoint accepts the sameAuthorization: Bearer …header the real OpenAI API uses.
Key won’t save on Linux
The OpenAI-compatible API key field clears every time you reopen Settings, or saving the key throws an error.
Loach uses the system Secret Service to store secrets. On minimal Linux installs (server-style, some tiling window managers) there is no Secret Service running.
- Install and start gnome-keyring or KWallet — whichever fits your desktop environment.
- Make sure a login session is unlocked so the keyring is available to user processes.
- Restart Loach and re-enter the key.
Models list shows no models
Ollama is reachable but the list is empty.
You haven’t pulled any models yet. In the Models tab, click Pull a model, type a tag (for example llama3.1:8b), and wait for the download to finish. The list refreshes automatically.