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
<PackageReference Include="Sylin.Koan.AI.Connector.LMStudio" Version="1.0.33" />
<PackageVersion Include="Sylin.Koan.AI.Connector.LMStudio" Version="1.0.33" />
<PackageReference Include="Sylin.Koan.AI.Connector.LMStudio" />
paket add Sylin.Koan.AI.Connector.LMStudio --version 1.0.33
#r "nuget: Sylin.Koan.AI.Connector.LMStudio, 1.0.33"
#:package Sylin.Koan.AI.Connector.LMStudio@1.0.33
#addin nuget:?package=Sylin.Koan.AI.Connector.LMStudio&version=1.0.33
#tool nuget:?package=Sylin.Koan.AI.Connector.LMStudio&version=1.0.33
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
DefaultModelis 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 | 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
- Microsoft.Extensions.AI (>= 10.8.0)
- Microsoft.Extensions.Configuration (>= 10.0.10)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.10)
- Microsoft.Extensions.DependencyInjection (>= 10.0.10)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Http (>= 10.0.10)
- Microsoft.Extensions.Logging (>= 10.0.10)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Logging.Console (>= 10.0.10)
- Microsoft.Extensions.Options (>= 10.0.10)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.10)
- Microsoft.Extensions.Options.DataAnnotations (>= 10.0.10)
- Newtonsoft.Json (>= 13.0.4)
- Sylin.Koan.AI (>= 1.0.29 && < 2.0.0)
- Sylin.Koan.AI.Contracts (>= 1.0.22 && < 2.0.0)
- Sylin.Koan.Core (>= 1.0.39 && < 2.0.0)
- System.Numerics.Tensors (>= 10.0.10)
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 |