Back to directory

OllamaSharp

A .NET client library for the Ollama API, recommended by Microsoft and used by Semantic Kernel, .NET Aspire and Microsoft.Extensions.AI, covering chat, embeddings, model management and tool calling.

OllamaSharp

OllamaSharp provides .NET bindings for the Ollama API, so a .NET application can talk to a local or remote Ollama server in a few lines of code. It covers every Ollama API endpoint, including chat, embeddings, listing, pulling, creating and deleting models, streams responses and model-pull progress in real time, and supports vision models for multimodal input.

Its tool-calling support uses source generators for sophisticated function calling, and it offers opt-in Native AOT support through a custom JsonSerializerContext for improved startup performance. It powers Ollama support inside Microsoft Semantic Kernel, .NET Aspire and Microsoft.Extensions.AI, and is written in C# under the MIT license.

More in Inference

See all 770
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • Lifeboat

    iterate.ai

    A local inference server that puts an OpenAI- and Anthropic-compatible API in front of open-weight language models running on hardware you control, from a laptop to a GPU cluster.

  • Claude S40

    github.com

    An unofficial Claude chat client for 2007-era Nokia Series 40 phones, built as a Java ME app plus a small Go relay server, with web search, reading mode and saved chats.