The easiest way to use Ollama in .NET
-
Updated
Sep 30, 2026 - C#
The easiest way to use Ollama in .NET
Security monitoring middleware for IChatClient (Microsoft.Extensions.AI). 55 detectors for prompt injection, hallucination, PII leakage, and operational anomalies. Intervention engine, embedded dashboard, audit forwarders to Azure Sentinel + OpenTelemetry. Drop-in middleware for any LLM client.
Run, fine-tune and serve real LLMs entirely in-process in .NET — on the CPU, on-device, offline. No Python, no GPU, no cloud.
Composable Microsoft.Extensions.AI IChatClient middlewares for .NET — tool-call tracking with in-band streaming progress, per-tool token usage reports, and satellite packages for MCP tools and Microsoft Agent Framework agents-as-tools.
A minimalistic but extensible chat control library for Windows Forms
Use browser-provided, on-device language models from Blazor through Microsoft.Extensions.AI and the Prompt API.
C# demo showcasing MAI‑Thinking‑1 reasoning workflows — structured prompts, multi‑step thought synthesis, and Microsoft.Extensions.AI integration for real engineering use cases.
A local .NET 10 spike that reflectively optimizes an IChatClient overlay across four axes — instructions, tool descriptions, model selection, and skills — using Microsoft.Extensions.AI.Evaluation. Inspired by Azure AI Foundry's Agent Optimizer.
A 60-second check that your .NET AI dev environment works - local (Ollama) + cloud (GitHub Models) via one IChatClient. Companion to the AI-Powered APIs in .NET course.
To associate your repository with the ichatclient topic, visit your repo's landing page and select "manage topics."