SemanticRouter.AspNetCore 0.6.1

dotnet add package SemanticRouter.AspNetCore --version 0.6.1
                    
NuGet\Install-Package SemanticRouter.AspNetCore -Version 0.6.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SemanticRouter.AspNetCore" Version="0.6.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SemanticRouter.AspNetCore" Version="0.6.1" />
                    
Directory.Packages.props
<PackageReference Include="SemanticRouter.AspNetCore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SemanticRouter.AspNetCore --version 0.6.1
                    
#r "nuget: SemanticRouter.AspNetCore, 0.6.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SemanticRouter.AspNetCore@0.6.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SemanticRouter.AspNetCore&version=0.6.1
                    
Install as a Cake Addin
#tool nuget:?package=SemanticRouter.AspNetCore&version=0.6.1
                    
Install as a Cake Tool

SemanticRouter.AspNetCore

ASP.NET Core integration for SemanticRouter.NET: it routes each prompt to a local model, a subscription CLI or a paid API, by what the prompt needs. Registration from configuration, the routing middleware for the OpenAI chat-completions, OpenAI Responses and Anthropic Messages protocols, HTTP and CLI connectors, and the dashboard with its admin API.

dotnet add package SemanticRouter.AspNetCore

Dispatch mode, where your application is the gateway that clients such as Claude Code or the OpenAI SDKs point at:

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddSemanticPromptRouting(builder.Configuration.GetSection("SemanticRouter"));

var app = builder.Build();
app.UsePromptRouter();          // POST /v1/chat/completions, /v1/messages and /v1/responses
app.MapRouterModels();          // GET /v1/models
app.MapRouterDashboard();       // the dashboard and admin API at /router
app.Run();

The SemanticRouter section names the connectors, models, tiers and routes. To use the router without writing an application, install the semantic-router tool.

MIT licence; the dashboard embeds the Inter and Fira Sans fonts under the SIL Open Font License 1.1. The packages are versioned together and depend on each other exactly: update all the SemanticRouter packages an application uses at once.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on SemanticRouter.AspNetCore:

Package Downloads
SemanticRouter.Embeddings.Onnx

In-process sentence embeddings for SemanticRouter with ONNX Runtime: routes prompts with no embedding server running. Downloads a small model (all-MiniLM-L6-v2 or bge-small-en-v1.5, checksum-verified) on first use, or loads one from disk.

SemanticRouter.Connectors.Copilot

GitHub Copilot connector for SemanticRouter, built on GitHub's official Copilot SDK: routes prompts to your Copilot subscription with native streaming, tool calls and model discovery.

SemanticRouter.Storage.Sqlite

Durable state for SemanticRouter in one SQLite file: model cooldowns, tool-call affinity, the routing activity log and the configuration history survive restarts and can be shared by instances on one machine.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.6.1 536 10/27/2026
0.5.0 1,233 10/16/2026
0.4.0 133 10/16/2026
0.3.0 140 10/16/2026
0.2.1 149 10/14/2026