The kubectx for operators. Fuzzy search across 14+ cloud providers, per-terminal context isolation, history navigation, and extensible hooks — built for large-scale Kubernetes.
- Unified fuzzy search — one search over EKS, AKS, GKE, Gardener, Vault, filesystem, and more
- Terminal isolation — each window targets a different cluster; the original kubeconfig is never modified
- History — every
{context, namespace}tuple recorded; jump back withswitch .orswitch - - Context aliases — human-friendly names for cryptic generated context names
- Search index cache — instant results across massive directories or slow remote stores
- Hooks — run arbitrary executables before search to sync, refresh, or rotate credentials
- Drop-in replacement for
kubectx— setalias kubectx=switchand keep your workflow
brew tap MichaelSp/kswitch
brew install --cask kswitch
echo 'source <(kswitch init zsh)' >> ~/.zshrc
source ~/.zshrccurl -L -o /usr/local/bin/kswitch \
https://github.com/MichaelSp/kswitch/releases/latest/download/kswitch_linux_amd64
chmod +x /usr/local/bin/kswitch
echo 'source <(kswitch init bash)' >> ~/.bashrc && source ~/.bashrcDownload the binary from the releases page, place it in your PATH, then:
kswitch init powershell >> $PROFILE
. $PROFILEThen type switch (bash/zsh) or kswitch (fish/PowerShell) to start.
Full documentation is available at MichaelSp.github.io/kswitch:
- Installation guide — shell completion, all platforms
- Kubeconfig stores — multi-provider setup
- Search index — caching for large setups
- Hooks — extensibility
- Cloud provider guides — EKS, AKS, GKE, Gardener, Vault, and more


