Skip to main content

Python Version

Kait (Kubernetes AI Tool)

kait is an AI assisted kubernetes debugging tool which automatically troubleshoots, diagnoses, and fixes issues related to kubernetes.

kait uses autonomous AI agents built using Microsoft's AutoGen

Installation and setup

You can install kait directly using pip:

pip install kait

kait requires an OpenAI API key which is read via the environment variable KAIT_OPENAI_KEY. You can provide a list of models to use and kait will use the available model. It is recommended to use models with the capabilities of gpt-4. Larger contexts work better too e.g. 'gpt-4-1106-preview'. Your environment variable needs to point to a list of models in the following format:

[
    {
        "model": "gpt-4",
        "api_key": "YOUR_OPENAI_API_KEY"
    }
]

Usage

kait requires kubectl to be installed and authenticated against the cluster you want to use.

To run kait simply run:

kait debug <DESCRIPTION OF THE ISSUE TO DEBUG>

For a full list of options, run:

kait debug --help

Examples

A number of examples/ are provided so you can see how kait performs.

Release files for kait 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kait 0.2.1
File Size Uploaded
kait-0.2.1.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kait 0.2.1
File Interpreter ABI Platform
kait-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / kait-0.2.1.tar.gz

Download URL kait-0.2.1.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b815554c7f89c580ff880775f6d6f94b2fa9a63a75e1067cc8fa6d78ca8c1d2f
BLAKE2b-256 checksum
How to use checksums
0e18edec25b302a2e277438f284f591a13b6ea0a5b70afb40b1dbaf4a4cb5c37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / kait-0.2.1-py3-none-any.whl

Download URL kait-0.2.1-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b14c1bab350c239977b132a3287f891580316460d4aa763cbf76046a49c65bcf
BLAKE2b-256 checksum
How to use checksums
dc3342aea4e8e2cdbb2c2218bae14870ce42cf602d96acca3e0e0bc9059dbcfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page