Back to directory

Ollama SDK for .NET

A C# client for the Ollama API, auto-generated from its OpenAPI specification, covering chat, streaming completions, embeddings, model management and tool calling for .NET applications.

Ollama SDK for .NET

Ollama SDK for .NET is a fully generated C# client for Ollama's OpenAPI specification, kept current with automatic preview releases whenever the upstream spec changes. It covers chat, embeddings, listing, pulling, creating and deleting models, and other Ollama API endpoints, and supports .NET Framework, .NET Standard 2.0 and modern .NET features such as nullability, trimming and NativeAOT.

A source generator lets a developer define tool functions natively through C# interfaces for function calling, and the library implements Microsoft.Extensions.AI's IChatClient and IEmbeddingGenerator interfaces so it plugs into that ecosystem. MIT licensed.

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.