#234234th of 242 in Agent frameworks and SDKs

betalgo/openai

Community .NET client library for the OpenAI API

Stars
3k
License
MIT
Last commit
Dec 2025
Last release
Jul 2025
Language
C#
Stars, last 30 weeks+43
2 May 2026: 2,977 stars9 May 2026: 2,978 stars16 May 2026: 2,980 stars23 May 2026: 2,982 stars30 May 2026: 2,984 stars6 Jun 2026: 2,986 stars13 Jun 2026: 2,986 stars20 Jun 2026: 2,988 stars27 Jun 2026: 2,990 stars4 Jul 2026: 2,992 stars11 Jul 2026: 2,993 stars18 Jul 2026: 2,994 stars25 Jul 2026: 2,996 stars1 Aug 2026: 2,998 stars8 Aug 2026: 3,000 stars15 Aug 2026: 3,001 stars22 Aug 2026: 3,002 stars29 Aug 2026: 3,004 stars5 Sept 2026: 3,005 stars12 Sept 2026: 3,006 stars19 Sept 2026: 3,008 stars26 Sept 2026: 3,009 stars3 Oct 2026: 3,009 stars10 Oct 2026: 3,011 stars17 Oct 2026: 3,013 stars24 Oct 2026: 3,014 stars31 Oct 2026: 3,015 stars7 Nov 2026: 3,017 stars14 Nov 2026: 3,017 stars21 Nov 2026: 3,019 stars28 Nov 2026: 3,020 stars

2,977 on 2 May 20263,020 on 28 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Betalgo.Ranul.OpenAI is a C# NuGet package that wraps OpenAI's HTTP API, including chat completions, images, function tools and the Realtime API. It can be constructed directly or registered through ASP.NET dependency injection with AddOpenAIService. The repo includes an OpenAI.Playground sample project, and a separate experimental Utilities package is published.

Who it is for: .NET developers calling the OpenAI API from C# apps

Strengths

  • Dependency injection via AddOpenAIService, with options bound from secrets.json
  • Covers Realtime API, chat completions, images and function tool schemas
  • MIT license; OpenAI.Playground sample project for trying calls
  • Contracts project centralizes request/response models and enums

Weaknesses

  • README admits not all methods are thoroughly tested or fully documented
  • Package ID and namespace changed from Betalgo.OpenAI to Betalgo.Ranul.OpenAI
  • Dropped .NET 6 and .NET 7 support in 9.0.0
  • Contracts migration is partial; image edit and variation still return legacy responses

What it needs

  • no GPU
  • Needs OpenAI API key, .NET 9
  • Models: OpenAI GPT-4o, OpenAI o1, OpenAI o3-mini

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in Agent frameworks and SDKs

See all 242
Also in Agent frameworks and SDKs
RankProjectScore
#232demogptPython library of agents, tools and RAG, plus a Streamlit app generator Live demo ↗ (opens in a new tab)1.9k starsMIT17 out of 100
#233sreTypeScript agent runtime and SDK with swappable LLM, storage and vector DB connectors1.3k starsMIT15 out of 100
#235autopromptPrompt optimizer that tunes prompts against synthetic edge-case benchmarks3k starsApache-2.012 out of 100
#236kg-genPython library that extracts knowledge graphs from text or chats using LLMs1.3k starsno license11 out of 100
#237gptswarmPython library that builds LLM agents as graphs and optimizes their connections Live demo ↗ (opens in a new tab)1.1k starsMIT9 out of 100