The KubeStellar CLI provides powerful command-line access for Kubernetes multi-cluster management.
In addition to the kubestellar CLI, you can use KubeStellar as a kubectl plugin via executables named kubectl-<name> on your PATH.
kubestellar (binary and Krew). Executable: kubectl-kubestellar → usage: kubectl kubestellar ....a2a. Executable: kubectl-a2a → usage: kubectl a2a ....╭─────────────────────────────────────────────────────────────────────────────────────────────╮
│ ██╗ ██╗██╗ ██╗██████╗ ███████╗███████╗████████╗███████╗██╗ ██╗ █████╗ ██████╗ │
│ ██║ ██╔╝██║ ██║██╔══██╗██╔════╝██╔════╝╚══██╔══╝██╔════╝██║ ██║ ██╔══██╗██╔══██╗ │
│ █████╔╝ ██║ ██║██████╔╝█████╗ ███████╗ ██║ █████╗ ██║ ██║ ███████║██████╔╝ │
│ ██╔═██╗ ██║ ██║██╔══██╗██╔══╝ ╚════██║ ██║ ██╔══╝ ██║ ██║ ██╔══██║██╔══██╗ │
│ ██║ ██╗╚██████╔╝██████╔╝███████╗███████║ ██║ ███████╗███████╗███████╗██║ ██║██║ ██║ │
│ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝╚══════╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ │
│ Multi-Cluster Kubernetes Management Agent │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
# Install with uv
uv pip install -e ".[dev]"
# Show help
uv run kubestellar --help
# List all available functions
uv run kubestellar list-functions
# Execute a specific function
uv run kubestellar execute <function_name>
# Describe a function (show parameters and schema)
uv run kubestellar describe <function_name>
# Start interactive AI agent
uv run kubestellar agent
Execute functions with parameters using multiple syntax options:
# Using --param flag
uv run kubestellar execute get_kubeconfig --param context=production --param detail_level=full
# Using -P shorthand (recommended)
uv run kubestellar execute get_kubeconfig -P context=staging -P detail_level=contexts
# Using JSON parameters
uv run kubestellar execute get_kubeconfig --params '{"context": "production", "detail_level": "full"}'
# Complex array parameters
uv run kubestellar execute namespace_utils -P target_namespaces='["prod","staging"]' -P all_namespaces=true
The agent provides natural language interface for cluster management:
# Start the agent
uv run kubestellar agent
# Example queries in agent mode:
[openai] ▶ how many pods are running?
[openai] ▶ show me kubestellar topology
[openai] ▶ deploy nginx using helm to production clusters
[openai] ▶ check binding policy status
Agent commands:
help - Show available commandsclear - Clear conversation historyprovider <name> - Switch AI providerexit - Exit the agentkubectl kubestellar --help
kubectl kubestellar list-functions
kubectl kubestellar execute kubestellar_management -P operation=deep_search
# alias
kubectl a2a providers
Install methods are detailed in “Getting Started → Installation”. For Krew, use the kubestellar.yaml manifest attached to a release, or submit it to the central krew-index to enable kubectl krew install kubestellar.
# Get current context
uv run kubestellar execute get_kubeconfig
# Get full details
uv run kubestellar execute get_kubeconfig -P detail_level=full
# Deploy Helm chart
uv run kubestellar execute helm_deploy \
-P chart_name=nginx \
-P repository_url=https://charts.bitnami.com/bitnami \
-P target_clusters='["prod-cluster"]'
# Create deployment across namespaces
uv run kubestellar execute multicluster_create \
-P resource_type=deployment \
-P resource_name=web-app \
-P image=nginx:1.21 \
-P all_namespaces=true
# Discover all resources
uv run kubestellar execute gvrc_discovery
# List all namespaces
uv run kubestellar execute namespace_utils \
-P operation=list \
-P all_namespaces=true
Configure AI provider in ~/.kube/a2a-config.yaml:
# OpenAI is currently the supported provider
providers:
openai:
api_key: "your-openai-key"
model: "gpt-4o"
temperature: 0.7
default_provider: "openai"
ui:
show_thinking: true
show_token_usage: true
Or use environment variables:
export OPENAI_API_KEY="your-key"
Note: Additional AI providers (Claude, Gemini, etc.) will be added in future releases.