Skip to content

Latest commit

Β 

History

1,774 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

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.

Kagent Agents UI

Getting Started Technical Details Get Involved Reference

Getting Started

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

flowchart TD
    UI[UI] --> CONTROLLER[kagent Controller]
    CLI[CLI] --> CONTROLLER
    CONFIG[Kubernetes resources] --> CONTROLLER
    CONTROLLER --> DB[(PostgreSQL)]
    CONTROLLER --> SUBSTRATE[Substrate]
    SUBSTRATE --> RUNTIMES[Agent runtimes]
    CONTROLLER -->|A2A| RUNTIMES
Loading

Kagent brings together the following components:

  • Controller: The controller watches kagent custom resources, prepares agents to run, and manages their sessions. It exposes gRPC, A2A, and MCP APIs for clients to interact with agents.
  • UI: The UI is a web UI that allows you to manage agents and tools and chat with your agents.
  • Agent Runtimes: Agents run using the Go or Python ADK, Codex, Claude, or a custom runtime, selected by their Harness.
  • Substrate: Substrate runs the agents and manages their lifecycle, including suspension, resumption, and snapshots.
  • PostgreSQL: PostgreSQL stores sessions, tasks, and conversation history so they persist independently of the running agents.
  • CLI: The CLI is a command-line tool that allows you to manage agents and tools and interact with your agents.

For more details on the v1 architecture, including resource definitions and how agents run, see the architecture guide.

Get Involved

We welcome contributions! Contributors are expected to respect the kagent Code of Conduct

There are many ways to get involved:

Roadmap

kagent is currently in active development. You can check out the full roadmap in the project Kanban board here.

Local development

For instructions on how to run everything locally, see the DEVELOPMENT.md file.

Contributors

Thanks to all contributors who are helping to make kagent better.

Star History

Star history of kagent-dev/kagent over time

Reference

License

This project is licensed under the Apache 2.0 License.


Cloud Native Computing Foundation logo

kagent is a Cloud Native Computing Foundation project.

About

Cloud Native Agentic AI | Discord: https://bit.ly/kagentdiscord

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3.9k stars

Watchers

23 watching

Forks

Releases

Packages

Used by

Contributors

Languages