Skip to main content

Your AI Powered Kubernetes Assistant from Thiago Alves with fix text-davinci-003

Project description

KoPylot: Your AI-Powered Kubernetes Assistant ๐Ÿค–

Release Build status codecov Commit activity License

KoPylot is an open-source AI-powered Kubernetes assistant. Its goal is to help developers and DevOps engineers to easily manage and monitor their Kubernetes clusters.

You can read more about the project in the blog post.

๐Ÿค Note:

This repo from https://github.com/avsthiago/kopylot with fixed text-davinci-003 has been deprecated. Origin author is Thiago Alves.

๐Ÿ’ซ Features:

  • ๐Ÿ” Audit: Audit a resource, such as pods, deployments, or services using an LLM model. Audit

  • ๐Ÿฉบ Diagnose: Diagnose resources, such as pods, deployments, or services using an LLM model. Diagnose

  • ๐Ÿ’ฌ Chat: Start a chat with KoPylot to generate kubectl commands based on your prompts. Chat

  • โ˜ธ๏ธ Ctl: A wrapper around kubectl. The arguments passed to the ctl subcommand are interpreted by kubectl. Ctl

๐Ÿš€ Quick Start:

  1. Requests an API key from OpenAI.
  2. Export the key using the following command:
export KOPYLOT_AUTH_TOKEN=your_api_key

NOTE: If you want to avoid having the key in your .bashrc, .oh-my-zsh/custom dir, or your .bash_history or .zsh_history, a possible trick is to do something like this:

export KOPYLOT_AUTH_TOKEN=$(cat ../../../keys/openai)
  1. Install KoPylot using pip:
pip install kopylot-gpt
  1. Run KoPylot:
kopylot --help

๐Ÿ“– Usage:

Usage: kopylot [OPTIONS] COMMAND [ARGS]...                                           
                                                                                      
โ•ญโ”€ Options โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ --version                                                                          โ”‚
โ”‚ --install-completion        [bash|zsh|fish|powershell  Install completion for the  โ”‚
โ”‚                             |pwsh]                     specified shell.            โ”‚
โ”‚                                                        [default: None]             โ”‚
โ”‚ --show-completion           [bash|zsh|fish|powershell  Show completion for the     โ”‚
โ”‚                             |pwsh]                     specified shell, to copy it โ”‚
โ”‚                                                        or customize the            โ”‚
โ”‚                                                        installation.               โ”‚
โ”‚                                                        [default: None]             โ”‚
โ”‚ --help                                                 Show this message and exit. โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
โ•ญโ”€ Commands โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ audit     Audit a pod, deployment, or service using an LLM model.                  โ”‚
โ”‚ chat      Start a chat with kopylot to generate kubectl commands based your        โ”‚
โ”‚           inputs.                                                                  โ”‚
โ”‚ ctl       A wrapper around kubectl. The arguments passed to the ctl subcommand are โ”‚
โ”‚           interpreted by kubectl.                                                  โ”‚
โ”‚ diagnose  Diagnose a resource e.g. pod, deployment, or service using an LLM model. โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kopylot_gpt-0.0.3.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

kopylot_gpt-0.0.3-py3-none-any.whl (9.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page