Skip to content

Ollama bot

Cisco edited this page Oct 14, 2025 · 2 revisions

Configuration

Configure Ollama service on a VM

If Ollama is on VM

  • do port mapping host 11434 to VM 11434
  • configure service nano /etc/systemd/system/ollama.service.d/override.conf
[Service]
Environment=OLLAMA_HOST=0.0.0.0
Environment=OLLAMA_PORT=11434

sudo systemctl daemon-reload sudo systemctl restart ollama

Check that Ollama server is listening from all hosts sudo netstat -ltnp | grep 11434 should display 0.0.0.0:11434 or *:11434

Possibly install ufw and allow 11434

Command

BOT #chan

Test the API

https://docs.ollama.com/api

Extra features

Web search https://docs.ollama.com/web-search

Clone this wiki locally