Skip to content

Installation

Requirement: Go 1.24+ and at least one reachable Ollama server.

Terminal window
git clone https://gitlab.techeve.de/techeve/ollama-agent.git
cd ollama-agent
make build # produces bin/ollama-agent
Terminal window
./bin/ollama-agent config init > config.json # generate example config
# adjust config.json: endpoints + models to your own environment
./bin/ollama-agent config validate # validate config
./bin/ollama-agent endpoints # are the servers reachable?
./bin/ollama-agent run "Why is the sky blue?"

The config is searched for in this order: -config <path>$OLLAMA_AGENT_CONFIG./config.json~/.ollama-agent/config.json.

The daemon (including the web UI) runs as a container — configuration can come entirely from environment variables:

Terminal window
docker build -t ollama-agent .
docker run -d --name ollama-agent -p 2330:2330 \
-v ollama-agent-data:/data \
-e OLLAMA_URLS=http://192.168.6.80:11434,http://192.168.6.80:11436 \
-e OLLAMA_DEFAULT_MODEL=qwen3.5:9b \
ollama-agent
Env variableMeaning
OLLAMA_URLSComma list of Ollama servers (required without config.json); first URL = highest priority
OLLAMA_DEFAULT_MODELDefault model (required without config.json)
OLLAMA_AGENT_ADDRBind address, default 0.0.0.0:2330
OLLAMA_AGENT_TOKENoptional bearer token for API/UI
OLLAMA_AGENT_STATEState directory, default /data (sessions, matrix, jobs)

For task routing, skills, MCP, and cron jobs, mount a complete config.json at /data/config.json — it always wins over the environment variables. Template: docker-compose.example.yaml.