awaescher/OllamaSharp
A .NET library that wraps the Ollama API for running and interacting with LLMs locally.

Velocity · 7d
+1.4
★ / day
Trend
→steady
star history
OllamaSharp is a .NET SDK that provides typed bindings to all Ollama API endpoints, enabling C# developers to integrate local LLM inference into their applications. It supports chat completions, text generation, embeddings, model management, streaming responses, tool calling via source generators, and vision models. The library powers Microsoft’s own AI frameworks including Semantic Kernel and is integrated into the .NET Aspire ecosystem.