Semantic Kernel

Microsoft's open-source, multi-language SDK for building and orchestrating AI agents and multi-agent systems.

Stars
★ 29k
Last updated
today dotnet-1.82.0
FARS reviewed
Nov 08, 2026
License
MIT
Primary language
C#

At a glance

How it runs
Library / SDKFramework
Works with
Universal · cross-platformOpenAI API
Cost
Free software; you pay for model usage
Setup effort
Medium · a few setup steps
You'll need
Python 3.10+.NET 10.0+JDK 17+Azure OpenAI API key or OpenAI API keyShell / CLINetwork accessLocal filesystem
Typical use
Backend teams adding an assistant to an existing .NET or Python service that must call internal business functions
Not a fit if
  • Teams planning long-term investment: Microsoft positions Agent Framework as the successor, so migration work is likely
  • End users who want a ready-made app rather than an SDK to code against
Website
aka.ms/semantic-kernel ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-12-04latest release dotnet-1.82.0 (2026-11-07)+3.3 ★/day over 7 days

What does this agent do, and when should you use it?

Semantic Kernel is a model-agnostic, MIT-licensed SDK from Microsoft for embedding LLM capabilities into your own applications and composing AI agents. It ships for Python, .NET and Java, with core building blocks such as the Kernel, ChatCompletionAgent, kernel functions/plugins, and multi-agent orchestration. Agents can be extended with native code functions, prompt templates, OpenAPI specs or Model Context Protocol servers, and paired with vector stores like Azure AI Search, Elasticsearch and Chroma for memory. It handles text, vision and audio inputs and can run against local runtimes such as Ollama, LMStudio or ONNX. Important context for adopters: the README states Semantic Kernel has been succeeded by Microsoft Agent Framework, now at 1.0, with a published migration guide.

You build an agent either through Kernel.CreateBuilder() or by instantiating ChatCompletionAgent and attaching a connector such as AzureChatCompletion or OpenAIChatCompletion to pick the underlying model. Agents load plugins: Python methods decorated with @kernel_function or .NET methods marked [KernelFunction] expose local capabilities to the model, which then decides which function to call, guided by FunctionChoiceBehavior.Auto() in PromptExecutionSettings. For multi-agent setups, specialist agents like BillingAgent or RefundAgent are passed as plugins to a TriageAgent that evaluates the request and hands it off. Output arrives as ChatMessageContent from agent.get_response() or InvokeAsync(), and ChatHistoryAgentThread preserves conversation context across turns. The library runs inside your process; model calls go out to whichever cloud or local endpoint you configured.

  1. Backend teams adding an assistant to an existing .NET or Python service that must call internal business functions
  2. Customer-support systems that route requests to specialist agents such as billing and refund handlers
  3. Applications that need agent memory and retrieval backed by a vector store like Azure AI Search, Elasticsearch or Chroma
  4. Projects requiring text, vision and audio inputs in one agent pipeline
  5. Teams with compliance constraints that run models locally via Ollama, LMStudio or ONNX
  6. Existing Semantic Kernel users planning the move to Microsoft Agent Framework via the official migration guide

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • pip install semantic-kernel
Environment variables
AZURE_OPENAI_API_KEY OPENAI_API_KEY
Runtime
Python 3.10+ · Java 17+
Install notes cover
Windows · macOS · Linux

How do you install or deploy this agent?

Set the environment variable for your model service. Azure OpenAI:

export AZURE_OPENAI_API_KEY=AAA....

Or OpenAI directly:

export OPENAI_API_KEY=sk-...

Python (requires Python 3.10+):

pip install semantic-kernel

.NET (requires .NET 10.0+):

dotnet add package Microsoft.SemanticKernel
dotnet add package Microsoft.SemanticKernel.Agents.Core

Java builds follow BUILD.md in the semantic-kernel-java repository and require JDK 17+. Windows, macOS and Linux are supported.

How do you use this agent?

A minimal working chat agent in Python:

import asyncio
from semantic_kernel.agents import ChatCompletionAgent
from semantic_kernel.connectors.ai.open_ai import AzureChatCompletion

async def main():
    agent = ChatCompletionAgent(
        service=AzureChatCompletion(),
        name="SK-Assistant",
        instructions="You are a helpful assistant.",
    )

    response = await agent.get_response(messages="Write a haiku about Semantic Kernel.")
    print(response.content)

asyncio.run(main())

Adding a plugin so the agent can call your own code:

from semantic_kernel.functions import kernel_function, KernelArguments
from semantic_kernel.connectors.ai.open_ai import OpenAIChatPromptExecutionSettings

class MenuPlugin:
    @kernel_function(description="Provides a list of specials from the menu.")
    def get_specials(self) -> str:
        return "Special Soup: Clam Chowder"

agent = ChatCompletionAgent(
    service=AzureChatCompletion(),
    name="SK-Assistant",
    instructions="You are a helpful assistant.",
    plugins=[MenuPlugin()],
    arguments=KernelArguments(OpenAIChatPromptExecutionSettings()),
)

When something fails, verify the API key environment variables are set and that your Azure OpenAI deployment or OpenAI model access is valid.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

FARS trust-control audit

Not found in source — apply before daily use
  • rollback or recovery path — Back up first, or work on a git branch or snapshot, so its changes can be undone.

What are this agent's strengths and limitations?

Pros
  • Model flexibility: built-in connectors for OpenAI, Azure OpenAI, Hugging Face and NVidia, plus local runtimes Ollama, LMStudio and ONNX
  • Mature plugin system spanning native code functions, prompt templates, OpenAPI specs and Model Context Protocol
  • Multi-agent orchestration is first-class: specialist agents can be mounted directly as plugins on a coordinating agent
  • SDKs for Python, .NET and Java, with dedicated C# and Python API reference docs
  • MIT license, usable in commercial projects
Limitations
  • Microsoft positions Agent Framework as the successor, so long-term projects should budget for migration
  • Cloud model usage requires your own Azure OpenAI or OpenAI key and is billed per use
  • The three language SDKs differ in API surface, so examples and docs must be consulted per language
  • Multi-agent handoffs and automatic function calling mean extra model round-trips, raising latency and cost

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Semantic Kernel This agent 47 · Major gaps Library / SDKFree + model costs ★ 29k today C# OpenAI API
MassGen 50 · Major gaps CLIFree + model costs ★ 1.2k 5mo ago Python Codex · Claude Code · OpenAI API · Claude API
AgentCrew 61 · Some gaps CLIFree + model costs ★ 227 1d ago Python OpenAI API · Claude API
tRPC-Agent-Go 56 · Major gaps Library / SDKFree + model costs ★ 2k 1d ago Go OpenAI API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
47/ 100 5-point scale 2.4 / 5
Trust 10/29
Reliability 6/14
Adaptability 10/18
Convention 10/18
Effectiveness 7/13
Verifiability 4/8
Why each dimension lost points
Trust10 / 29 · 1.7/5

The code shows that agents support plugins/tool calls, and the README's .NET example enables automatic function choice. The supplied material does not explain per-action user confirmation or a least-privilege policy, so least privilege and confirmation score 1. The README names several model services and shows API-key environment variables, and SECURITY.md provides a vulnerability-reporting path, but the evidence does not adequately describe runtime flows for prompts, conversation data, and secrets, sensitive-data handling, or dependency review; each scores 1. Controls or recovery for external side effects are not documented, so rollback scores 0. The license, copyright, and Microsoft security-reporting responsibility are clear, earning source attribution 2; official organization identity is used only as attribution evidence.

Reliability6 / 14 · 2.1/5

The README's Python multi-agent example declares a thread without showing initialization as reusable conversation state, and it references OpenAIChatCompletion without showing its import. These visible inconsistencies lower self-consistency to 1. The material lists external model services and package installation methods, but does not establish dependency availability or compatibility commitments, so that criterion scores 1. The Agent base class gives explicit error messages for deleted-thread states, and the README offers authentication and model-availability troubleshooting, earning failure messages 2. No inference of successful execution or test quality is made.

Adaptability10 / 18 · 2.8/5

The README addresses developers building anything from a simple assistant to multi-agent workflows, with Python and .NET examples and scenarios spanning multiple models, plugins, vector stores, and multimodal inputs; audience and scenarios score 3. Tool-use permission boundaries and capability limits are not systematically explained, so capability boundaries and trigger precision each score 1. Requirements cover Python, .NET, Java, and Windows, macOS, and Linux, though Java installation points to external build instructions; environment fit scores 2.

Convention10 / 18 · 2.8/5

The README, FAQ, decision record, and security file provide the main entry points, so information architecture scores 2. Installation commands, key setup, and troubleshooting are present, but Java installation details are external and the FAQ contains an obvious typo/incomplete command, so install notes score 2. The migration notice says Semantic Kernel has been succeeded by Microsoft Agent Framework while the page still presents Semantic Kernel as the current agent framework, lowering naming stability to 1. The FAQ, quickstarts, and examples are useful but have the noted issues, earning examples and FAQ 2. The decision record discusses risks, but the supplied material lacks a complete user-facing limitations list, so known limitations score 1. The full MIT license text earns 3. The supplied material does not provide a clear release change history, so versioning/changelog scores 1. Contribution guidance, community channels, and identified official maintainers provide a maintenance path, earning maintenance responsibility 2.

Effectiveness7 / 13 · 2.7/5

The examples show concrete agent, plugin, and multi-agent invocation patterns, but some configuration or state handling is incomplete, so output usability scores 2. Model-agnostic abstractions, plugins, and workflow capabilities show clear integration value in the evidence, earning marginal value 2. Cost, latency, token use, and deployment tradeoffs are not discussed, so cost benefit scores 1.

Verifiability4 / 8 · 2.5/5

The main product claims can be traced to README feature descriptions and examples; some enterprise-grade reliability/security claims are not supported by the supplied material, so claim traceability scores 2. The README, decision record, code, and security file provide complementary evidence, but the packet is sampled and some files are truncated, so cross-source corroboration scores 1. The decision record distinguishes proposals, risks, and the selected approach, helping separate plans from decisions; promotional README claims are not always substantiated, so fact/inference separation scores 2.

Risks and how to mitigate them
  • Not found in source: rollback or recovery pathBack up first, or work on a git branch or snapshot, so its changes can be undone.
  • Plugins can execute tool logic; integrators should define authorization scope, confirmation rules, and recovery for external side effects before deployment.
  • The migration notice coexists with current-framework promotion, and the Python multi-agent example has visible import and thread-state questions; verify interfaces against the complete documentation and implementation at the pinned revision.
  • This review uses only the supplied static sample. No code was run, and dependency vulnerabilities or runtime data handling were not verified.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision df1cb33d0d32 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/semantic-kernel.svg)](https://followagents.com/en/agents/semantic-kernel)
<a href="https://followagents.com/en/agents/semantic-kernel"><img src="https://followagents.com/badge/semantic-kernel.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. dotnet-1.82.0
    Release notes excerpt
    Changes: * df1cb33d0d32699c8d6a2e5b3ea7e5f8990d86d5 .Net: Bump package version to 1.82.0 (#14721) * d08a482fab9c6980fa50de5eee79895ba702069d Python: Prepare 1.47.0 release and consolidate dependency updates (#14720) [ #14708, #14596, #14597, #14598, #14599, #14600, #14627 ] * 28c0d60222b128efc5a41d825ea74e8836231e9c .Net: Harden structured data mutation boundaries (#14718) * 1a3ccd8dda169ddf195e40e39c86082a3232eea4 .Net: Bind validated HTTP addresses to connections (#14719) …
    View on GitHub ↗
  2. python-1.47.0
    Release notes excerpt
    Python compatibility This release requires Python 3.11 or later. Python 3.10 support has been removed. Supported and tested Python versions are 3.11 through 3.14. Includes consolidated Python dependency updates and the bug fixes listed below. What's Changed * .Net: Remove migrated .NET Milvus connector by @adamsitnik in https://github.com/microsoft/semantic-kernel/pull/14682 * .Net: Bump Aspire.Azure.Search.Documents from 13.4.6 to 13.5.4 by @dependabot[bot] in https://github.com/microsoft/semantic-kernel/pull/14499 …
    View on GitHub ↗
  3. python-1.46.0
    Release notes excerpt
    What's Changed * .Net: Bound element nesting depth in XML prompt parsing by @rogerbarreto in https://github.com/microsoft/semantic-kernel/pull/14504 * .Net: Improve OpenAPI HTTP connection handling by @SergeyMenshykh in https://github.com/microsoft/semantic-kernel/pull/14570 * Python: Avoid logging function argument values by @eavanvalkenburg in https://github.com/microsoft/semantic-kernel/pull/14574 * .Net: Remove migrated .NET Chroma connector by @adamsitnik with @Copilot in https://github.com/microsoft/semantic-kernel/pull/14579 …
    View on GitHub ↗

FAQ

Does Semantic Kernel cost anything?
The SDK itself is free under MIT. However, the documented quickstarts connect to Azure OpenAI or OpenAI, where you pay per use with your own key; running models locally through Ollama, LMStudio or ONNX shifts cost to your own hardware.
Should a brand-new project adopt Semantic Kernel today?
The README states Semantic Kernel has been succeeded by Microsoft Agent Framework, which is now at 1.0 with stable APIs and a long-term support commitment and a migration guide from SK. Evaluate MAF for new work; existing SK deployments can follow the migration path.
Which languages and operating systems are supported?
Python 3.10+, .NET 10.0+ and JDK 17+, on Windows, macOS and Linux. Java instructions live in the separate semantic-kernel-java repository.
How does an agent reach my own code or external services?
Through plugins: decorate methods with @kernel_function in Python, or mark and register [KernelFunction] methods in kernel.Plugins for .NET; OpenAPI specifications and MCP servers are also supported. With FunctionChoiceBehavior.Auto(), the model chooses which function to invoke.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts