The easiest way to use Ollama in .NET
-
Updated
Jul 24, 2026 - C#
The easiest way to use Ollama in .NET
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
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.
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.
Add a description, image, and links to the ichatclient topic page so that developers can more easily learn about it.
To associate your repository with the ichatclient topic, visit your repo's landing page and select "manage topics."