
Semantic Kernel
Open-source SDK for building AI agents and multi-agent apps in Python, .NET and Java.
- Stars
- 28.7k
- Forks
- 4.9k
- Licence
- MIT
- Language
- C#
- Last update
- 4 days ago
- Type
- Library
What it is
Semantic Kernel is a model-agnostic SDK from Microsoft that lets developers connect large language models (such as OpenAI or Azure OpenAI models) to their own apps, add tools and plugins, and orchestrate one or more AI agents. The README says it is now succeeded by Microsoft Agent Framework, so new projects should check that project first.
- Build a chat assistant with custom instructions using ChatCompletionAgent
- Give an agent plugin functions, such as a menu lookup, that it can call
- Request structured output in a defined format from a model
- Connect an app to vector stores such as Azure AI Search, Elasticsearch or Chroma
- Run models locally with Ollama, LMStudio or ONNX
Great for
- Developers already using Azure OpenAI or OpenAI who want a structured SDK for agents
- Teams working in .NET, Python or Java who want one framework across languages
- Projects that need plugins built from native code, prompt templates, OpenAPI specs or MCP
- Existing Semantic Kernel users maintaining or migrating older code
Not ideal for
- Non-programmers: it is a developer SDK and needs code to use, so no-code users should look elsewhere
- Teams starting fresh who want the newest path: the README directs users to Microsoft Agent Framework as the successor
- Simple scripts that only need one direct API call, where an SDK adds more structure than needed
How to get it
- 1
Install with a package manager
You'll need: Python 3.10+ or .NET 10.0+ or JDK 17+ · An Azure OpenAI or OpenAI API key
Set Azure OpenAI API key
export AZURE_OPENAI_API_KEY=AAA....Set OpenAI API key (alternative)
export OPENAI_API_KEY=sk-...Install Python package
pip install semantic-kernelInstall .NET packages
dotnet add package Microsoft.SemanticKernel - 2
Run it
- Install the package for your language using the commands above
- Set your Azure OpenAI or OpenAI API key as an environment variable
- Copy the Basic Agent quickstart for Python or .NET from the README
- Run it to get a short haiku response from the agent
- 3
Get the most out of it
- Add plugins with the kernel_function decorator (Python) or KernelFunction attribute (.NET) to let agents call your code
- Use structured output settings to get replies in a defined format
- Connect vector database integrations such as Azure AI Search or Chroma for retrieval
- Try the Multi-Agent System example in the README to coordinate specialist agents
Downloads
Strengths
- Supports several models and providers, including OpenAI, Azure OpenAI, Hugging Face and NVidia, per the README
- Offers examples in Python and C# with matching quickstarts
- Permissive MIT license and a large public project with about 28,700 stars
Trade-offs
- The README states the project is succeeded by Microsoft Agent Framework, so long-term direction may point elsewhere
- Quickstarts assume Azure or OpenAI credentials and a configured environment, so setup needs some engineering work
- Java support is pointed to a separate build guide rather than documented here
How it compares
| Project | Stars | Type | Level | Updated | Best for |
|---|---|---|---|---|---|
| semantic-kernel (this) | 28.7k | Library | intermediate | 4 days ago | Developers already using Azure OpenAI or OpenAI who want a structured SDK for agents |
| langchain | 149k | Framework | intermediate | 4 days ago | Python developers building LLM-powered applications |
| llama_index | 52.8k | Library | intermediate | 10 days ago | Python developers building retrieval-augmented generation (RAG) apps over private documents |
| agent-framework | 14.5k | Library | intermediate | 4 days ago | Developers building agents or multi-agent workflows they plan to run in production |
| OpenHands | 92.5k | App | intermediate | 4 days ago | Developers who want coding agents running on a server while their laptop is off |
| SuperAGI | 17.7k | AI model / agent | advanced | 1.8 years ago | Python developers experimenting with autonomous AI agents |
Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.