title: "LM-Kit.NET - Local AI Agent Platform for .NET Developers"
Local AI Agent Platform for .NET Developers
Your AI. Your Data. On Your Device.
LM-Kit.NET is the complete local AI stack for .NET: high-performance inference, multi-agent orchestration, document intelligence, RAG pipelines, and production-ready tooling in a single NuGet package. Everything runs in-process with zero cloud dependency and zero external dependencies, giving you full control over data, latency, and cost from C# or VB.NET.
Add AI to any .NET app in minutes. Install one NuGet package and start building. No Python runtimes, no containers, no external services, no dependencies to manage. LM-Kit.NET fits into your existing architecture and deployment pipeline.
Built by experts, updated continuously. Our team ships the latest advances in generative AI, symbolic AI, and NLP research directly into the SDK. Check our changelog to see the pace of innovation.
From prompts to production agents. Multi-agent orchestration, resilience policies, and comprehensive observability let you ship reliable AI workflows, not just prototypes.
Complete data sovereigntySensitive information stays within your infrastructure
Zero network latencyResponses as fast as your hardware allows
No per-token costs
Unlimited inference once deployed
Offline operationWorks without internet connectivity
Regulatory complianceGDPR, HIPAA, and data residency requirements by design
What You Can Build
Agents and Automation
Autonomous AI agents that reason, plan, and execute multi-step tasks using a growing catalog of built-in tools or your custom APIs
Multi-agent systems with pipeline, parallel, router, and supervisor orchestration patterns
Research assistants that search the web, analyze results, and synthesize findings using ReAct planning
Task automation workflows with agent delegation, resilience policies, and comprehensive observability
Document and Knowledge Workflows
RAG-powered knowledge assistants over local documents, databases, and enterprise data sources
PDF chat and document Q&A with retrieval, reranking, and grounded generation
OCR and extraction pipelines for invoices, forms, IDs, emails, and scanned documents
Intelligent document splitting that detects logical boundaries in multi-page PDFs using vision models
Multimodal and Compliance
Voice-driven assistants with speech-to-text, reasoning, and function calling
Compliance-focused text intelligence with PII extraction, NER, classification, and sentiment analysis
Core Capabilities
🤖 AI Agents and Orchestration
Build autonomous AI agents that reason, plan, and execute complex workflows within your applications.
Agent Framework - Complete agent infrastructure with Agent, AgentBuilder, AgentExecutor, and AgentRegistry
Multi-Agent Orchestration - Coordinate multiple agents with PipelineOrchestrator, ParallelOrchestrator, RouterOrchestrator, and SupervisorOrchestrator
Planning Strategies - ReAct, Chain-of-Thought, Tree-of-Thought, Plan-and-Execute, and Reflection
Agent-to-Agent Delegation - Delegate tasks to specialized sub-agents with DelegationManager and DelegateTool
Agent Templates - Pre-built templates including Chat, Assistant, Code, Research, Analyst, Planner, and more
Extensive Built-in Tools - A growing catalog of ready-to-use tools across eight categories (Data, Text, Numeric, Security, Utility, Document, IO, Net), each following the 1 tool = 1 feature atomic design
MCP Client Support - Connect to Model Context Protocol servers for extended tool access, resources, and prompts
Function Calling - Let models dynamically invoke your application's methods with structured parameters
Microsoft.Extensions.AI - Plug LM-Kit.NET into any .NET application that targets the standard IChatClient and IEmbeddingGenerator abstractions via the open-source LM-Kit.NET.ExtensionsAI bridge package
Vector Databases - Integrate with Qdrant via open-source connectors
MCP Servers - Connect to Model Context Protocol servers for extended tool access
No data transmission - Content never leaves your network
No third-party access - No external services process your data
Audit-friendly - Complete visibility into AI operations
Air-gapped deployment - Works in disconnected environments
This architecture simplifies compliance with GDPR, HIPAA, SOC 2, and other regulatory frameworks.
Getting Started
Basic Chat
using LMKit.Model;
using LMKit.TextGeneration;
// Load a model
var model = new LM("path/to/model.gguf");
// Create a conversation
var conversation = new MultiTurnConversation(model);
// Chat
var response = await conversation.SubmitAsync("Explain quantum computing briefly.");
Console.WriteLine(response);
AI Agent with Tools
using LMKit.Model;
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn;
// Load a model
var model = new LM("path/to/model.gguf");
// Build an agent with built-in tools
var agent = Agent.CreateBuilder(model)
.WithSystemPrompt("You are a helpful research assistant.")
.WithTools(tools =>
{
tools.Register(BuiltInTools.WebSearch);
tools.Register(BuiltInTools.Calculator);
tools.Register(BuiltInTools.DateTimeNow);
})
.WithPlanning(PlanningStrategy.ReAct)
.Build();
// Execute a task
var result = await agent.ExecuteAsync("What is the current population of Tokyo?");
Console.WriteLine(result.Response);