Open-source command-line tool

Clone and organise every repository you own

corralctl clones your repositories from six forges into one predictable layout, keeps them in sync, and lets AI coding agents search all of them at once.

  • GitHub
  • GitLab
  • Gitea
  • Forgejo
  • Codeberg
  • Bitbucket

What it does

One binary for every repository on your machine

Each card opens its section on the features page.

Organised layout

Clones land in Public/, Private/ and Forks/, then by language, so the same repository is always at the same path. On macOS each folder also gets Finder tags.

How the layout works

Smart syncing

A sidecar file records each clone's last known push. When the forge reports nothing new, corralctl skips the git pull entirely.

How smart syncing works

Exec mode

Run one shell command across every clone at once, narrowed by language or visibility: git status, a test run, an audit.

How exec works

Mirror to other forges

corralctl sync pushes the organised tree out to GitLab, Gitea, Forgejo, Codeberg, Bitbucket or GitHub, and never force-pushes a branch.

How mirroring works

MCP server

Serves your local clones to AI coding agents. Read-only by default: no network calls, and the GitHub API is never contacted.

How the MCP server works

Cross-repository symbol lookup

Find where a function or type is declared, and where text is written, across every clone on the machine rather than the one an editor has open.

How symbol lookup works

Who it is for

Four ways people use corralctl

The same commands, for four different jobs.

Developers

You own hundreds of repositories

One command clones what is missing, pulls what is stale and leaves the rest alone, then puts every clone where you would look for it.

Read the use case

AI agents

Your coding agent needs the whole workspace

The MCP server tells an agent which repository holds a symbol before it opens a file, and refuses to delete anything holding unpublished work.

Read the use case

Forges

You are moving between forges

Clone from one host and mirror to the others, keeping each repository's visibility, with a dry run before anything is pushed.

Read the use case

Automation

Your sync runs while you sleep

Every git call runs without prompts, so a cron job or systemd timer fails cleanly instead of hanging, and a non-zero exit tells you why.

Read the use case

Install

From install to an organised workspace in two commands

corralctl is a single static Go binary. Install it with mise, Homebrew, the AUR, Nix or the Go toolchain, sign in to GitHub, and point it at an owner.

  • mise
  • Homebrew
  • AUR
  • Nix
  • go install
Terminal
# Install (macOS or Linux)
mise use -g github:sebastienrousseau/corralctl

# Sign in once, or set GITHUB_TOKEN
gh auth login

# Clone and organise every repository you own
corralctl clone my-username

# Preview the next run without touching disk
corralctl plan my-username
Security

Built to refuse before it deletes

corralctl runs with your own credentials on your own machine, so its security model is about limiting the blast radius of a mistake.

Prune and the MCP delete tool decline any clone holding uncommitted, unpushed, stashed, submodule or gitignored work. Tokens never reach a command line or .git/config, and every release is signed and reproducible.

Release signing
Keyless cosign
Build provenance
SLSA
Software bill of materials
CycloneDX
MCP server default
Read-only

In numbers

What one binary covers

Counted from the corralctl README; the timing is its measured cross-repository lookup on a real 187-repository workspace.

Forges it clones from
6
MCP tools, 9 read-only
13
Languages in the symbol index
5
Symbol lookup, 187 clones
1.3 s
  • Claude Code
  • Cursor
  • Cline
  • Codex CLI
  • Aider
  • Any MCP client

What is corralctl?

corralctl is a free, open-source command-line tool and MCP server, written in Go and released under the GNU General Public License v3.0. Given an owner name, it lists that owner's repositories on GitHub, GitLab, Gitea, Forgejo, Codeberg or Bitbucket, clones the ones missing from your machine, pulls the ones that have changed, and files every clone under Public/, Private/ or Forks/, then by language. Corral is the project; corralctl is the binary you run.

How is it different from a clone script?

A loop over git clone gets the repositories onto disk once. corralctl keeps them right afterwards:

  • It converges. Run it again and it clones only what is new, pulls only what was pushed to since the last run, and leaves the rest untouched.
  • It previews. corralctl plan shows what a run would do without changing anything.
  • It refuses before it deletes. corralctl prune removes clones that no longer exist upstream, but declines any clone holding uncommitted, unpushed, stashed or gitignored work.
  • It reaches past one forge. It clones from six hosts, and corralctl sync mirrors the organised tree back out to them.

Who makes it?

Corral is written and maintained by Sebastien Rousseau, a payments leader with 19 years in banking who builds open-source tools for finance and for developers. The source, the issue tracker and every signed release are on GitHub. Read more on the about page.