Practical overview
When it fits
Use it when working from a valid Kubernetes configuration and you want an LLM to draft or modify manifests, with a confirmation step before application by default.
Who it is for
- Kubernetes developers who want to draft resource manifests from natural-language requests.
- Developers who want to refine, save, pipe, or apply generated YAML during development and testing.
Documented uses
- Generate a manifest for a requested Kubernetes resource, such as a deployment with specified replicas.
- Refine an existing manifest through a natural-language change request.
- Review generated YAML before applying it, or route raw output to a file, editor, or another command.
Requirements & limits
The repository is public and MIT-licensed. The README lists Homebrew, Krew, and GitHub release binaries as installation options.
- A valid Kubernetes configuration and one of the documented model connections are required.
- The documented connections are OpenAI, Azure OpenAI, and OpenAI API-compatible endpoints.
- Application confirmation defaults to enabled and can be controlled with a flag or environment variable.
- Kubernetes OpenAPI-based generation is optional, uses more OpenAI API calls, and requires function calling on model versions 0613 or later.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install Kubectl AI through Homebrew
Add the project's Homebrew tap and install the kubectl-ai binary.
Before you start
- Homebrew
Steps
Add the sozercan/kubectl-ai tap using the repository URL.
Install the kubectl-ai package with Homebrew.
Expected outcome
The kubectl-ai binary is installed through Homebrew.
Guide limitations
- This guide covers installation only; using the tool additionally requires a valid Kubernetes configuration and a supported model connection.
Configure an OpenAI-compatible endpoint
Set the environment variables that Kubectl AI uses to connect to an OpenAI-compatible service.
Before you start
- A valid Kubernetes configuration.
- An OpenAI-compatible endpoint and its API key or key value.
Steps
Set OPENAI_ENDPOINT to the endpoint URL.
Set OPENAI_DEPLOYMENT_NAME to the deployment or model name.
Set OPENAI_API_KEY to the endpoint's API key value.
Expected outcome
Kubectl AI is configured to use the specified endpoint instead of the default OpenAI API.
Guide limitations
- This guide configures the connection but does not cover endpoint installation or manifest generation.
- For Azure OpenAI deployments whose deployment name differs from the model name, the README documents AZURE_OPENAI_MAP as an additional mapping option.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 4 November 2026
- Original website title
- sozercan/kubectl-ai · Official homepage title · retained in its source language

