Compendium.Adapters.OpenRouter 1.0.0

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

compendium-adapter-openrouter

OpenRouter AI provider adapter for the Compendium event-sourcing framework. Implements IAIProvider from Compendium.Abstractions.AI to give access to 100+ LLM models (Claude, GPT-4, Llama, Mistral, etc.) through a single OpenAI-compatible API.

Extracted from sassy-solutions/compendium per ADR-0006 (multi-repo adapter split). Built from template-compendium-adapter-dotnet.

Install

dotnet add package Compendium.Adapters.OpenRouter
services.AddOpenRouter(builder.Configuration.GetSection("OpenRouter"));

See docs/README.md for full configuration, model routing, fallback behaviour, and cost optimisation.

Versioning

This package continues the version sequence of Compendium.Adapters.OpenRouter originally published from the framework monorepo (last framework-published version: 1.0.0-preview.8). The first release from this repo is v1.0.0-preview.9. Versions are driven by git tags via MinVer — see docs/RELEASE.md.

Repository conventions

Aspect Choice
Target .NET 9, C# 13
Test framework xUnit 2.9.3 + FluentAssertions 6.12.1 + NSubstitute 5.1.0
Coverage currently 98.77 % line / 93.23 % branch (63 tests) — gate at 90 %
HTTP mocking RichardSzalay.MockHttp 7.0.0
Result pattern Result<T> from Compendium.Core
Test naming {SUT}Tests / {Method}_{Scenario}_{Expected} + AAA explicit

Build & test locally

dotnet restore
dotnet build -c Release
dotnet test -c Release --collect:"XPlat Code Coverage"

Releasing

Tag with a v prefix on main to publish to nuget.org + GitHub Packages:

git tag v1.0.0-preview.10
git push origin v1.0.0-preview.10

See docs/RELEASE.md for the full release procedure and required secrets.

License

MIT — Copyright © 2026 Sassy Solutions.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 111 5/14/2026
1.0.0-preview.9 554 5/13/2026
1.0.0-preview.8 919 5/2/2026
1.0.0-preview.7 43 5/2/2026
1.0.0-preview.6 84 5/2/2026
1.0.0-preview.5 89 4/30/2026
1.0.0-preview.4 161 4/26/2026
1.0.0-preview.3 52 4/26/2026
1.0.0-preview.2 54 4/25/2026
1.0.0-preview.1 153 4/24/2026