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

Not currently ranked — collecting fresh signals.
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.
Frequently asked
- What is awaescher/OllamaSharp?
- A .NET library that wraps the Ollama API for running and interacting with LLMs locally.
- Is OllamaSharp open source?
- Yes — awaescher/OllamaSharp is open source, released under the MIT license.
- What language is OllamaSharp written in?
- awaescher/OllamaSharp is primarily written in C#.
- How popular is OllamaSharp?
- awaescher/OllamaSharp has 1.4k stars on GitHub.
- Where can I find OllamaSharp?
- awaescher/OllamaSharp is on GitHub at https://github.com/awaescher/OllamaSharp.