{"id":40898856,"url":"https://github.com/thecasualcoder/kube-tmuxp","last_synced_at":"2026-01-22T02:28:56.690Z","repository":{"id":35121810,"uuid":"137581005","full_name":"thecasualcoder/kube-tmuxp","owner":"thecasualcoder","description":"Tool to generate tmuxp configs that help to switch between multiple Kubernetes contexts safely.","archived":false,"fork":false,"pushed_at":"2023-02-25T04:41:18.000Z","size":120,"stargazers_count":21,"open_issues_count":7,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-15T08:48:50.304Z","etag":null,"topics":["gke","kubernetes","tmux","tmuxp"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thecasualcoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-16T13:00:25.000Z","updated_at":"2024-07-07T12:07:25.000Z","dependencies_parsed_at":"2024-06-19T01:45:51.139Z","dependency_job_id":"f5ad1ff7-c6fd-459f-84a7-68284e0c5929","html_url":"https://github.com/thecasualcoder/kube-tmuxp","commit_stats":null,"previous_names":["arunvelsriram/kube-tmuxp"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/thecasualcoder/kube-tmuxp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecasualcoder%2Fkube-tmuxp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecasualcoder%2Fkube-tmuxp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecasualcoder%2Fkube-tmuxp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecasualcoder%2Fkube-tmuxp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecasualcoder","download_url":"https://codeload.github.com/thecasualcoder/kube-tmuxp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecasualcoder%2Fkube-tmuxp/sbom","scorecard":{"id":210180,"data":{"date":"2025-08-04","repo":{"name":"github.com/thecasualcoder/kube-tmuxp","commit":"f1f386a0ebc771018c2f22b8649c8151779cdceb"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":1.4,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"name":"Code-Review","score":2,"reason":"Found 2/8 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.2.6 not signed: https://api.github.com/repos/thecasualcoder/kube-tmuxp/releases/22200602","Warn: release artifact v0.2.5 not signed: https://api.github.com/repos/thecasualcoder/kube-tmuxp/releases/22079861","Warn: release artifact v0.2.4 not signed: https://api.github.com/repos/thecasualcoder/kube-tmuxp/releases/16565963","Warn: release artifact v0.2.3 not signed: https://api.github.com/repos/thecasualcoder/kube-tmuxp/releases/15541779","Warn: release artifact v0.2.2 not signed: https://api.github.com/repos/thecasualcoder/kube-tmuxp/releases/15516434","Warn: release artifact v0.2.6 does not have provenance: https://api.github.com/repos/thecasualcoder/kube-tmuxp/releases/22200602","Warn: release artifact v0.2.5 does not have provenance: https://api.github.com/repos/thecasualcoder/kube-tmuxp/releases/22079861","Warn: release artifact v0.2.4 does not have provenance: https://api.github.com/repos/thecasualcoder/kube-tmuxp/releases/16565963","Warn: release artifact v0.2.3 does not have provenance: https://api.github.com/repos/thecasualcoder/kube-tmuxp/releases/15541779","Warn: release artifact v0.2.2 does not have provenance: https://api.github.com/repos/thecasualcoder/kube-tmuxp/releases/15516434"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"11 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0229 / GHSA-cjjc-xp8v-855w","Warn: Project is vulnerable to: GO-2020-0012 / GHSA-ffhg-7mh4-33c4","Warn: Project is vulnerable to: GO-2021-0227 / GHSA-3vm4-22fp-5rfm","Warn: Project is vulnerable to: GO-2022-0968 / GHSA-gwc9-m7rh-j2ww","Warn: Project is vulnerable to: GO-2021-0356 / GHSA-8c26-wmh5-6g9v","Warn: Project is vulnerable to: GO-2024-2961","Warn: Project is vulnerable to: GO-2023-2402 / GHSA-45x7-px36-x8w8","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8","Warn: Project is vulnerable to: GO-2020-0036 / GHSA-wxc4-f4m6-wwqv"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T00:38:08.618Z","repository_id":35121810,"created_at":"2025-08-17T00:38:08.619Z","updated_at":"2025-08-17T00:38:08.619Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28651581,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gke","kubernetes","tmux","tmuxp"],"created_at":"2026-01-22T02:28:56.086Z","updated_at":"2026-01-22T02:28:56.685Z","avatar_url":"https://github.com/thecasualcoder.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kube-tmuxp\n\n[![Build Status](https://travis-ci.org/thecasualcoder/kube-tmuxp.svg?branch=master)](https://travis-ci.org/thecasualcoder/kube-tmuxp)\n\nTool to generate tmuxp configs that help to switch between multiple [Kubernetes](https://kubernetes.io/) contexts\nsafely.\n\n## Introduction\n\nWhen working with multiple Kubernetes clusters its painful to switch context\nusing [`kubectl`](https://github.com/kubernetes/kubernetes/tree/master/cmd/kubectl)\nor [`kubectx`](https://github.com/ahmetb/kubectx). There are also possibilities of making unintentional changes.\n\n`kube-tmuxp` solves this by using one preconfigured `tmux` session per Kubernetes cluster. Each `tmux` session contains\nonly one Kubernetes context thus preventing accidental context switching inside a session. Contexts can be switched by\nswitching `tmux` sessions. For example: `[tmux prefix] + S`.\n\nGiven a config similar to [config.sample.yaml](./config.sample.yaml), `kube-tmuxp` generates:\n\n* kube config (Kubernetes context) for each Kubernetes cluster under `~/.kube/configs`\n* `tmuxp` config for each Kubernetes cluster under `~/.tmuxp`\n\nThe generated `tmuxp` configs can be used to start preconfigured `tmux` sessions.\n\n## Prerequisites\n\n* [gcloud](https://cloud.google.com/sdk/)\n* [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/)\n* [tmux](https://github.com/tmux/tmux)\n* [tmuxp](https://github.com/tmux-python/tmuxp)\n\n## Install\n\n### Homebrew\n\n```\nbrew tap thecasualcoder/stable\nbrew install kube-tmuxp\n```\n\n### Manual\n\n```\ngit clone https://github.com/thecasualcoder/kube-tmuxp.git\ncd kube-tmuxp\nmake build\ncp ./out/kube-tmuxp /usr/local/bin/kube-tmuxp\n```\n\n## Generate kubeconfigs and `tmuxp` configs\n\n* Copy the sample config ([config.sample.yaml](./config.sample.yaml))\n\n  ```\n  cp config.sample.yaml ~/.kube-tmuxp.yaml\n  ```\n\n* Add your projects and clusters to the copied config\n* Generate kubeconfigs and tmuxp configs\n\n```\nkube-tmuxp gen\n```\n\nDefault config path is `$HOME/.kube-tmuxp.yaml`. If you are using a different path, then use the `--config` flag to\nspecify that path. Refer `kube-tmuxp --help` for more details.\n\n## Generate kube-tmuxp config file for gcloud\n\n```bash\n$ kube-tmuxp gcloud-generate --help\nGenerates configs for kube-tmuxp based on gcloud account\n\nUsage:\n  kube-tmuxp gcloud-generate [flags]\n\nFlags:\n      --additional-envs strings   Additional envs to be populated\n      --all-projects              Skip confirmation for projects\n      --apply                    Directly create the tmuxp configs for selected projects\n  -h, --help                     help for gcloud-generate\n      --project-ids strings       Comma separated Project IDs to which the configurations need to be fetched\n\n```\n\n#### Examples:\n\n1) Interactively select projects:\n\n```bash\n$ kube-tmuxp gcloud-generate\n# this will prompt for the projectIDs selection. Type to filter and select using space\n# fuzzy search will work\n```\n\n2) Specify projectIDs:\n\n```bash\n$ kube-tmuxp gcloud-generate --projectIDs project1,project2\n```\n\n3) For all projects:\n\n```bash\n$ kube-tmuxp gcloud-generate --allProjects\n```\n\n4) Use env variables in kube-tmuxp:\n\n\u003e kube-tmuxp provides four envs: `KUBETMUXP_CLUSTER_NAME`, `KUBETMUXP_CLUSTER_LOCATION`, `KUBETMUXP_CLUSTER_IS_REGIONAL`, `GCP_PROJECT_ID`. We can pass additional envs also.\n\n```bash\n$ kube-tmuxp gcloud-generate --additionalEnvs 'NEW_KEY=new_value,NEW_ENV=$HOME,KUBE_CONFIG=$HOME/.kube/configs/$KUBETMUXP_CLUSTER_NAME'\n# each tmux session will have 7 envs (4 predefined, 3 additionalEnvs passed as argument)\n```\n\n5) Directly create the kubeconfigs and tmuxp files (instead of kube-tmuxp config files):\n\n```bash\n$ kube-tmuxp gcloud-generate --apply\n```\n\n## Start a session\n\n```\ntmuxp load my-context-name\n```\n\nNow you will be inside a `tmux` session preconfigured with Kubernetes context `my-context-name`.\n\n## Handy bash functions\n\nUse the `bash` functions\navailable [here](https://github.com/arunvelsriram/dotfiles/blob/master/bash_it_custom/plugins/kube-tmuxp.plugin.bash) to\nswitch, kill sessions easily. Special thanks to [@jskswamy](https://github.com/jskswamy) for writing these awesome\nfunctions.\n\n## Limitations\n\n* Currently works for Google Kubernetes Engine (GKE) only. However, it can be extended to work with any Kubernetes\n  clusters. Feel free to submit a PR for this.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecasualcoder%2Fkube-tmuxp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecasualcoder%2Fkube-tmuxp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecasualcoder%2Fkube-tmuxp/lists"}