Sylin.Koan.AI.Connector.LMStudio 1.0.33

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

Sylin.Koan.AI.Connector.LMStudio

LM Studio provider for Koan AI: OpenAI-compatible chat, streaming, embeddings, model listing, and readiness.

The generated product surface owns support maturity; this page owns LM Studio setup and limits.

Install

dotnet add package Sylin.Koan.AI.Connector.LMStudio

The reference activates the provider through the normal Koan boot path; no provider-specific setup method exists:

using Koan.AI;
using Koan.Core;
using Microsoft.Extensions.Hosting;

var builder = Host.CreateApplicationBuilder(args);
builder.Services.AddKoan();
using var app = builder.Build();
await app.StartAsync();

Console.WriteLine(await Client.Chat("Summarize this release in one sentence."));

In Development, Koan discovers a healthy LM Studio server at its conventional local address. LM Studio is modeled honestly as an external runtime: Koan does not claim to install or launch the desktop application.

Exact configuration

{
  "Koan": {
    "Ai": {
      "LMStudio": {
        "Endpoints": ["http://localhost:1234"],
        "DefaultModel": "qwen3-4b",
        "ApiKey": "optional-token",
        "RequestTimeoutSeconds": 120
      }
    }
  }
}

For one endpoint, ConnectionStrings:LMStudio is supported instead of Endpoints. Do not configure both. Environment configuration uses ordinary .NET key mapping, for example Koan__Ai__LMStudio__ApiKey and ConnectionStrings__LMStudio.

Explicit placement works in every environment. Automatic discovery follows Koan:Ai:AutoDiscoveryEnabled and, outside Development, Koan:Ai:AllowDiscoveryInNonDev. Discovery validates /v1/models and, when a default model is declared, requires that model to appear in the catalog.

Runtime contract

  • A ready provider publishes one source named lmstudio; ordered endpoint meshes are supported.
  • When DefaultModel is absent, requests must supply a model.
  • A configured default model that is unavailable produces degraded readiness; an explicit per-request model may still work.
  • Authentication, serialization, HTTP, and cancellation failures surface to the caller.
  • No reachable automatic candidate is normal inactivity, allowing another AI provider to serve the application.
  • Conflicting explicit placement and unresolved explicit Zen Garden intent fail startup correctively.

Boundaries

The provider requires a separately installed and running LM Studio server. Koan does not launch the desktop app, load a model, manufacture credentials, retry inference, or guarantee OpenAI compatibility beyond the operations implemented by this adapter.

See TECHNICAL.md for discovery, ownership, and readiness details.

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

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.33 80 9/10/2026
1.0.31 66 9/10/2026
1.0.29 60 9/9/2026
1.0.27 60 9/9/2026
1.0.23 89 9/9/2026
1.0.19 102 9/5/2026
1.0.18 126 8/30/2026
1.0.17 95 8/30/2026
1.0.16 108 8/28/2026
1.0.15 93 8/28/2026
1.0.14 88 8/28/2026
1.0.13 98 8/28/2026
1.0.12 105 8/27/2026
1.0.8 110 8/25/2026
1.0.7 110 8/24/2026
1.0.5 105 8/22/2026
1.0.3 117 8/20/2026
1.0.2 99 8/20/2026
1.0.0 140 8/14/2026
0.20.5 127 7/23/2026
Loading failed