LNS.AI.OpenRouter 1.0.0-rc.1

This is a prerelease version of LNS.AI.OpenRouter.
dotnet add package LNS.AI.OpenRouter --version 1.0.0-rc.1
                    
NuGet\Install-Package LNS.AI.OpenRouter -Version 1.0.0-rc.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="LNS.AI.OpenRouter" Version="1.0.0-rc.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LNS.AI.OpenRouter" Version="1.0.0-rc.1" />
                    
Directory.Packages.props
<PackageReference Include="LNS.AI.OpenRouter" />
                    
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 LNS.AI.OpenRouter --version 1.0.0-rc.1
                    
#r "nuget: LNS.AI.OpenRouter, 1.0.0-rc.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 LNS.AI.OpenRouter@1.0.0-rc.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=LNS.AI.OpenRouter&version=1.0.0-rc.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=LNS.AI.OpenRouter&version=1.0.0-rc.1&prerelease
                    
Install as a Cake Tool

LNS.AI.OpenRouter

OpenRouter provider adapter for LNS.AI.

Registers the OpenRouter model provider through Hosting's UseOpenRouter() extension. Maps Core ModelRequest/ModelResponse to the OpenAI-compatible OpenRouter API via the OpenAI .NET SDK with a custom endpoint. Wire types remain internal.

Usage

builder.Services
    .AddAgents()
    .UsePipeline()
    .UseOpenRouter(options => configuration.Bind("OpenRouter", options))
    .AddAgent<MyAgent>()
    .Register();

Model ids use OpenRouter slugs (e.g. openai/gpt-4o, anthropic/claude-3.5-sonnet).

See OPENROUTER_PROVIDER_ARCHITECTURE.md.

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 (1)

Showing the top 1 NuGet packages that depend on LNS.AI.OpenRouter:

Package Downloads
LNS.AI.Hosting

Composition root and hosting infrastructure for LNS.AI.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-rc.1 102 7/21/2026
1.0.0-preview.1 95 7/17/2026