Skip to content
This documentation covers kagent while it is in development and can describe unreleased features. For the current release, see the latest docs.

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

Install kagent

Page as Markdown

Install kagent and configure the model providers that your agents use.

Install kagent

Install kagent and Agent Substrate on your Kubernetes cluster with one command, then open the dashboard and build your first agent.

Install with CLI

Before you begin

  1. Install the following tools.

    • kubectl, the Kubernetes command line tool.
    • helm 3, the Kubernetes package manager. The kagent CLI runs helm to install each chart.
    • kind v0.32.0 or later, only if you create a local cluster.
  2. Have a Kubernetes cluster at version 1.37 or later.

    Create a local kind cluster.

    kind create cluster --name kagent --image kindest/node:v1.37.0
  3. Set the API key of your model provider.

    export OPENAI_API_KEY="your-api-key-here"

For the full requirements, see Advanced Install.

Install with CLI

The CLI installation suits evaluation, because it deploys a development PostgreSQL database. To pin a release or pass your own chart values, see Customize the CLI installation.

  1. Install the kagent CLI and run it. The first command downloads the kagent CLI. The second installs the CRDs, Agent Substrate, a development PostgreSQL database, and kagent into your cluster, in that order, and takes a few minutes. kagent install reads the API key that you set in Before you begin, and uses OpenAI unless you name another provider in the --provider flag.

    curl -sL https://kagent.dev/install | bash && kagent install
    Password prompt, or an older kagent already installed?

    The install script puts the CLI in /usr/local/bin, and asks for your password to write there. To install without sudo, into $HOME/bin, run the script with bash -s -- --no-sudo.

    If an older kagent is already on your path, your shell can keep running that one, and kagent install then installs the older release. Run kagent version and check that kagent_version is the release that the script downloaded.

    A terminal creating a kind cluster, running the kagent install command, and listing the running kagent pods
    Figure: Installing kagent on a local kind cluster with the CLI, sped up
  2. Open the kagent dashboard. The command forwards the UI to http://localhost:8082, and on macOS also opens it in your browser. On Linux and Windows, follow the port-forward steps in Launch the UI. The dashboard lists your agents, models, MCP servers, and the tools that kagent discovered.

    kagent dashboard
    The kagent dashboard after a fresh installation
    Figure: The kagent dashboard after a fresh installation
    The kagent dashboard after a fresh installation
    Figure: The kagent dashboard after a fresh installation

Then create an agent in Build an Agent.