k8sgpt is a free, open source cloud infrastructure management project written in Go and released under Apache-2.0. It has 8,186 GitHub stars, 1,060 forks and 89 open issues, and was last pushed 7 hours ago. On this registry it ranks #27 of 70 tracked projects in Cloud Infrastructure Management, with 5 head-to-head comparisons available.

What is k8sgpt?

k8sgpt is an Apache-2.0 tool written in Go that scans Kubernetes clusters, diagnoses and triages issues in plain English, built for SREs, platform engineers and DevOps teams who need a fast, readable explanation of why a cluster is misbehaving.

What it is

k8sgpt lives in the Kubernetes and cloud-native ecosystem. It ships as a command-line binary and as an in-cluster operator (k8sgpt-operator), and it inspects the objects, events and state of a running cluster, then turns what it finds into a short, human-readable diagnosis. Its analyzers carry codified SRE experience, meaning the knowledge of what to look for when a workload fails is packaged into the tool rather than left to the operator's memory. Findings can then be enriched by a large language model, with out-of-the-box integration for OpenAI, Azure, Cohere, Amazon Bedrock, Google Gemini and local models.

The concrete problem it solves is manual triage. Instead of reading through cluster events, status fields and logs by hand to work out why a pod, deployment or service is unhealthy, the user runs k8sgpt and gets the relevant signals pulled out and explained in simple English. That replaces the slow, repetitive first pass of incident investigation that otherwise consumes SRE time on every failing workload, and it lowers the level of Kubernetes internals knowledge required to reach a useful answer.

Key capabilities

  • Scans Kubernetes clusters and reports diagnoses and triage output in simple English.
  • Analyzers codify SRE experience and extract the most relevant cluster information for enrichment with AI.
  • Pluggable LLM backends: OpenAI (the default provider), Azure, Cohere, Amazon Bedrock, Google Gemini and local models.
  • k8sgpt-operator runs inside a cluster for continuous monitoring rather than one-off CLI runs.
  • Operator deployment integrates with existing monitoring such as Prometheus and Alertmanager.
  • Model Context Protocol (MCP) support, alongside the documented Analyzers, LLM AI Backends and Key Features sections.
  • Distributed as Homebrew formula, RPM, DEB and APK packages, plus Windows binaries, with source under Apache-2.0 and documentation at docs.k8sgpt.ai.

Who uses it and how

  • SREs on call use the CLI as a first triage step, letting analyzers surface the relevant cluster facts before digging into manifests.
  • Platform teams deploy k8sgpt-operator for continuous cluster monitoring, routing findings through Prometheus and Alertmanager into existing alert pipelines.
  • Teams with data-residency or privacy constraints point it at local models instead of a hosted provider, keeping diagnostics inside their own environment.
  • Individual engineers install via brew install k8sgpt on Linux or macOS, or use the RPM, DEB, APK or Windows builds on workstations without cluster-wide rollout.

Getting started

Install with brew install k8sgpt on Linux or macOS, or use the published RPM, DEB, APK or Windows binary from the releases page. The default AI provider is OpenAI, so an API key must be generated and configured before AI enrichment works; for in-cluster use, install k8sgpt-operator instead.

How it compares

The provided facts name no paid products that k8sgpt replaces and no directly comparable tools apart from the sister project sympozium, which manages agents in Kubernetes rather than diagnosing cluster issues. On the evidence available, k8sgpt stands alone in this registry.

When to use it — and when not to

A self-hoster must supply an LLM backend: credentials for a hosted provider or a local model, since the default provider is OpenAI and enrichment depends on it. Teams that cannot send cluster diagnostics to an external model service, or that have no appetite for running local inference, should look elsewhere or accept that only non-AI analyzers will be useful. The README excerpt also stops mid-instruction on API key generation, so anyone planning a deployment should read the full documentation at docs.k8sgpt.ai before relying on the repository front page alone.

project readme (upstream, from github) — read inline

GitHub code size in bytes GitHub Workflow Status GitHub release (latest by date) OpenSSF Best Practices Link to documentation License Go version codecov GitHub last commit (branch)

k8sgpt is a tool for scanning your Kubernetes clusters, diagnosing, and triaging issues in simple English.

It has SRE experience codified into its analyzers and helps to pull out the most relevant information to enrich it with AI.

Out of the box integration with OpenAI, Azure, Cohere, Amazon Bedrock, Google Gemini and local models.

Sister project: Check out sympozium for managing agents in Kubernetes.

K8sGPT - K8sGPT gives Kubernetes Superpowers to everyone | Product Hunt Featured|HelloGitHub

Table of Contents

CLI Installation

Linux/Mac via brew

brew install k8sgpt

or

brew tap k8sgpt-ai/k8sgpt
brew install k8sgpt
RPM-based installation (RedHat/CentOS/Fedora)

32 bit:

sudo rpm -ivh https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.4.39/k8sgpt_386.rpm

64 bit:

sudo rpm -ivh https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.4.39/k8sgpt_amd64.rpm
DEB-based installation (Ubuntu/Debian)

32 bit:

curl -LO https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.4.39/k8sgpt_386.deb
sudo dpkg -i k8sgpt_386.deb

64 bit:

curl -LO https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.4.39/k8sgpt_amd64.deb
sudo dpkg -i k8sgpt_amd64.deb
APK-based installation (Alpine)

32 bit:

wget https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.4.39/k8sgpt_386.apk
apk add --allow-untrusted k8sgpt_386.apk

64 bit:

wget https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.4.39/k8sgpt_amd64.apk
apk add --allow-untrusted k8sgpt_amd64.apk
Failing Installation on WSL or Linux (missing gcc) When installing Homebrew on WSL or Linux, you may encounter the following error:
==> Installing k8sgpt from k8sgpt-ai/k8sgpt Error: The following formula cannot be installed from a bottle and must be
built from the source. k8sgpt Install Clang or run brew install gcc.

If you install gcc as suggested, the problem will persist. Therefore, you need to install the build-essential package.

   sudo apt-get update
   sudo apt-get install build-essential

Windows

  • Download the latest Windows binaries of k8sgpt from the Release tab based on your system architecture.
  • Extract the downloaded package to your desired location. Configure the system PATH environment variable with the binary location

Operator Installation

To install within a Kubernetes cluster please use our k8sgpt-operator with installation instructions available here

This mode of operation is ideal for continuous monitoring of your cluster and can integrate with your existing monitoring such as Prometheus and Alertmanager.

Quick Start

  • Currently, the default AI provider is OpenAI, you will need to generate an API key from OpenAI
    • You can do this by running k8sgpt generate to open a browser link to generate it
  • Run k8sgpt auth add to set it in k8sgpt.
    • You can provide the password directly using the --password flag.
  • Run k8sgpt filters to manage the active filters used by the analyzer. By default, all filters are executed during analysis.
  • Run k8sgpt analyze to run a scan.
  • And use k8sgpt analyze --explain to get a more detailed explanation of the issues.
  • You also run k8sgpt analyze --with-doc (with or without the explain flag) to get the official documentation from Kubernetes.

Using with Claude Desktop

K8sGPT can be integrated with Claude Desktop to provide AI-powered Kubernetes cluster analysis. This integration requires K8sGPT v0.4.14 or later.

Prerequisites

  1. Install K8sGPT v0.4.14 or later:

    brew install k8sgpt
    
  2. Install Claude Desktop from the official website

  3. Configure K8sGPT with your preferred AI backend:

    k8sgpt auth
    

Setup

  1. Start the K8sGPT MCP server:

    k8sgpt serve --mcp
    
  2. In Claude Desktop:

    • Open Settings
    • Navigate to the Integrations section
    • Add K8sGPT as a new integration
    • The MCP server will be automatically detected
  3. Configure Claude Desktop with the following JSON:

{
  "mcpServers": {
    "k8sgpt": {
      "command": "k8sgpt",
      "args": [
        "serve",
        "--mcp"
      ]
    }
  }
}

Usage

Once connected, you can use Claude Desktop to:

  • Analyze your Kubernetes cluster
  • Get detailed insights about cluster health
  • Receive recommendations for fixing issues
  • Query cluster information

Example commands in Claude Desktop:

  • "Analyze my Kubernetes cluster"
  • "What's the health status of my cluster?"
  • "Show me any issues in the default namespace"

Troubleshooting

If you encounter connection issues:

  1. Ensure K8sGPT is running with the MCP server enabled
  2. Verify your Kubernetes cluster is accessible
  3. Check that your AI backend is properly configured
  4. Restart both K8sGPT and Claude Desktop

For more information, visit our documentation.

Analyzers

K8sGPT uses analyzers to triage and diagnose issues in your cluster. It has a set of analyzers that are built in, but you will be able to write your own analyzers.

Built in analyzers

Enabled by default
  • podAnalyzer
  • pvcAnalyzer
  • rsAnalyzer
  • serviceAnalyzer
  • eventAnalyzer
  • ingressAnalyzer
  • statefulSetAnalyzer
  • deploymentAnalyzer
  • jobAnalyzer
  • cronJobAnalyzer
  • nodeAnalyzer
  • mutatingWebhookAnalyzer
  • validatingWebhookAnalyzer
  • configMapAnalyzer
Optional
  • hpaAnalyzer
  • pdbAnalyzer
  • networkPolicyAnalyzer
  • gatewayClass
  • gateway
  • httproute
  • logAnalyzer
  • storageAnalyzer
  • securityAnalyzer
  • CatalogSource
  • ClusterCatalog
  • ClusterExtension
  • ClusterService
  • ClusterServiceVersion
  • OperatorGroup
  • Insta

readme truncated — read the full docs on github

Frequently asked questions

Is k8sgpt free to use?

k8sgpt is open source under the Apache-2.0 licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does k8sgpt do?

Giving Kubernetes Superpowers to everyone

What is k8sgpt written in?

k8sgpt is primarily written in Go. Its source is publicly available at https://github.com/k8sgpt-ai/k8sgpt, and it has 8,186 GitHub stars.