Daemon & HTTP API
./bin/ollama-agent serve # uses api.addr from the config./bin/ollama-agent serve -addr :18080 # override the portThe daemon provides the REST API (complete reference: HTTP API reference), keeps chat sessions in memory, and runs scheduler jobs. Quick test:
curl -s localhost:2330/v1/healthcurl -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.