A blazing-fast interactive TUI for navigating Kubernetes contexts. Fuzzy search, pins, aliases, groups, history — now with AI natural language switching. Available for macOS and Linux.
Quick Start
Available via Homebrew. No dependencies to manage manually.
To upgrade: brew upgrade ksw
Or install with a single command (macOS & Linux):
Detects your OS and architecture automatically. · All releases →
Why ksw?
Available for macOS and Linux (amd64 & arm64). Designed for engineers who manage dozens of Kubernetes clusters daily.
Type any part of a context name and instantly filter results with intelligent fuzzy matching and scoring.
Use ksw payments-dev instead of the full ARN. ksw resolves it automatically.
Create memorable shortcuts for your most-used contexts. ksw @prod gets you there instantly.
Pin your most-used contexts to always appear at the top. Use Ctrl+P in the TUI to pin/unpin instantly.
Organize contexts into named groups. ksw group use payments opens the TUI filtered to only your payments contexts.
ksw - switches back to the last context instantly — like cd - in bash.
ksw history shows your last 10 contexts. Jump to any entry with ksw history 3.
Your current context is always highlighted in green in the list, so you never lose track of where you are.
Navigate hundreds of contexts with keyboard shortcuts. The cursor always stays visible on screen.
Use ksw -l to list contexts in scripts and CI pipelines without launching the TUI.
🤖 AI-Powered
Stop memorizing ARNs and commands. Just tell ksw what you need in plain language.
Switch contexts, create groups, pin favorites, list aliases — describe it in your own words and the AI executes it. No syntax to memorize.
The AI remembers your last 10 interactions. Say "go back to the previous one" or "same but in qa" and it understands the context.
Execute multiple tasks in a single prompt. "List my pins and groups" runs both commands and returns combined results.
Works with OpenAI, Claude (Anthropic), Gemini (Google) and AWS Bedrock. Use the model you already have access to.
Ask for tables, summaries, or any custom format. The AI builds the response from your actual state — not canned output.
ksw ai chat opens a full-screen conversational TUI. Multi-turn dialogue with your clusters — type, get answers, keep going.
The AI knows your current context, all groups, pins, aliases and history. It gives personalized, accurate answers every time.
ksw eks kubeconfig reads your AWS profiles, discovers EKS clusters in parallel, and adds missing ones to kubeconfig automatically. Filter by profile with --profile.
Examples
From interactive navigation to AI natural language, ksw fits every workflow.