Loom / Guides / Ollama (on your computer)

Local · Ollama

Ollama (on your computer)

Run models on your own computer, and chat with them from your phone.

Overview

Ollama runs open models on your computer. Loom on your phone then talks to it over your home Wi-Fi. Nothing goes to any company, and no key is needed.

By default Ollama only listens to the computer it is on, so you have to let your network reach it.

Set it up

  1. 1
    Install Ollama from ollama.com/download and pull a model, for example ollama pull llama3.2 (pick one that fits your computer’s memory).
  2. 2
    Let your network reach it. Set OLLAMA_HOST=0.0.0.0:11434. On a Mac app: launchctl setenv OLLAMA_HOST "0.0.0.0:11434" then quit and reopen Ollama. On Linux: add Environment="OLLAMA_HOST=0.0.0.0:11434" to the service with systemctl edit ollama, then restart it. On Windows: add it as a user environment variable, then quit Ollama from the tray and start it again.
  3. 3
    Allow it through the firewall for your private network, on port 11434 (on Windows, add an inbound rule; on Linux, for example sudo ufw allow from 192.168.1.0/24 to any port 11434).
  4. 4
    Find your computer’s address on the Wi-Fi, such as 192.168.1.20. Your phone must be on the same network.
  5. 5
    Recommended: raise the context window so long chats are not silently cut. Set OLLAMA_CONTEXT_LENGTH=64000 the same way, if your computer has the memory.

Cost. Free. You use your own computer’s power.

Add it to Loom

  1. 1
    Open Loom, then Providers in the menu, and choose Add provider.
  2. 2
    Pick Ollama (the search box finds it).
  3. 3
    Fill in the fields in the table below.
  4. 4
    Choose Connect. Loom checks the key and says how many models it found. If it cannot check, it says so, and you can Save anyway and try a message.
  5. 5
    Open the model chip below the message box and pick a model.
  • Endpoint: http://192.168.1.20:11434 (use your computer’s address). On an Android emulator use http://10.0.2.2:11434.
  • Leave the key empty. Loom checks the connection by listing the models you have pulled.
Field in LoomWhat to putNeeded
Endpointhttp://localhost:11434Pre-filled
NameAnything you like. It is shown in the model pickerOptional

At a glance

Appears in Loom asOllama
Sign-inNone
ModelsLoom fetches the list from your account
Tools (connectors, search)If the model supports tools
PhotosDepends on the model
PDFsNo

Good to know

Keep it on your own network. Ollama has no password. Do not open port 11434 to the internet. To reach it away from home, use a VPN such as WireGuard or Tailscale.
Why long chats forget things. Ollama’s default context window can be small (around 4,000 tokens on many setups) and it drops older text without telling you. Raising OLLAMA_CONTEXT_LENGTH fixes that.

If something goes wrong

What you seeWhat to do
“Can’t reach the server”Check the phone and computer are on the same Wi-Fi, the address is right, and the firewall allows port 11434. If Ollama still listens only on 127.0.0.1, the OLLAMA_HOST change did not take effect: restart Ollama fully.
The model list is emptyPull a model first with ollama pull.
Replies get dumber in long chatsRaise the context window (see above).

Official documentation