OllamaSharp is an open-source .NET library that provides strongly typed bindings for interacting with the Ollama API, making it easier for developers to integrate local large language models into C# and .NET applications. The project acts as a wrapper around the Ollama API, exposing all endpoints through asynchronous methods that allow developers to perform tasks such as generating text, creating embeddings, and managing models. It supports both local and remote Ollama instances, enabling developers to run AI models on their own hardware or connect to remote model servers. The library is designed to simplify integration by allowing developers to interact with AI models using just a few lines of code while still supporting advanced functionality. OllamaSharp also includes real-time streaming capabilities that allow applications to display generated responses incrementally as they are produced.

Features

  • .NET bindings that expose the full Ollama API through strongly typed methods
  • Real-time streaming of model responses during generation
  • Support for chat, text generation, embeddings, and model management
  • Integration with .NET AI frameworks such as Semantic Kernel
  • Model lifecycle tools including listing, pulling, creating, and deleting models
  • Compatibility with local or remote Ollama model servers

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow OllamaSharp

OllamaSharp Web Site

Other Useful Business Software
$300 Free Credits to Build on Google Cloud Icon
$300 Free Credits to Build on Google Cloud

New to Google Cloud? Get $300 in credits to explore Compute Engine, BigQuery, Cloud Run, Gemini Enterprise Agent Platform, and more.

Start your next project with $300 in free Google Cloud credit. Spin up VMs, run containers, query petabytes in BigQuery, or build agents with Gemini Enterprise Agent Platform. Once your credits are used, keep building with 20+ always-free tier products including Compute Engine, Cloud Storage, GKE, and Cloud Run functions. No commitment required—just sign up and start building.
Claim $300 Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of OllamaSharp!

Additional Project Details

Programming Language

C#

Related Categories

C# Large Language Models (LLM)

Registered

2026-03-09