Overview
Kooper Git Local (kgl) is the companion to Kooper Git Status: Kooper Git Status shows the state of the repos you have, and kgl shows the ones you're missing. It lists every GitHub repository you have access to, shows which are already cloned in your git folder (~/git by default), and clones the ones you pick. On a new machine, point it at an empty ~/git, press a then c, and everything is cloned.
kgl # check ~/git (or $KGL_ROOT)
kgl ~/src
kgl -owner you,your-org # only repos owned by these
kgl -dest ~/new # clone somewhere else
kgl -json # print the list as JSON and exitIt needs git and the GitHub CLI, logged in once with gh auth login. The list is everything gh can see for your account: repos you own, repos in your organisations and repos you collaborate on.
Download
Kooper Git Local 1.0.0 — First Release · v1.0.0 · released 5 December 2026 · release notes · all releases
| macOS | Intel 1.8 MB Apple silicon 1.6 MB |
|---|---|
| Linux | x86-64 1.8 MB ARM64 1.6 MB |
| Windows | x86-64 1.9 MB ARM64 1.7 MB |
| FreeBSD | x86-64 1.7 MB |
Unpack the archive and put kgl (kgl.exe on Windows) somewhere on your PATH. SHA256SUMS has the checksum of every file: sha256sum -c SHA256SUMS --ignore-missing (shasum -a 256 -c on macOS).
The binaries aren't signed, so macOS may refuse to open one downloaded with a browser: allow it under System Settings → Privacy & Security, or run xattr -d com.apple.quarantine kgl. On Windows, SmartScreen may ask you to choose More info → Run anyway.
go install github.com/colboycolinmeeks/koopergitlocal/cmd/kgl@latestWhat counts as local
A repo is local when a folder in your git folder has it as its origin remote. The match is on the remote URL, not the folder name, so a clone in a differently named folder still counts, and https://, git@github.com: and ssh:// URLs for the same repo all match.
| Status | Meaning |
|---|---|
local | Cloned in the folder (the detail pane shows where) |
not local | Not cloned; c or enter clones it |
name taken | Not cloned, and something else already has its folder name |
cloning… | A clone is running (up to four at once) |
clone failed | The detail pane shows git's message |
Keys
| Key | Action |
|---|---|
↑ ↓, j k, PgUp PgDn, g G | Move |
space | Mark or unmark a repo for cloning, and move down |
a | Mark every repo shown that isn't local (again: unmark them) |
c | Clone the marked repos, or the selected one |
enter | On a local repo: open your shell in it. Otherwise the same as c |
t / w | Open a terminal in the local copy / the repo's GitHub page |
/ / f / S | Search / filter (all, not local, local) / sort (name, status, last push) |
r / T | Refresh from GitHub / switch theme |
n | What's new: the release notes for every version |
q | Quit (asks again while clones are running) |
Cloning
c asks where the clones should go, showing your git folder. Press Enter, or edit the folder first; it's created if needed. Each repo is cloned into <folder>/<repo name> with gh repo clone, so:
- it uses your
ghlogin, which works for private repos over https; - it follows gh's
git_protocolsetting, sogh config set git_protocol sshclones over ssh; - for a fork, gh also adds the original repo as the
upstreamremote.
Clones run in the background, four at a time. Nothing ever prompts: a clone that would need a password or passphrase fails instead, so use an ssh agent or https through gh. A folder that already exists is never overwritten.
# clone everything that's missing, without the UI
kgl -json | jq -r '.[] | select(.status == "not local") | .full_name' |
while read -r r; do gh repo clone "$r" ~/git/"${r#*/}"; doneSafety
- kgl reads your local repos with
git configonly, which runs no hooks or helpers, and never changes them. - It writes only when you clone, only into the folder you confirmed, and never into a folder that already exists. Repo names are checked so a clone can't land outside that folder.
- Text from GitHub and from repos has control characters replaced before it's shown, so it can't send escape sequences to your terminal.
Building from source
Kooper Git Local needs Go 1.27 or later.
make # build bin/kgl
make run # build and run against ~/git (make run ARGS=~/src)
make check # gofmt, go vet, tests with -race: what CI runs
make install # install to /usr/local/bin (PREFIX=~/.local to change)
make package # release archives and SHA256SUMS in dist/