kagent defines, runs, and governs AI agents on Kubernetes with custom resources, a web UI, CLI, and Agent Substrate sandboxes that suspend idle workloads.
Overview
kagent is a CNCF sandbox project that treats agents as first-class Kubernetes resources. You declare agent templates (prompt, tools, models), harnesses (runtime and worker pools), and agents that pair them. A controller prepares runs, tracks sessions, and exposes gRPC, A2A, and MCP APIs plus a browser UI and CLI.
Harness options include Go and Python ADKs, Codex, Claude, and custom runtimes. ModelConfig wires OpenAI, Azure OpenAI, Anthropic, Vertex, Ollama, and gateways. Agents attach to RemoteMCPServer tools for Kubernetes, Istio, Helm, Prometheus, and similar stacks. PostgreSQL stores session and task history; OpenTelemetry traces execution.
Agent Substrate runs each conversation in an isolated sandbox, snapshots idle actors, and resumes them quickly on new messages. The platform emphasizes declarative YAML, GitOps, default-deny egress, and credential injection at the gateway rather than inside sandboxes.
Install flows use a shell installer and kagent install on a cluster. The website markets sub-second resume, high agent density, and MCP integrations to external SaaS tools.
Key features
- Agent and AgentTemplate CRDs
- Multiple LLM provider configs
- Built-in and remote MCP tools
- Web UI and kubectl workflows
- Session suspend and resume
- OpenTelemetry observability
- Agent Substrate sandbox runtime
- A2A and MCP client APIs
Use cases
- Platform-team agent governance
- GitOps-managed devops agents
- In-cluster SRE triage assistants
- PR review and docs automation
- Private Ollama-backed assistants