Documentation

URL Conversion Rules

Xget supports URL acceleration for 40+ platforms, simply replace the domain and add platform prefix

Conversion Formula

https://original-domain/path
https://xget-instance/prefix/path

Supported Platforms

GitHub

ghgithub.com

Download VSCode source archive

Original:https://github.com/microsoft/vscode/archive/refs/heads/main.zip
Accelerated:
https://xget.xi-xu.me/gh/microsoft/vscode/archive/refs/heads/main.zip

GitHub Gist

gistgist.github.com

Download Gist file

Original:https://gist.github.com/user/gist-id/raw/file.md
Accelerated:
https://xget.xi-xu.me/gist/user/gist-id/raw/file.md

GitLab

glgitlab.com

Download GitLab source

Original:https://gitlab.com/gitlab-org/gitlab/-/archive/master/gitlab-master.zip
Accelerated:
https://xget.xi-xu.me/gl/gitlab-org/gitlab/-/archive/master/gitlab-master.zip

Gitea

giteagitea.com

Download Gitea source

Original:https://gitea.com/gitea/gitea/archive/master.zip
Accelerated:
https://xget.xi-xu.me/gitea/gitea/gitea/archive/master.zip

Codeberg

codebergcodeberg.org

Download Forgejo source

Original:https://codeberg.org/forgejo/forgejo/archive/forgejo.zip
Accelerated:
https://xget.xi-xu.me/codeberg/forgejo/forgejo/archive/forgejo.zip

SourceForge

sfsourceforge.net

Download 7-Zip installer

Original:https://sourceforge.net/projects/sevenzip/files/7-Zip/23.01/7z2301-x64.exe/download
Accelerated:
https://xget.xi-xu.me/sf/projects/sevenzip/files/7-Zip/23.01/7z2301-x64.exe/download

AOSP

aospandroid.googlesource.com

Access Android framework source

Original:https://android.googlesource.com/platform/frameworks/base
Accelerated:
https://xget.xi-xu.me/aosp/platform/frameworks/base

Git Operations & Configuration

Git Operation Examples

Clone repository

git clone https://xget.xi-xu.me/gh/microsoft/vscode.git

Clone specific branch

git clone -b main https://xget.xi-xu.me/gh/facebook/react.git

Shallow clone (latest commit only)

git clone --depth 1 https://xget.xi-xu.me/gh/torvalds/linux.git

Recursive submodule clone

git clone --recursive https://xget.xi-xu.me/gh/user/repo-with-submodules.git

Global Acceleration Config

GitHub global config

git config --global url."https://xget.xi-xu.me/gh/".insteadOf "https://github.com/"

GitLab global config

git config --global url."https://xget.xi-xu.me/gl/".insteadOf "https://gitlab.com/"

Verify configuration

git config --global --get-regexp url

After configuration, all git clone commands will automatically use Xget acceleration

Download Tool Integration

wget download

wget https://xget.xi-xu.me/gh/user/repo/archive/main.zip

cURL download

curl -L -O https://xget.xi-xu.me/gh/user/repo/archive/main.zip

aria2 multi-thread download

aria2c -x 16 -s 16 https://xget.xi-xu.me/hf/model/resolve/main/model.bin