4,242
stars
900
forks
24
watchers
2,520
prs
1,047
issues
196
releases
8
discussions
README
---
kagent is a Kubernetes native framework for building AI agents. Kubernetes is the most popular orchestration platform for running workloads, and kagent makes it easy to build, deploy and manage AI agents in Kubernetes. The kagent framework is designed to be easy to understand and use, and to provide a flexible and powerful way to build and manage AI agents.
---
Getting Started
Technical Details
Get Involved
Reference
---
Getting Started
- Your first agent
- Installation guide
Technical Details
Core Concepts
- Agents: Agents are the main building block of kagent. An Agent is a Kubernetes custom resource that brings together an agent's behavior and runtime configuration.
- Agent Templates: A system prompt, a set of tools and subagents, and an LLM configuration define an agent's behavior. You can define this directly in an Agent or share it across agents using an AgentTemplate resource.
- Harnesses: A Harness defines how an agent runs. Kagent supports its own Go and Python ADKs, Codex, Claude, and custom runtimes, so you can choose the runtime that fits your agent.
- LLM Providers: Kagent supports multiple LLM providers, including OpenAI, Azure OpenAI, Anthropic, Google Vertex AI, Ollama and custom providers and models accessible via AI gateways. Models are configured through the ModelConfig resource, with provider support depending on the chosen Harness.
- MCP Tools: Agents can connect to MCP servers that provide tools. Kagent comes with an MCP server with tools for Kubernetes, Istio, Helm, Argo, Prometheus, Grafana, Cilium, and others. Agents connect through RemoteMCPServer resources, which can be shared across agents.
- Sessions: Sessions keep conversations and task history across interactions. You can suspend and resume an agent, or create a checkpoint and fork a new conversation from it.
- Observability: Kagent supports OpenTelemetry tracing, which allows you to monitor what's happening with your agents and tools.
Core Principles
- Kubernetes Native: Manage agent and tool configuration through Kubernetes APIs and familiar kubectl workflows.
- Extensible: Add custom tools, skills, and runtimes to connect agents to your own systems.
- Flexible: Choose the models and runtimes that fit your workload, and reuse agent templates across compatible harnesses.
- Observable: Trace agent, model, and tool execution with OpenTelemetry and your existing observability stack.
- Declarative: Define agents in YAML, keep configuration in version control, and deploy through GitOps workflows.
- Testable: Test agents through their public APIs and use task history and traces to diagnose failures.
Architecture
mermaid
flowchart TD
UI[UI] -- CONTROLLER[kagent Controller]
CLI[CLI] -- CONTROLLER
CONFIG[Kubernetes resources] -- CONTROLLER
CONTROLLER -- DB[(PostgreSQL)]
CONTROLLER -- SUBSTRATE[Substrate]
SUBSTRATE -- RUNTIMES[Agent runtimes]
CONTTop issues
#3509[FEATURE] Treat the UI as an optional client of the 1.x platform8 comments · 2026-11-03#3190[FEATURE] Mount tool images into a Harness's filesystem8 comments · 2026-10-13#3594Let kagent agent invoke create a session7 comments · 2026-11-09#3543Add a native xAI provider so Grok calls and traces are xAI7 comments · 2026-11-05#2689Revisit Python packages and samples after API v2 cutover6 comments · 2026-09-03#3312[BUG] A suspend with an unknown outcome locks the session forever: answers, cancel and delete are all refused5 comments · 2026-10-21#3240Allow a Harness to reference a Substrate WorkerPool in another namespace (cross-namespace workerPoolRef)5 comments · 2026-10-16#3026[BUG] Go ADK Anthropic adapter labels a prior assistant text turn as "user" in multi-turn history5 comments · 2026-09-30
Discussions
#2654Timeline on 0.10.0 GA release0 comments · 2026-09-01#2482Azure Workload Identity support1 comments · 2026-08-18#2312End-User Identity Propagation & On-Behalf-Of (OBO) Tool Execution0 comments · 2026-07-22#2127helm/kagent: declarative OTLP headers + service name + resource attributes (unblocks Langfuse Cloud / Honeycomb / Datadog / ...)1 comments · 2026-07-01#2105Use redis memory to handle short & long term memory0 comments · 2026-06-29#1949OPAL: Outcome-Predictive Agent Layer — a CNCF Sandbox project built on kagent1 comments · 2026-06-01#1231Autoscaling Kagent1 comments · 2026-01-22#1209Perplexity API key instead of OpenAI0 comments · 2026-01-14
Latest release
v1.0.0 v1.0.0 2026-11-09What's Changed Features feat(streaming): configurable nginx, controller, and UI inactivity ti… by @yanivmn in https://github.com/kagent-dev/kagent/pull/1973 feat(helm): add controller service annotations by @anthonyhaussman in https://github.com/kagent-dev/kagent/pull/2088 feat: enable sharing of chat sessions by @onematchfox in https://github.com/kagent-dev/kagent/pull/1935 feat: substrate support for BYO and python runtimes for SandboxAgent CR by @jmhbh in https://github.com/kagent-dev/kagent/pull/2043 feat(substrate): bump agent substrate to 0.0.7 by @supreme-gg-gg in https://github.c