SemanticRouter.AspNetCore
0.6.1
dotnet add package SemanticRouter.AspNetCore --version 0.6.1
NuGet\Install-Package SemanticRouter.AspNetCore -Version 0.6.1
<PackageReference Include="SemanticRouter.AspNetCore" Version="0.6.1" />
<PackageVersion Include="SemanticRouter.AspNetCore" Version="0.6.1" />
<PackageReference Include="SemanticRouter.AspNetCore" />
paket add SemanticRouter.AspNetCore --version 0.6.1
#r "nuget: SemanticRouter.AspNetCore, 0.6.1"
#:package SemanticRouter.AspNetCore@0.6.1
#addin nuget:?package=SemanticRouter.AspNetCore&version=0.6.1
#tool nuget:?package=SemanticRouter.AspNetCore&version=0.6.1
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.
- Using it in your application (dispatch and annotate modes)
- Configuration reference and Providers
- Dashboard
- Changelog
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 | Versions 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. |
-
net10.0
- SemanticRouter.Core (= 0.6.1)
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.