One static CLI for releases, issues, pull requests and CI runs — on any git platform.
English | 简体中文 · Docs · mcpp · xlings · xim-pkgindex · OpenKal · Releases
One command surface over git hosting platforms: releases and assets, issues, pull requests and CI runs are typed
verbs — same names, same --json envelope, same exit codes on every platform. Four platforms are built in; a fifth
is a TOML file. A token travels in a header, never in a URL or on the command line. C++23 modules, built with
mcpp, shipped as one static binary through OpenKal.
Install with xlings — a package manager for Linux, macOS and Windows; xlings use switches versions.
xlings install gitanyDon't have xlings yet? Click for the install command
Linux / macOS
curl -fsSL https://d2learn.org/xlings-install.sh | bashWindows — PowerShell
irm https://d2learn.org/xlings-install.ps1.txt | iexOr let an agent do it — a prompt to send
Install gitany (https://github.com/Sunrisepeak/gitany) with `xlings install gitany`.
If xlings is missing, install it first from its repository (https://github.com/openxlings/xlings).
Then run `gitany --version` to confirm.
Make a token at github-tokens — fine-grained with Contents, Issues, Pull requests
read and write, or classic with repo — and add it; the terminal asks for it, paste and Enter:
gitany auth add my-github --platform github
gitany auth test my-github # status 200 · 214 ms · login <you>
gitany release list -R github.com/owner/repoAccounts live in ~/.gitany/config.toml, and gitany auth list shows a token as ***7KxQ. In a script or CI, name the
source: --token-stdin, --token-env GITHUB_TOKEN or --token-file PATH.
GitLab — a personal access token, made at gitlab-tokens.
Scope api; a self-managed instance adds --host gitlab.example.com.
gitany auth add my-gitlab --platform gitlabGitee — a private token, made at gitee-tokens.
Scopes user_info, projects, issues, pull_requests.
gitany auth add my-gitee --platform giteeGitCode — a personal access token, made by the gitcode-tokens guide.
avatar → Personal Settings → Access Tokens → Create New Access Token; the scopes you need
(projects, issues); the token is shown once.
gitany auth add my-gitcode --platform gitcodeScenarios — tokens and accounts, agents, adding a platform
An account is one token on one platform, named. Each platform has a default account (auth use NAME),
and a command acts with it unless --account names another:
- Tokens of different permissions — a read-only one to look, a writing one to release: two accounts.
- Accounts on several platforms — personal and work, GitHub and GitLab:
-R host/owner/repopicks the platform by its host,--accountthe account. - Everywhere at once — a plan names the release, the files and the platforms;
mirrorruns it with every account on its own budget, so one account's 429 never fails another's step:
gitany auth add ci-gitee --platform gitee --token-env GITEE_TOKEN
gitany mirror --plan release.json --dry-run
gitany mirror --plan release.json --parallel 6--parallel 6 runs six steps at a time (the default is 4). The plan's shape, and the pool that spreads the
budget: gitany mirror --agent-skill-doc.
Answers are structured (--json, one gitany.v1 envelope; the same exit codes on every platform); every write
has a --dry-run plan with header names and no credential; a token is masked by value, so it never reaches an
agent's context. The skills are built in — progressive, with heuristics and the scenarios a command belongs to:
gitany --agent-skill-doc # the map: rules, scenarios, heuristics, and the index of every skill
gitany mirror --agent-skill-doc # one command's skillSeveral agents work at once without blocking: scope each to its own account (--account); the home's shared
state is append-only, nothing locks. The files: agent skills.
A TOML file states an HTTPS API in gitany's terms — its hosts, the header a token travels in, one row per
operation. The built-in platforms are written in the same words, so gitany platforms show gitee prints one as a
file, and a platform of your own starts from it. gitany platforms lists them; validate <file> checks one
without a network; add <file> installs it under ~/.gitany/platforms/ (0600 — never from a working
directory). Every key and row: platform files.
The shape of a platform file (an excerpt)
schema = "gitany.platform.v1"
id = "intra"
api_base = "https://intra.example.com/api/v4"
auth_header = "PRIVATE-TOKEN" # the token goes out as "PRIVATE-TOKEN: <token>"
hosts = ["intra.example.com"] # the only hosts the token may reach
[[rows]]
op = "release.list"
method = "GET"
path = "projects/{owner}/{repo}/releases"A complete file serves or declares every verb of the catalog — start from gitany platforms show gitee.
The project is maintained by @Sunrisepeak; issues and pull requests are welcome.
- Discuss — an issue for a bug (the command, its
--dry-runplan, the exit code) or a proposal, before the code. - Implement on a branch off
main, verified by scope:mcpp buildand the tests that cover the change; for docs, the examples and the links. - Open a pull request with
gitany pr create— one concern per PR, CI passing,mainnever pushed to. - Commit as
<type>(<scope>): <description>—feat,fix,test,docs,refactor.
The rules in full are the repository rules; the design is the architecture document. To an AI agent, send this prompt:
Contribute to gitany (https://github.com/Sunrisepeak/gitany).
Run `gitany --agent-skill-doc` and `gitany pr --agent-skill-doc` for the built-in skills,
then follow .agents/skills/gitany-contributing/SKILL.md of the repository to help me submit a contribution.
Apache-2.0