The easiest way to use Ollama in .NET
-
Updated
Nov 5, 2026 - C#
The easiest way to use Ollama in .NET
MCPSharp is a .NET library that helps you build Model Context Protocol (MCP) servers and clients - the standardized API protocol used by AI assistants and models.
A .NET 10 port of graphify - AI knowledge graph builder for codebases using GitHub Copilot SDK and Microsoft.Extensions.AI
Building GenAI Apps in C#: Microsoft Extensions for AI, Templates, Microsoft Foundry & More
.NET library for local embedding generation using ONNX and Microsoft.Extensions.AI
Pluggable real-time audio conversation framework for .NET. Local VAD, STT, TTS, and LLM
C# local LLM chat completions library using ONNX Runtime, compatible with Microsoft.Extensions.AI
A modular RAG pipeline library for .NET, built on Microsoft.Extensions.AI abstractions
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.
Long-term memory infrastructure for .NET AI agents with semantic, temporal, spatial and robotics memory, hybrid retrieval, and pluggable providers.
Free ebook: Prompt Engineering for .NET Developers. Build AI apps in C# and .NET 10 with Microsoft.Extensions.AI, OpenAI, Azure AI Foundry and local LLMs in LM Studio, with runnable code and unit tests for every chapter. No Python.
A .NET library for local image captioning using ONNX Runtime with automatic HuggingFace model download
MLXSharp is the first .NET wrapper around Apple MLX that plugs straight into Microsoft.Extensions.AI. It is designed and tested on macOS (Apple silicon) but ships prebuilt native binaries for both macOS and Linux so that NuGet consumers can run out-of-the-box.
A sample application demonstrating Microsoft.Extensions.AI
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.
Local-first .NET 10 sample integrating Microsoft Agent Framework with Foundry Local through a Microsoft.Extensions.AI IChatClient adapter.
This provides sample codes that uses Microsoft.Extensions.AI for locally running LLMs through Docker Model Runner, Foundry Local, Hugging Face and Ollama
Searchable MCP and AITool gateway for .NET, built on Microsoft.Extensions.AI with embedding-based tool discovery, lexical fallback, and unified execution
To associate your repository with the microsoft-extensions-ai topic, visit your repo's landing page and select "manage topics."