BaGet

nuget.org

nuget.org, the “Gallery”, is the default public NuGet feed. Publish open-source packages there; use BaGet Extension for private or mirrored feeds.

Gallery code (self-hosting is possible but not simple; the hosting wiki was last edited in 2018, so verify it before use):

BaGet Extension vs nuget.org

Feature nuget.org BaGet Extension
Visibility Public; no private packages Public or internal; private repositories with Basic auth or API key reads (access control)
V3 (push, restore, search, autocomplete, registration) Yes Yes (registration not paged)
V2 (OData) Yes Yes, on by default (Feeds:EnableV2); $skip/$top, searchTerm, id, includePrerelease, semVerLevel; $filter/$orderby/$select/$expand ignored
Symbols (.snupkg) Yes Yes, portable PDBs only
Catalog Yes Yes, relational DB only (catalog rebuild to backfill)
Vulnerability info Yes Manual entry through the API, plus scanning against OSV.dev (online or offline copy), off by default
Deprecation Yes Manual (API or manage page)
Accounts, organizations, owners Yes (Microsoft/Entra login) Yes, on by default (Accounts:Enabled=true in shipped settings); optional OpenID Connect
API keys Yes: scoped (glob), expiring; new keys max 30 days since 2026-08-17, older keys expire 2026-11-01 Global ApiKey, plus scoped expiring per-account keys (on with accounts)
Two-factor sign-in Required since 2022-03-08 (via MSA/Entra) TOTP + recovery codes
ID prefix reservation Yes Not supported (per-ID verified-owner flag only, no UI)
Validation before serving Yes Opt-in (Validation:Enabled), in-process; no malware scanner built in
Repository signing Yes Opt-in (needs a certificate)
Package size limit 250 MB About 2 GB for push and upload (multipart limit); IIS 250 MB
Deletion Generally not supported (policy) Unlist (default) or hard delete; overwrite off by default
Mirroring n/a Remote repositories (per repository) and the optional Mirror:Enabled mirror; search does not query upstream
Download statistics Not re-verified Totals plus /stats page; no per-day
Search Full index Package ID substring only (Database), or Azure Search
Administration Admin-only Settings page (edits settings, marks restart-required ones); copy of all data between SQLite, SQL Server, PostgreSQL and MySQL behind a read-only gate; optional SMTP email  
Web UI Full Gallery Search, details, upload, manage, stats, account
Storage / DB Azure (Blob, SQL, Search, CDN) FileSystem, Azure Blob, S3, GCS, Aliyun OSS; SQLite, SQL Server, PostgreSQL, MySQL, Azure Table
Platform Azure-hosted service .NET 10, Windows/Linux/macOS, Docker, IIS
Scale / HA Global, CDN-backed Single node, or several with high availability (database, object store and Redis shared)
Licence / cost Free service; Gallery code Apache-2.0 MIT, self-hosted, infrastructure cost only

Architecture

When to choose which

See also importing from nuget.org and configuration.

Sources

Checked 2026-10.