Skip to content

Daemon & HTTP API

Terminal window
./bin/ollama-agent serve # uses api.addr from the config
./bin/ollama-agent serve -addr :18080 # override the port

The daemon provides the REST API (complete reference: HTTP API reference), keeps chat sessions in memory, and runs scheduler jobs. Quick test:

Terminal window
curl -s localhost:2330/v1/health
curl -s -X POST localhost:2330/v1/agent/run \
-H 'Content-Type: application/json' \
-d '{"input": "Was ist 2+2?"}'

Chat with memory: the first response returns a session_id, which is sent along with follow-up requests.