Skip to content

Latest commit

Β 

History

162 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Local LLM Server Manager

v3.6.0 β€” A unified cross-platform application (.NET 10 + Avalonia UI & WebAssembly), System Tray app, background service/daemon, Model Context Protocol (MCP) AI API, visual orchestrator dashboard, and automated Playwright E2E testing framework to manage local Large Language Models (Ollama), Image Generation (Stable Diffusion / Forge & ComfyUI), and 3D Mesh Generation (TRELLIS V2 & Hunyuan3D v2) on Windows, Linux, Mobile, and Web. It features the official LΒ³MΒ² monochromatic brand identity, a high-contrast Matte Carbon Design System, a live Dynamic Theming Engine (Matte Carbon, OLED Black, Clean Light), integrated playwright-layout-inspector automated visual & layout audits, NVML CUDA real-time telemetry, Hugging Face Hub GGUF discovery, CivitAI checkpoint downloads, 3D & ComfyUI Studio with interactive WebGL viewer, a unified Avalonia WebAssembly (WASM) dashboard, and an active Model Context Protocol (MCP) Server (/mcp).

Dashboard Overview


πŸ–₯️ User Interface Layout & Dashboard Structure

The application features a dark Fluent Avalonia UI theme (#0F172A) organized into modular tabs:

+-----------------------------------------------------------------------------------------+
| Local LLM Server Manager                                                                |
| GPU: NVIDIA GeForce RTX 4070 Ti SUPER -- 16 GB β€’ Service Connected 🟒   [πŸ”„ Refresh]    |
| GPU VRAM Allocation: 4.2 GB / 16.0 GB (26.3%)                                           |
| [========================-------------------------------------------------------------] |
+-----------------------------------------------------------------------------------------+
| [πŸ¦™ Installed Models] [πŸ€— Hugging Face Hub] [🎨 CivitAI Models] [πŸ“¦ 3D Studio] [βš™οΈ Settings] |
+-----------------------------------------------------------------------------------------+
| Ollama Local Model Library                                          [🧹 Unload All VRAM] |
|                                                                                         |
| +-------------------------------------------------------------------------------------+ |
| | qwen2.5-coder:7b                         [Coding] [4.7 GB]              Installed 🟒 | |
| +-------------------------------------------------------------------------------------+ |
| | llama3.2:latest                          [Chat] [2.0 GB]                Installed 🟒 | |
| +-------------------------------------------------------------------------------------+ |
|                                                                                         |
| Interactive KV Cache Calculator                             ~0.5 GB                     |
| [====================================------------------------------------------------]  |
| 8,192 tokens                                                                            |
+-----------------------------------------------------------------------------------------+
| LocalLLMServerManager v3.5.0 -- Unified WASM & Desktop UI         System Tray Enabled 🟒 |
+-----------------------------------------------------------------------------------------+

🌟 Key Features

Native Desktop App & Services (Windows & Linux)

  1. Avalonia UI Native Dashboard β€” Sleek Fluent dark desktop window presenting live VRAM usage, engine status cards, and one-click browser launch on Windows and Linux (X11 / Wayland).
  2. System Tray Integration β€” Operates quietly in the notification area with right-click quick controls (Open Dashboard, View Health, Exit).
  3. Headless Background Services β€” Runs headlessly on machine boot via Windows Service or Linux systemd daemon (localllmmanager.service).
  4. Automated Tray Attachment β€” When a user logs in, the Avalonia System Tray app automatically attaches to the running background service instance.
  5. Seamless In-Place Upgrades β€” Upgrading via Windows Inno Setup installer, PowerShell scripts (update.ps1, install.ps1), or Linux script (install_linux.sh) automatically detects active services and tray apps, terminates them cleanly, preserves user configuration (settings.json), and restarts the updated background service without file lock errors.

Model Context Protocol (MCP) AI Automation

  1. Official MCP Streamable HTTP / SSE Endpoint (/mcp) β€” Fully compliant Model Context Protocol (MCP) server built with ModelContextProtocol.AspNetCore enabling AI assistants (Antigravity, Claude Desktop, Cursor, Open WebUI) to automate server operations over JSON-RPC 2.0.
  2. 8 Native MCP AI Tools β€” Exposes comprehensive tools for telemetry (get_gpu_vram), health probing (check_health), model management (list_models, pull_model, unload_vram), process control (start_engine, stop_engine), and filesystem tool auto-discovery (detect_tools).

LLM Management (Ollama & Hugging Face Hub)

  1. Service Health Checks β€” Real-time status indicators for Ollama (11434), Stable Diffusion / Forge (7860), and ComfyUI (8188).
  2. Cross-Platform VRAM Telemetry β€” Reads GPU name and VRAM via NVML CUDA (nvidia-smi), Windows Registry, or Linux system memory (/proc/meminfo). Correctly reports e.g. NVIDIA GeForce RTX 4070 Ti SUPER β€” 16 GB.
  3. VRAM Usage Visualizer β€” Stacked bar showing loaded-model VRAM vs free GPU memory.
  4. KV Cache Context Calculator β€” Slide target token length (up to 32 K tokens) to preview weights + KV cache sizes and warn when context exceeds VRAM.
  5. Model Capabilities Profile β€” Tags model families (Llama, Gemma, Qwen, Phi, Mistral, DeepSeek) with use-case badges (Coding, Reasoning, Math, Chat).
  6. Hugging Face Hub Integration β€” Search GGUF repos, select quantization, inspect file sizes, and download with a live SSE progress stream.
  7. Ollama Library Quick-Pull β€” Pre-populated cards for popular models (gemma2, llama3.2, qwen2.5-coder, phi3) with size estimates and one-click pull.
  8. Custom Pull β€” Type any user/model:tag to pull an arbitrary Ollama model.
  9. Concurrent Model Preloading β€” Trigger indefinite VRAM holds (keep_alive: -1) to run multiple models side-by-side.

Ollama Installed Models

Hugging Face GGUF Search

3D Mesh & ComfyUI Generation (TRELLIS V2 / Hunyuan3D v2)

  1. ComfyUI Integration β€” Proxy ComfyUI workflow execution, API requests, and WebSocket progress directly through port 5246.
  2. 3D Mesh Generation β€” Run TRELLIS V2 and Hunyuan3D v2 workflows for Image-to-3D and Text-to-3D mesh generation (.glb / .gltf).
  3. Interactive WebGL 3D Canvas β€” Render generated 3D meshes natively in-browser using <model-viewer> with 360Β° orbital controls, wireframe toggles, lighting options, and GLB export.
  4. Bundled API Workflow Presets β€” Ships with default ready-to-run API JSON templates for TRELLIS V2, Hunyuan3D v2, and FLUX/SDXL image generation.
  5. Engine Preference Switcher β€” Easily set your preferred default image generator engine (Forge vs ComfyUI).

3D Mesh & ComfyUI Studio

Stable Diffusion / Forge & CivitAI

  1. CivitAI Integration β€” Search by name, type (Checkpoint / LoRA / Embedding / VAE / ControlNet), and sort order. Shows preview thumbnails, download counts, and star ratings.
  2. Direct-to-Disk Downloads β€” Stream CivitAI files directly to disk with live progress bars.

CivitAI SD Checkpoints

Application Settings & Engine Controls

  1. Flexible Path Configuration & Auto-Discovery β€” Customize executable/script paths and model directories for Ollama, Stable Diffusion / Forge, and ComfyUI. Use the one-click "πŸ” Auto-Detect Installed Tools" feature (or POST /api/tools/detect) to automatically scan common install locations across drives, with real-time path validation badges (Valid 🟒 / Missing πŸ”΄ / Unset βšͺ).

Application Settings

Infrastructure & Reverse Proxy

  1. YARP Reverse Proxy β€” Transparently proxies Ollama (:11434), Forge (:7860), and ComfyUI (:8188) traffic through a single endpoint (:5246).
  2. VRAM Orchestrator β€” Auto-unloads active LLM models from GPU memory before heavy Stable Diffusion or ComfyUI 3D render jobs to prevent OOM errors.
  3. Background Engine Management β€” UI controls to start/stop engines directly from the dashboard cleanly.
  4. Lazy Boot β€” AI engines can now boot lazily on-demand when first requested, conserving system resources when idle.

πŸ›οΈ System Architecture

                  +-------------------------------------------------+
                  | AI Assistants & External Clients                |
                  | - Claude Desktop / Antigravity / Cursor / Agents|
                  | - Model Context Protocol Streamable HTTP / SSE  |
                  +------------------------+------------------------+
                                           | JSON-RPC 2.0 (/mcp)
                                           v
                  +----------------------------------------------+
                  |  Desktop Session (User Logon - Win/Linux)    |
                  |  - Avalonia UI System Tray Icon / Window     |
                  |  - Native XAML Dark Dashboard Window         |
                  |  - Auto-Attaches to local server (:5246)     |
                  +----------------------+-----------------------+
                                         | REST / HTTP (:5246)
                                         v
+-----------------------------------------------------------------------------------+
|  Local HTTP Server & Reverse Proxy Host                                           |
|  - ASP.NET Core Web API + YARP Reverse Proxy (:5246)                              |
|  - Model Context Protocol (MCP) Server (/mcp)                                     |
|  - VRAM Orchestrator & Process Management                                         |
|  - Responsive Web Dashboard & WebGL 3D Studio (wwwroot)                           |
+------------------------------------+----------------------------------------------+
                                     |
                                     v
                  +-----------------------------------+
                  | Managed Processes                 |
                  | - Ollama (:11434)                 |
                  | - SD Forge (:7860)                |
                  | - ComfyUI (:8188)                 |
                  +-----------------------------------+

Dual-Session Lifecycle

  • Headless Background Service Mode: Machine boots -> LocalLLMServerManager --service starts automatically before user logon (Windows Service or Linux systemd daemon). Hosts Web API, YARP proxy, and VRAM orchestrator headlessly on http://127.0.0.1:5246.
  • User Desktop Session: User signs in -> LocalLLMServerManager desktop app starts, probes :5246/health, and automatically attaches to the running background service instance.

πŸ€– Model Context Protocol (MCP) AI Integration

LocalLLMServerManager includes a native Model Context Protocol (MCP) server enabling AI coding assistants and autonomous agents (Claude Desktop, Cursor, Antigravity, Open WebUI) to monitor and control local LLMs, image generation engines, and GPU hardware.

Endpoints

  • /mcp (Streamable HTTP / SSE): Standard JSON-RPC 2.0 endpoint implementing the official Model Context Protocol (2024-11-05 specification) via ModelContextProtocol.AspNetCore. Supports session streaming, tools/list, and tools/call.

Available MCP Tools (8 Tools)

Tool Name Parameters Description Backend Delegation
get_gpu_vram none Retrieves real-time GPU VRAM allocation, total/used/free memory in MB, utilization percentage, and hardware name. IGpuTelemetryProvider (NVML CUDA)
check_health none Probes real-time connectivity and latency for Ollama (:11434), SD Forge (:7860), and ComfyUI (:8188). HTTP Health Checks
list_models none Lists all installed Ollama LLM models with family classification, disk footprint, and parameter tags. IOllamaModelService
pull_model modelName (string, required) Initiates an asynchronous download of a model from Ollama Library or Hugging Face. IOllamaModelService
unload_vram none Releases all loaded LLM models from GPU VRAM (keep_alive: 0) to free memory for diffusion or 3D generation. VramOrchestrator / Ollama
start_engine engine ('forge' | 'comfyui') Spawns and supervises an AI backend engine process. IAiEngineManager (Win32 Job / Process)
stop_engine engine ('forge' | 'comfyui') Gracefully terminates an AI backend engine process. IAiEngineManager
detect_tools none Scans system drives, environment variables, and default paths for Ollama, ComfyUI, and SD Forge. IToolDiscoveryService

Connecting AI Assistants to LocalLLMServerManager

Claude Desktop Configuration (claude_desktop_config.json)

{
  "mcpServers": {
    "localllm": {
      "command": "npx",
      "args": ["-y", "mcp-proxy", "http://127.0.0.1:5246/mcp"]
    }
  }
}

Cursor / Antigravity Custom MCP Server

Add an HTTP MCP server pointing to:

http://127.0.0.1:5246/mcp

🎭 Playwright Automated E2E Browser Testing

LocalLLMServerManager includes automated end-to-end (E2E) browser testing built on Microsoft.Playwright and xUnit. The test suite spins up an in-memory ASP.NET Core server (AppTestServerFixture) and launches headless Chromium with WebAssembly and WebGL flags (--use-gl=angle --use-angle=swiftshader --enable-webgl) to validate application behavior in real browser engines.

Key Capabilities

  • WASM Bundle & Static File Validation: Listens for HTTP responses to verify zero 404 Not Found errors when serving Avalonia WASM .dll, .dat, .wasm, and .boot.json assets.
  • Console Error Trap: Monitors browser console output to ensure zero uncaught JavaScript errors occur during WASM startup and canvas rendering.
  • WebGL 3D Canvas Initialization: Confirms the <canvas id="out"> element is initialized and rendered with non-zero dimensions.
  • Automated Screenshot Generation: PlaywrightScreenshotGenerator navigates the dark Fluent UI dashboard and captures real 1280x800 PNG screenshots stored in docs/images/.

Running Playwright Tests

# Install Playwright browser drivers (Chromium)
pwsh LocalLLMServerManager.Tests/bin/Release/net10.0/playwright.ps1 install chromium

# Run all Playwright WASM E2E tests
dotnet test LocalLLMServerManager.Tests/LocalLLMServerManager.Tests.csproj --filter "FullyQualifiedName~PlaywrightWasmE2ETests" -c Release

# Run automated screenshot generator
dotnet test LocalLLMServerManager.Tests/LocalLLMServerManager.Tests.csproj --filter "FullyQualifiedName~PlaywrightScreenshotGenerator" -c Release

🐳 Docker & Container Deployment

LocalLLMServerManager can be containerized using Docker for seamless deployment on server infrastructure or home lab setups.

Multi-Stage Dockerfile

# Build Stage
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY ["LocalLLMServerManager.csproj", "./"]
COPY ["LocalLLMServerManager.Shared/LocalLLMServerManager.Shared.csproj", "LocalLLMServerManager.Shared/"]
COPY ["LocalLLMServerManager.Web/LocalLLMServerManager.Web.csproj", "LocalLLMServerManager.Web/"]
RUN dotnet restore "LocalLLMServerManager.csproj"
COPY . .
RUN dotnet publish "LocalLLMServerManager.csproj" -c Release -o /app/publish

# Runtime Stage
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
WORKDIR /app
EXPOSE 5246
ENV ASPNETCORE_URLS=http://+:5246
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "LocalLLMServerManager.dll", "--service"]

docker-compose.yml

version: '3.8'

services:
  localllmservermanager:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: localllmservermanager
    ports:
      - "5246:5246"
    volumes:
      - ./data:/app/data
    environment:
      - ASPNETCORE_ENVIRONMENT=Production
      - ASPNETCORE_URLS=http://+:5246
    restart: unless-stopped

Running with Docker CLI

# Build Docker image
docker build -t localllmservermanager:v3.5.0 .

# Run container exposing port 5246
docker run -d -p 5246:5246 --name localllmservermanager localllmservermanager:v3.5.0

# Or start using Docker Compose
docker-compose up -d

🌐 WebAssembly Static Asset Hosting & Kestrel MIME Mappings

To host Avalonia XAML WebAssembly applications directly within ASP.NET Core Kestrel without runtime loading errors, Program.cs configures a custom FileExtensionContentTypeProvider for static files.

Configured MIME Mappings

var contentTypeProvider = new FileExtensionContentTypeProvider();
contentTypeProvider.Mappings[".dat"] = "application/octet-stream";
contentTypeProvider.Mappings[".symbols"] = "application/octet-stream";
contentTypeProvider.Mappings[".wasm"] = "application/wasm";
contentTypeProvider.Mappings[".clr"] = "application/octet-stream";
contentTypeProvider.Mappings[".pdb"] = "application/octet-stream";
contentTypeProvider.Mappings[".boot.json"] = "application/json";

app.UseDefaultFiles();
app.UseStaticFiles(new StaticFileOptions
{
    ContentTypeProvider = contentTypeProvider,
    ServeUnknownFileTypes = true,
    DefaultContentType = "application/octet-stream"
});

Technical Benefits

  • WebAssembly Compatibility: Ensures .wasm files are served with application/wasm headers required by web browsers for WebAssembly compilation.
  • Managed Assembly & Data Stream Support: .dat, .clr, and .pdb static files are served as application/octet-stream, preventing 404/415 media type rejection by ASP.NET Core middleware.
  • Fallback Type Handling: ServeUnknownFileTypes = true prevents missing static file headers when Avalonia WASM requests dynamic assembly blobs or metadata files.

πŸ“± Mobile Responsiveness & Cross-Device Compatibility

The Web Dashboard features a responsive CSS layout engine:

  • Mobile Viewport Optimization: Dynamically adjusts cards, status badges, search bars, and navigation tabs to single-column flex layouts on mobile devices (< 768px).
  • Zero Element Overlap: Grid systems automatically collapse into stacked cards with full touch target support for phones and tablets.
  • Responsive 3D Studio: The WebGL 3D Mesh viewer (<model-viewer>) automatically resizes canvas bounds and supports touch gesture orbit controls.

πŸ§ͺ Quality Assurance, Test Coverage & Requirements Traceability

LocalLLMServerManager includes an automated test harness ensuring cross-platform stability across Windows 11 and Linux environments:

+-----------------------------------------------------------------------------------------+
| TOTAL TESTS EXECUTED : 174                                                              |
| PASSED               : 173 (99.4%)                                                      |
| SKIPPED              : 1   (Playwright screenshot generator on-demand)                  |
| FAILED               : 0   (0.0%)                                                       |
| TEST FIXTURE CLASSES : 20                                                               |
| TEST FRAMEWORKS      : .NET 10 LTS β€’ xUnit v3 β€’ Avalonia Headless β€’ Microsoft Playwright|
| OPERATING SYSTEMS    : Windows 11 x64 (Win32 Jobs) β€’ Linux x64 (systemd / procfs / X11) |
+-----------------------------------------------------------------------------------------+
  • Full Test Coverage Specification β€” Detailed component-by-component coverage mapping across all 20 test classes, cross-platform validation matrix (Windows & Linux), and 5-chunk test execution guide.
  • Software Requirements Specification & Traceability Matrix β€” Formal requirements specification across 12 functional domains (CORE-xxx, LLM-xxx, HUB-xxx, DIFF-xxx, 3D-xxx, VRAM-xxx, MCP-xxx, INST-xxx, DISC-xxx, UI-xxx, WASM-xxx, E2E-xxx), mapping each requirement to source files and test assertions, plus explicit gap analysis.

πŸ“š Guides & Documentation


πŸ“¦ Versioning Convention

We use MAJOR.MINOR.PATCH (SemVer):

Version What changed
1.0.0 Initial release β€” dashboard, VRAM bar, HF search, Ollama pull, YARP proxy, Windows Service
1.1.0 CivitAI search tab with model type / sort filters and preview thumbnails
1.2.0 Forge models directory config, direct-to-disk CivitAI downloads with SSE progress, persistent settings.json
1.3.0 Migration to .NET 10 LTS target framework and updated dependencies
1.4.0 ComfyUI integration, 3D Mesh Studio (TRELLIS V2 / Hunyuan3D v2), interactive WebGL 3D viewer, preferred engine toggle
1.5.0 Lazy boot for AI engines, process job objects, and UI controls for background engine management
2.0.0 Major architecture update β€” Avalonia UI desktop shell, system tray icon, pre-logon Windows Service boot & logon tray attachment
3.0.0 Avalonia WebAssembly (Wasm) integration, 3D Canvas Studio, unified multi-platform interface
3.1.0 Cross-Platform Linux support, Linux release scripts (build_release.sh), systemd service installer (install_linux.sh), .desktop launcher, NVML & /proc/meminfo VRAM telemetry, and SSH remote workflow support
3.2.0 Fixed WASM launcher script routing, added /api/models backend proxy, updated high-res 32-bit icon, added end-to-end integration tests, and completed repo housekeeping
3.3.0 Major architecture refactoring β€” decomposed Program.cs and MainViewModel into modular interfaces, services, and endpoint route extensions
3.4.0 Added Playwright automated E2E browser testing, real WebAssembly UI screenshot generator, Docker containerization support, and Kestrel WASM static asset MIME type mappings
3.5.0 Flexible tool path configuration, multi-drive auto-discovery service (IToolDiscoveryService), POST /api/tools/detect, official Model Context Protocol (MCP) server endpoint (/mcp) with 8 AI automation tools, and graceful in-place update support across Windows Inno Setup and shell installers

πŸš€ Installation & Downloads

Option 1: Official Windows Installer (.exe) β€” Seamless In-Place Upgrades

Download the latest LocalLLMServerManager-v3.5.0-Setup.exe from the GitHub Releases page.

  • In-Place Upgrades: Running setup over an existing installation automatically stops any active LocalLLMServerManager Windows Service (net stop) and closes running tray processes, safely overwrites binaries without file lock errors, preserves your custom settings.json, and reconfigures & restarts the background service.
  • Includes an installation wizard with options for:
    • 🟒 Install Windows Service (Headless pre-logon machine boot)
    • 🟒 Auto-Start System Tray App on user login
    • 🟒 Desktop & Start Menu Shortcuts

Option 2: Linux Automated Installation Script (install_linux.sh) β€” In-Place Upgrades

Clone the repository on Linux and run:

sudo ./install_linux.sh
  • Automatically stops active localllmmanager.service via systemd before binary copy
  • Preserves existing user settings and configurations
  • Installs the app binary to /usr/local/share/LocalLLMServerManager
  • Symlinks binary to /usr/local/bin/localllmmanager
  • Reloads and restarts the systemd service (localllmmanager.service) for background autostart
  • Installs desktop launcher (localllmmanager.desktop) in your application menu

Option 3: Standalone Portable (.zip / .tar.gz)

Download LocalLLMServerManager-v3.5.0-win-x64.zip or LocalLLMServerManager-v3.5.0-linux-x64.tar.gz from Releases, extract, and run executable. Includes bundled runtime β€” no .NET SDK required!

Option 4: Building Release Packages Locally

  • Windows: Run .\build_release.ps1 (or .\scripts\update.ps1 for in-place local build & upgrade)
  • Linux: Run ./build_release.sh Output artifacts will be generated in dist/.

πŸ” Configuration & Auto-Discovery

LocalLLMServerManager supports fully flexible tool paths across any storage drive or folder structure, eliminating rigid hardcoded path assumptions.

1. Auto-Detect Installed Tools (One-Click Setup)

In the βš™οΈ Settings tab, click πŸ” Auto-Detect Installed Tools (or send POST /api/tools/detect to the backend REST API). The built-in IToolDiscoveryService actively scans:

  • System PATH & Environment Variables (OLLAMA_MODELS, PATH, etc.)
  • All available drive roots (C:, D:, E:, etc. on Windows, /opt, /home/$USER, /usr/local on Linux)
  • Standard installation paths:
    • Ollama: %LOCALAPPDATA%\Programs\Ollama\ollama.exe, ~/.ollama/models, %USERPROFILE%\.ollama\models
    • ComfyUI: Portable batch runners (run_nvidia_gpu.bat, run_cpu.bat), Git clones (main.py), and standard models/ checkpoints
    • Stable Diffusion WebUI / Forge / A1111: Launch scripts (webui-user.bat, webui.sh, run.bat) and models/Stable-diffusion directories

Auto-detection only populates unset or missing paths, preserving any custom paths you've previously configured.

2. Manual Path Customization & Real-Time Status Badges

You can customize every tool path independently via the Settings UI (with native file/folder pickers) or by editing settings.json:

  • OllamaExecutablePath: Direct path to ollama.exe (or ollama on Linux)
  • OllamaModelsPath: Target directory where Ollama stores model blobs and manifests
  • ForgeScriptPath: Batch or shell launcher script for Stable Diffusion WebUI / Forge
  • ForgeModelsPath: Directory for SD Checkpoints, LoRAs, VAEs, and ControlNets
  • ComfyUiScriptPath: Batch or shell launcher script for ComfyUI
  • ComfyUiModelsPath: Root models directory for ComfyUI checkpoints, UNETs, and VAEs
  • ComfyUiUrl: Network address for ComfyUI (default http://127.0.0.1:8188)

Each path input features a real-time status badge:

  • 🟒 Valid: Executable file exists or directory is accessible on disk
  • πŸ”΄ Missing: Path is configured but does not exist at the specified target
  • βšͺ Unset: Path is empty (defaults to standard environment fallback)

3. Parameterized Helper Scripts

All automation scripts in scripts/ accept command-line parameters for custom installation locations:

# Set up 3D workflows for ComfyUI with custom paths (PowerShell)
.\scripts\setup_3d_workflows.ps1 -ComfyUiPath "D:\AI\ComfyUI_windows_portable\ComfyUI" -ModelsDir "D:\AI\ComfyUI_windows_portable\ComfyUI\models"

# Start AI engines with custom script paths
.\scripts\start_engines.ps1 -Ollama -ComfyUI -ComfyUiScript "D:\AI\ComfyUI_windows_portable\run_nvidia_gpu.bat"
# Set up 3D workflows on Linux with custom paths (Bash)
./scripts/setup_3d_workflows.sh --comfy-path "/opt/ComfyUI" --models-dir "/opt/ComfyUI/models"

# Install Linux package to custom directory
sudo ./scripts/install_linux.sh --install-dir "/opt/LocalLLMServerManager" --bin-dir "/usr/bin"

🌐 Remote SSH Viewing & Port Forwarding

To work with LocalLLMServerManager on a remote Linux machine over SSH:

  1. Connect over SSH with local port forwarding:
    ssh -L 5246:localhost:5246 user@your-linux-host
  2. Run the application in headless service mode on the remote host:
    dotnet run -- --service
    # or manage via systemd: sudo systemctl start localllmmanager
  3. Open http://localhost:5246 in your local browser to access 100% of the UI features (VRAM monitor, Hugging Face search, CivitAI downloader, 3D WebGL viewer) at full speed with zero lag over SSH.

βš™οΈ Service Control Commands

Linux (systemd)

# Start Service
sudo systemctl start localllmmanager

# Stop Service
sudo systemctl stop localllmmanager

# Check Status
sudo systemctl status localllmmanager

Windows (Service Control)

Open PowerShell as Administrator:

# Start Service
Start-Service -Name "LocalLLMServerManager"

# Stop Service
Stop-Service -Name "LocalLLMServerManager"

# Service Status
Get-Service -Name "LocalLLMServerManager"

If running directly:

C:\LocalLLMServerManager\LocalLLMServerManager.exe

Dashboard available at http://localhost:5246/


πŸ”§ Prerequisites

  • Ollama β€” Local LLM inference runtime
  • Stable Diffusion WebUI Forge (optional) β€” SD image generation backend
  • ComfyUI (optional) β€” Node-based 3D mesh & image generation backend
  • .NET 10 SDK (optional) β€” Only required if compiling from source code

About

C# / .NET management service and API for orchestrating local LLM inference engines, model weights, and context windows.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages