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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file kopylot_gpt-0.0.3.tar.gz.

File metadata

  • Download URL: kopylot_gpt-0.0.3.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Darwin/22.6.0

File hashes

Hashes for kopylot_gpt-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7b94acbfe08ca5e2d6f2d6200134e0c08af257d1df9f76f1de37328ee5600cfd
MD5 af93c6d001890d493f2fa9662ee21f51
BLAKE2b-256 e1917760a3b67a18eb1f15a03a27d13bb4e34675f66c93c7a8156f1dd5b88162

See more details on using hashes here.

File details

Details for the file kopylot_gpt-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: kopylot_gpt-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Darwin/22.6.0

File hashes

Hashes for kopylot_gpt-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 64f916af811042b7870120cd6b8fe9e95a6870885650338f6e64b4135bb1cc3b
MD5 a9e951463c45ede4a97503d4e7999bd8
BLAKE2b-256 ac9ef4660fc61a8bc109cfbf2ee9d0ece0f97035aec63b0ea4d89fef40844ec1

See more details on using hashes here.

Supported by

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