Introduction to Agent Kernel
From Agent Logic to Production in Minutes.
🧠 Knowledge Base Support - Agent Kernel now includes a backend-agnostic knowledge base interface with support for ChromaDB (vector), Neo4j (graph), and Starburst Galaxy (SQL/analytics). Give your agents durable, cross-session knowledge with semantic search and graph query capabilities. Learn more →
What is Agent Kernel?
Agent Kernel is an open-source runtime that lets you build, test, and deploy AI agents to production in days instead of months. It works with any major AI framework — OpenAI, LangGraph, CrewAI, Google ADK — and can run agents from multiple frameworks together in a single runtime. It deploys to AWS, Azure, or your own servers with zero platform code. Built-in integrations for Slack, WhatsApp, and more mean your agents can reach users instantly.
Think of it like Express.js for web servers, or Spring Boot for Java microservices — but for AI agents. It gives you the scaffolding, execution environment, session management, and deployment infrastructure so you can focus on writing the logic that matters.
Supported Python Versions: 3.12 - 3.13.x Supported Cloud Platforms: AWS, Azure
It's not:
- a substitute for popular agent frameworks and SDKs like LangGraph, OpenAI Agents, CrewAI, or Google ADK
- another heavy abstraction that you have to learn
It's a lightweight, thin adapter that wraps your existing agents and instantly provides everything else — testing, deployment, integrations, session management, observability.
Why Agent Kernel?
Effortless Migration
Build agents using any AI agentic framework and migrate them to Agent Kernel to benefit from its execution framework capabilities. No need to build a platform code from scratch to run your agents. You can focus on domain-specific Agent development and Agent Kernel takes care of testing, deployment and execution.
Ready-to-Use Execution
Agent Kernel provides pre-built execution capabilities:
- CLI Testing Environment for local development
- REST API Server for web integration
- Built-in popular integrations for pluggable integrations and ability to build custom integrations quickly
- Slack
- Messenger
- Telegram
- Gmail
- Microsoft Teams
- Multi-Cloud Serverless Deployment for scalable production
- AWS Lambda
- Azure Functions
- Multi-Cloud Containerized Deployment for consistent loads
- AWS ECS/Fargate
- Azure Container Apps
- MCP Server for Model Context Protocol tool publishing
- A2A Server for Agent-to-Agent communication
Multi-Cloud Architecture
Deploy the same agent code to AWS or Azure without modification. Agent Kernel provides:
- Cloud-agnostic agent development
- Provider-specific optimizations
- Consistent APIs across clouds
- No vendor lock-in
Pluggable Architecture
Easily extend Agent Kernel with custom framework adapters, memory back-ends, and deployment profiles.
Enterprise-Ready Features
-
Knowledge Bases: Backend-agnostic durable knowledge storage across sessions
- ChromaDB for semantic/vector search
- Neo4j for entity and relationship graph queries
- Starburst Galaxy for SQL analytics over MongoDB, Google Sheets, PostgreSQL, and more
KnowledgeBuildercomposes multiple backends with framework-agnostic toolssemantic_mapkeeps agent prompts portable across deployments- You can also build your own backend by implementing a
KnowledgeBaseadapter and registering it withKnowledgeBuilderLearn more about knowledge bases →
-
Session Management: Built-in conversational state tracking across multiple backends
-
Memory Management: Pluggable memory with smart caching
- In-memory (development)
- Redis (AWS & Azure)
- DynamoDB (AWS serverless)
- Cosmos DB (Azure serverless)
- Volatile Cache: Request-scoped temporary storage for RAG context, file content, and intermediate data
- Non-Volatile Cache: Session-persistent storage for user preferences, metadata, and configurations
Learn more about session management → | Advanced memory features →
-
Execution Hooks: Powerful pre and post-execution hooks for ultimate control
- Pre-execution hooks: Guard rails, RAG context injection, input validation, authentication
- Post-execution hooks: Response moderation, disclaimers, output filtering, analytics
- Hook chaining: Compose multiple hooks in sequence for complex behaviors
- Early termination: Pre-hooks can halt execution and return custom responses
-
Fault Tolerance: Production-grade resilience
- Multi-AZ deployments for high availability
- Automatic failure recovery and retry mechanisms
- Health monitoring and auto-scaling (auto-scaling will be made available soon)
- Persistent state across failures
-
Traceability: Track and audit all agent operations
- LangFuse
- OpenLLMetry
-
Multi-Agent Collaboration: Leverage multi-agent hierarchies of supported agentic frameworks
-
Agent Testing Capability: Built in Agent test framework so that you can write automated tests easily
-
Governance: Guard rails and human in the middle capabilities are coming soon
Key Features
Unified API
from agentkernel.core import Agent, Runner, Session, Module, Runtime
All framework adapters expose the same core abstractions:
- Agent: Framework-specific agent wrapped by Agent Kernel
- Runner: Framework-specific execution strategy
- Session: Shared conversational state
- Module: Container for registering agents
- Runtime: Global orchestrator
Execution Hooks
Powerful pre-execution and post-execution hooks give you surgical control over agent behavior:
- Pre-hooks: Intercept prompts before agents see them
- 🛡️ Guard rails and content filtering
- 🧠 RAG context injection from knowledge bases
- 🔍 Input validation and authentication