Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Release Download Mirror
Background
Every Avibe download (desktop installers and updates, the managed runtimes
including tmux, the Show Runtime, the askill and avault binaries, and wheels
used by install scripts) comes from GitHub Release assets. Update discovery uses
api.github.com. In mainland China, GitHub downloads are often slow or stall,
and the 60 requests/hour unauthenticated API limit per IP has already surfaced
as update-check 403s.
dl.avibe.bot serves the Cloudflare R2 bucket avibe through a custom domain,
with no egress fees. This plan makes it a byte-identical mirror of the
published releases plus a static release index. Clients try the mirror first
and fall back to GitHub.
Principles
- GitHub Releases remain the source of truth. The mirror serves copies of
published bytes and never authenticates them. Clients keep verifying what
they already verify, whatever the source: updater signatures, pinned
sha256 values, and
SHA256SUMS. - A mirror miss is a fallback, not an error. Retention, lag, and outages degrade to today's GitHub path.
Contract
URLs
Each mirrored repository owns one bucket root:
| Repository | Root |
|---|---|
avibe-bot/avibe |
(the bucket root) |
avibe-bot/askill |
askill/ |
avibe-bot/avault |
avault/ |
tmux/tmux-builds |
tmux/ |
BurntSushi/ripgrep |
ripgrep/ |
cloudflare/cloudflared |
cloudflared/ |
tmux/tmux-builds is third-party: the ISC-licensed tmux builds the managed
tmux runtime pins. Its releases are mirrored like Avibe's own, with their
LICENSES.tar.gz.
BurntSushi/ripgrep and cloudflare/cloudflared are third-party too, and
only the releases that vibe/ripgrep_runtime_manifest.json and
vibe/cloudflared_runtime_manifest.json pin or once pinned are mirrored. See
docs/plans/ripgrep-runtime.md and docs/plans/cloudflared-runtime.md.
https://dl.avibe.bot/<root>releases/<tag>/<asset>is byte-identical tohttps://github.com/<repository>/releases/download/<tag>/<asset>. Clients derive the mirror URL only by substituting that prefix, which keeps percent-encoding identical (for example+as%2B). The bucket key is<root>releases/<tag>/<asset>with the decoded asset name.- Release objects are immutable:
Cache-Control: public, max-age=31536000, immutable. Published assets are upload-once (release workflows replace assets only on drafts), so a tag and asset name never change bytes. https://dl.avibe.bot/<root>index/releases.jsonis the repository's release index:Cache-Control: public, max-age=60.https://dl.avibe.bot/latest/Avibe_<target>.<ext>is a stable download link for people, not clients: a copy ofAvibe_<version>_<target>.<ext>(.dmgand.exeinstallers) from the highest-SemVer stablevX.Y.Zrelease that ships installers, the release the desktop updater's stable channel offers. Its bytes change when that release changes, so it carriesCache-Control: public, max-age=60andContent-Disposition: attachment; filename="Avibe_<version>_<target>.<ext>". Only Avibe's root haslatest/; clients keep using versioned URLs.- Other top-level prefixes are reserved and never touched by the release
mirror (for example a future
thirdparty/for install-script dependencies). A new mirrored repository takes a new root.
Release index, schema 1
{
"schema_version": 1,
"repository": "avibe-bot/avibe",
"releases": [
{
"tag": "gh-v3.1.2rc6",
"prerelease": true,
"published_at": "2026-09-29T07:35:48Z",
"commit": "<40-hex commit the tag points to>",
"assets": [{ "name": "<asset>", "size": 123, "sha256": "<64-hex>" }],
"update_notification": "none"
}
]
}
- Releases are ordered newest
published_atfirst; assets by name. - The index lists exactly the releases the mirror holds. When it is written, every listed asset already exists in the bucket with those bytes.
sha256is GitHub's asset digest, re-verified against the downloaded bytes before upload.commitis the peeled tag target.update_notificationis present, as"none", only when the release notes carry the silent-update marker (docs/release.md), read ascore/update_checker.pyreads it. Consumers treat a missing field as an announced release. The desktop updater does not prompt at startup for a silent release.- Producer: the release mirror workflow. Consumers: the desktop updater reads
Avibe's index; the other repositories' have none yet.
Planned: the CLI update checker, replacing its
api.github.comdiscovery call. Runtime downloads use pinned release URLs and need no index. - The index is unauthenticated metadata. A hostile index can at most withhold releases, mark them silent, or name copies that then fail the consumer's existing verification.
Retention
- Every full release (
prerelease: false) is kept: stablev*,model-hub-engine-*, andgit-runtime-*. Pinned runtime manifests depend on those URLs. - The newest 20 prereleases by
published_atare kept. Older prereleases leave the mirror and the index; their downloads fall back to GitHub. - Drafts are never mirrored.
- tmux-builds keeps no prereleases. Its
previewprerelease is rebuilt in place, changing bytes under unchanged asset names, which the reconciler must treat as published bytes changing. - ripgrep and cloudflared keep every release a manifest has pinned, and nothing else; their roots only grow. The mirror is those releases' backup. When GitHub no longer publishes a currently pinned archive with the manifest's size and digest, the run fails before planning. A release an earlier manifest pinned stays in the index and the bucket after the pin moves, because released Avibe versions still name it.
- At the time of writing Avibe is 89 releases and about 19 GB, most of it the desktop bundles in recent prereleases (about 0.7 GB each). askill adds 16 releases and about 7 GB, avault 5 releases and 0.04 GB, tmux-builds 5 releases and 0.02 GB.
Reconciler
.github/workflows/release-mirror.yml runs scripts/release_mirror.py, which
reconciles each mirrored repository against its own root:
- List published releases through the GitHub API and tag commits through
git ls-remote. Refuse to continue if GitHub reports no published releases. - List the bucket and read the previous index.
- Upload each selected asset that is missing, has the wrong size, or is not recorded with the same digest in the previous index, after verifying the downloaded size and sha256 against GitHub's digest.
- For Avibe, copy each
latest/installer whose recorded sha256 differs from its source inside the bucket, after the source is verified or uploaded. - Write the index if its bytes changed, then delete
<root>releases/objects that left the selection andlatest/installers the latest release no longer ships. Objects appear before the index names them and disappear only after it stops naming them. - If GitHub's digest for an indexed asset changed, re-upload it and fail the run: published bytes changed, and edge caches may hold the old copy until that URL is purged.
Roots are disjoint, so a repository that fails does not stop the others; the run fails after all of them were tried.
Triggers: completion of the release-publishing workflows (assets are uploaded
with GITHUB_TOKEN, which does not emit release events), an hourly schedule
as the safety net and the only trigger for the other repositories' releases, and
manual dispatch with an optional dry run. A dry run reports the plan without
writing and still fails when published bytes changed.
Credentials are the R2_ACCOUNT_ID, R2_ACCESS_KEY_ID, and
R2_SECRET_ACCESS_KEY repository secrets. They can write and delete every
object, so the workflow has no pull_request trigger: only code already on the
default branch receives them.
Zone configuration
Cloudflare configuration lives outside the repository. The expected state:
dl.avibe.botis the bucket's custom domain; ther2.devURL stays off.- One Cache Rule for
http.host eq "dl.avibe.bot": eligible for cache, edge and browser TTL respect the origin. The object headers above carry the policy; the rule exists because default caching skips extensions such as.whl,.tgz,.json, and.sig. - The zone's Browser Integrity Check answers the
Python-urllibUser-Agent with 403 (error 1010). Clients name their own agent; curl, PowerShell, and Rust clients already pass.
Client downloads
The managed git, tmux, ripgrep, and cloudflared runtimes, the model hub
engine, Show Runtime manifest archives, and the askill and avault binaries
download through
core.dependency_network.fetch_to_path:
- A mirrored repository's release URL without a query tries the mirror, then GitHub. Any other URL (legacy Show Runtime archives, manifest overrides) keeps its single source.
- Sources rotate, each with the download retry budget. A non-retryable failure, such as a mirror 404, drops that source.
- A failed or stalled attempt (the caller's socket timeout) keeps its bytes, and
the next attempt asks for the rest with
Range. A200restarts the file; a206must start at the current length. A body shorter than itsContent-Lengthis incomplete, not finished. - The source that last completed a download goes first for the rest of the process.
- The pinned
sha256check after download is unchanged. askill and avault are pinned invibe/api.py(version, and the sha256 and size of each platform's asset from GitHub's digests), so neither fetches a manifest or asks GitHub for its latest release. A newer askill or avault reaches users with the Avibe release that moves the pin. Updates keep an askill newer than the pin; an explicit repair installs the pin.
probe_url reports a release asset reachable when any of its sources answers.
Rollout
- Mirror and index (this change), then a full backfill by manual dispatch.
- Cache Rule, then real-file tests from the three mainland carriers at the evening peak.
- Clients, one at a time: desktop updater (done), then runtime and Show
Runtime downloads (done), then askill, avault, and tmux (done). Each tries the
mirror first, then GitHub, with a connect timeout and a stall watchdog,
resumes with
Rangewhen switching source, and remembers the last source that worked. The references are the desktop shell'savibe_runtime_host::download(Rust) and Client downloads above (Python). - Install-script third-party dependencies (the uv installer and
python-build-standalone). The install scripts fetch no Avibe release
assets; their GitHub traffic is uv and the Python it installs. The uv
installer tries Astral's CDN (
releases.astral.sh) before GitHub, and so does uv 0.10.8 and later for Python. For earlier uv the scripts pass that CDN asUV_PYTHON_INSTALL_MIRRORto the install step only, and never when the user already chose a Python source: a configured mirror turns off newer uv's GitHub fallback. Mirror either into R2 only if step 2 showsreleases.astral.shis slow from mainland carriers. PyPI and npm keep using their existing mainland mirrors.