Client Library - .NET
Add Auth, Database, Storage, and Realtime to your .NET app.
Use the Supabase .NET SDK from C#, F#, or any other .NET language to sign in users, query Postgres, store files, and listen for database changes.
Key benefits
- Official support: Supabase maintains the SDK in
supabase/supabase-csharp, so Supabase triages its issues and ships its fixes. - One version for every package: All Supabase .NET packages ship under one version number, so you always know which ones go together.
- ASP.NET Core ready:
Supabase.Extensions.DependencyInjectionruns every client on pooledHttpClients, so heavy traffic doesn't use up your connections. - Retries with backoff: Set
RetryOptionson a client so the request retries after a brief network error instead of failing. - Publishable and secret keys: Ship the publishable key in client apps and keep the secret key on your server, so a leaked app key can't bypass RLS.
- Web, desktop, mobile, and game apps: Every package targets
netstandard2.1, so the same packages run in ASP.NET Core, MAUI, and Unity.
When to use the .NET SDK
- You build a .NET app and want Supabase Auth, Database, Storage, Realtime, or Edge Functions in it
- You build web apps with ASP.NET Core, desktop and mobile apps with MAUI, or games with Unity
- Your team only uses SDKs the vendor maintains
Get started
In the dashboard, click Connect, pick .NET, and choose ASP.NET Core & Blazor, Console / desktop, or Unity to get setup code. Or run dotnet add package Supabase. Read the C# reference.