# ahmetb/kubectx

Faster way to switch between clusters and namespaces in kubectl

Repository: https://github.com/ahmetb/kubectx
Canonical: https://ross.abutalabs.com/products/kubectx
Homepage: https://kubectx.dev
Language: Go
License: Apache-2.0
License Family: permissive
Topics: kubernetes, kubectl, kubectl-plugins, kubernetes-clusters
Last push: 2026-08-02T01:42:33+00:00

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 77, longevity 100
- inputs: {"age_days": 3443, "days_push": 32, "days_rel": 159, "gap_med": 3.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 19962, forks 1381 (observed 2026-08-28T04:11:29.485822+00:00)

## What it is
kubectx and kubens are command-line tools for quickly switching between Kubernetes contexts (clusters) and namespaces in kubectl. They support interactive fuzzy selection with fzf, tab completion, context renaming, and isolated or read-only shells per context.

## Use cases
- switch between kubernetes clusters quickly
- change default namespace for kubectl
- fuzzy search kubeconfig contexts interactively
- rename long kubectl context names
- open a read-only shell for a cluster
- switch back to previous cluster or namespace

## When to choose
- you work with multiple Kubernetes clusters and switch often
- you want faster context/namespace switching than kubectl config commands
- you use fzf and want interactive selection
- you need tab completion for context names

## When to avoid
- you only ever use a single cluster and namespace
- you need a GUI dashboard for cluster management
- you need full kubeconfig editing beyond context/namespace switching

## Facets
- artifact type: cli-tool
- maturity: stable
- function: cli, developer-tools, configuration-management
- domain: developer-tools
- platform: windows, cli, cross-platform
- tags: kubernetes, kubectl, kubectl-plugins, kubeconfig, context-switching, namespace-switching, go, command-line, devops, containers, linux, macos

## Member repositories
- ahmetb/kubectx (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:29.485822+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:59:23.145285+00:00, confidence not recorded.
  - readme: https://github.com/ahmetb/kubectx (fetched 2026-08-28T04:11:29.485822+00:00, sha 4e9f27ec1f09)
  - homepage: https://kubectx.dev (fetched 2026-08-29T07:57:53.672455+00:00, sha e2215baba5f0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
