The easiest way to use Ollama in .NET
-
Updated
Sep 30, 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
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.
A free ebook for .NET developers building real AI-powered apps in C# — no Python, no hype.
A .NET library for local image captioning using ONNX Runtime with automatic HuggingFace model download
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.
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
A modular RAG pipeline library for .NET, built on Microsoft.Extensions.AI abstractions
Local-first .NET 10 sample integrating Microsoft Agent Framework with Foundry Local through a Microsoft.Extensions.AI IChatClient adapter.
C# demo for Claude Opus 5.5 — long‑context reasoning, agentic coding workflows, and structured responses using Microsoft.Extensions.AI + Azure Foundry.
This provides sample codes that uses Microsoft.Extensions.AI for locally running LLMs through Docker Model Runner, Foundry Local, Hugging Face and Ollama
To associate your repository with the microsoft-extensions-ai topic, visit your repo's landing page and select "manage topics."