ALERT_DAEMON

Action deployed successfully.

Local LLM Inference & Agent Orchestration Stack

BLUEPRINT
Category: AI Infrastructure & Agentic Systems
Proxmox VELiteLLMllama.cppRedisNode.jsSearXNGOpen WebUI

// Infrastructure Path Flow

Open WebUI & Telegram IngressLiteLLM Routing Gatewayllama-swap VRAM OrchestratorGPU-Passthrough VM (Local Inference)

Project Overview

This project showcases a production-grade, hybrid AI orchestration stack deployed entirely on a self-hosted Proxmox homelab. The primary objective was to overcome the strict hardware constraints of consumer-grade GPUs by cleanly decoupling the management plane from the heavy computational execution layers.

By designing an on-demand VRAM orchestration mechanism and pairing it with local-to-cloud fallback gateways, this stack delivers enterprise-level agentic performance, absolute data privacy, and web-grounded Retrieval-Augmented Generation (RAG) without breaking the bank on infrastructure costs.

System Architecture & Flow

The framework divides responsibilities between highly isolated, low-overhead container environments and a dedicated hardware-accelerated execution node.

  1. Management & Frontend Layer (LXC): Requests enter the stack via Open WebUI or a custom Telegram client interface. The core management ecosystem—encompassing Redis for session caching, LiteLLM for routing, and SearXNG for privacy-focused metasearch—is containerized within lightweight Proxmox LXCs to minimize idle memory overhead.
  2. Intelligent API Routing (LiteLLM): LiteLLM functions as a centralized gateway for all incoming prompt traffic. It evaluates local model availability and dynamically routes requests, executing seamless fallback chains to high-capacity remote APIs (such as Gemini or OpenRouter) if local compute queues are saturated.
  3. Dynamic VRAM & Inference Engine (Hardware-Passthrough VM): Heavy compute workloads are delegated to a dedicated VM with direct PCIe passthrough of an AMD RX 580 GPU utilizing a Vulkan backend. To maximize the GPU’s 8GB VRAM limit, llama-swap dynamically loads local GGUF models (like Qwen3.5) on-demand with a 5-minute Time-To-Live (TTL), while lightweight BGE-M3 embedding models remain permanently anchored in CPU RAM for instant vector retrieval.
  4. Agentic RAG Pipeline (Custom MCP Server): Autonomous execution is handled by a Nous Hermes agent. A custom Model Context Protocol (MCP) server written in Node.js bridges the agent with the internal SearXNG instance, enabling the model to safely query the web, synthesize live data, and return private answers directly to the user.

Key Technical Specifications

Deployment & Usage

The management plane and the inference nodes are initialized separately to maintain the architectural boundary between control and execution.

Sources available under public GPL v3.