ProjectsHomelab & self-hosting

AI Gateway

Active

A lightweight service that centralises AI requests from internal systems, with local models through Ollama and cloud fallback when local capacity is limited.

  • ollama
  • local-inference
  • self-hosted

Overview

A shared gateway for internal AI requests across home systems like StonePi and ThreatView, providing access to local models through Ollama. It manages workloads centrally: it routes tasks through Ollama, prioritises quick replies, queues background work and groups workloads by model to avoid slow reloads. When local capacity is limited, it says so straight away and apps fall back to the cloud. It holds no prompts and no cloud keys.

Features

Confirmed or discussed platform capabilities. Exact maturity varies by service.

  • One place for home systems to reach local models, with an OpenAI-compatible API
  • Quick replies first, then longer tasks, then background work
  • Work for the model that's already loaded goes first, to avoid slow reloads
  • An instant "busy" reply when the wait would be too long, so apps fall back to the cloud
  • Jobs from apps that stop waiting are dropped, and Ollama stops working on them
  • HTTPS with a pinned certificate, and a key for each app
  • Health checks, metrics and a live status page

Technology and integrations

  • Python
  • FastAPI
  • Ollama
  • systemd