Kagent Lab: How to build an AI agent
In this free, on-demand technical lab, create your first AI agent using Kagent—an open-source framework that brings agentic AI to cloud-native environments.
- Installing Kagent CLI: Learn how to install the Kagent CLI, set your OpenAI API key, and launch a REPL environment to deploy Kagent into your Kubernetes cluster and manage AI agents.
- Creating your first agent: Define a new AI agent in YAML and apply it to your cluster. This agent uses built-in tools like
GetResources
andGetAvailableAPIResources
to interact with the Kubernetes API and answer questions about the environment. - Interacting with the agent: Start a chat session using the Kagent CLI, select your agent, and issue real tasks like “What pods are running in the kagent namespace?” Watch as your agent invokes tools, retrieves data, and responds with friendly, Markdown-formatted answers.
- Exploring agent capabilities: Ask the agent what tools it has access to, and get clear, informative responses about how it can interact with your cluster using Kagent’s built-in toolset.
Gain hands-on experience building, deploying, and chatting with AI agents in Kubernetes using Kagent.
Kagent Lab: How to build an AI agent
Lab
Take the course
Cloud connectivity done right
