By default, Flutter SDK is downloaded from https://storage.googleapis.com.
If you have difficulty accessing it, you can set the FLUTTER_STORAGE_BASE_URL environment variable to use a mirror.
Common mirror values:
| Mirror | URL |
|---|---|
| CFUG (China Flutter User Group) | https://storage.flutter-io.cn |
| CERNET (China Education and Research Network) | https://mirrors.cernet.edu.cn/flutter |
For an up-to-date list of available mirrors, refer to the MirrorZ Help site: https://help.mirrors.cernet.edu.cn/flutter/ .
CERNET's address redirects each request to one of its member mirrors, and answers 404 while none
of them has a recent copy of Flutter, see troubleshooting.md.
Tsinghua University's TUNA removed its Flutter mirror,
https://mirrors.tuna.tsinghua.edu.cn/flutter, on 2026-08-09.
FLUTTER_STORAGE_BASE_URL is Flutter's own variable, and it matters in three places:
- The plugin reads the release index from it:
<mirror>/flutter_infra_release/releases/releases_linux.json(releases_macos.jsonandreleases_windows.jsonon those systems). The index decides whatvfox search flutterlists and what a channel stands for, see channels.md. - The archive comes from it. The plugin builds the address that vfox downloads from the
index's
archivefield,<mirror>/flutter_infra_release/releases/<archive>, and does not use thebase_urlthat the index itself carries. The checksum is the one from the same index. - The
fluttertool reads it too. Downloads that the tool makes itself, such as the Dart SDK of a source install (see arm64.md) and engine artifacts, go through it. That is why it has to stay set in your shell, not only while you runvfox install.
A trailing slash is removed, so https://storage.flutter-io.cn/ works, and an empty value
counts as unset. A mirror has to keep Google's layout under flutter_infra_release/ and
answer for the index and the archives. The mirror's index is the list of what you can
install: a release it has not copied yet is missing, and stable points where its copy
says. On 2026-12-04 Google and CFUG served the same releases.
To check a mirror before you use it, ask it for the index of your system:
curl --fail --silent --show-error --location --output /dev/null \
https://storage.flutter-io.cn/flutter_infra_release/releases/releases_linux.jsonThe test suite runs the same request against https://storage.flutter-io.cn before it
installs through it.
| Install | Release index | Download |
|---|---|---|
Archive: Linux x64, macOS, Windows x64, and -x64 anywhere |
FLUTTER_STORAGE_BASE_URL |
FLUTTER_STORAGE_BASE_URL |
| Source: Linux ARM64 and Windows ARM64 | FLUTTER_STORAGE_BASE_URL |
GitHub, with VFOX_FLUTTER_GITHUB_MIRROR |
| OpenHarmony | gitcode.com, no mirror | gitcode.com, or VFOX_FLUTTER_OHOS_REPOSITORY |
Installing an OpenHarmony build does not read the release index at all, but
vfox search flutter does, because it lists the official releases next to them.
PUB_HOSTED_URL, the address that flutter pub get fetches packages from, is not read by
the plugin. If you use CFUG's mirror, Flutter's
guide for China sets it to
https://pub.flutter-io.cn next to FLUTTER_STORAGE_BASE_URL.
For Bash,
- You can make the setting take effect temporarily in the current shell using the following command.
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn- To ensure that environment variables always take effect, you can perform the following steps:
sudo tee /etc/profile.d/flutter-storage.sh <<EOF
export FLUTTER_STORAGE_BASE_URL="https://storage.flutter-io.cn"
EOF
source /etc/profile.d/flutter-storage.shA file in /etc/profile.d is read by login shells, so other terminals pick it up after you
log in again.
For zsh, add the line to ~/.zshrc and open a new terminal:
echo 'export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn' >> ~/.zshrcFor PowerShell 7,
- You can make the setting take effect temporarily in the current shell using the following command.
$env:FLUTTER_STORAGE_BASE_URL = "https://storage.flutter-io.cn"- To ensure that environment variables always take effect, you can perform the following steps:
[Environment]::SetEnvironmentVariable('FLUTTER_STORAGE_BASE_URL', 'https://storage.flutter-io.cn', 'Machine')The Machine scope needs a PowerShell started as administrator, and applies to programs
you start afterwards. Use 'User' instead to set it for your account only.
On Linux ARM64 and Windows ARM64,
the plugin installs Flutter from git source instead of a prebuilt archive.
If you have difficulty accessing https://github.com,
you can set the VFOX_FLUTTER_GITHUB_MIRROR environment variable to use a mirror
instead. The value is a URL prefix that is prepended to the GitHub URL.
Common mirror values:
| Mirror | Value |
|---|---|
| gh-proxy | https://gh-proxy.org/ |
For Bash,
- You can make the setting take effect temporarily in the current shell using the following command.
export VFOX_FLUTTER_GITHUB_MIRROR=https://gh-proxy.org/- To ensure that environment variables always take effect, you can perform the following steps:
sudo tee /etc/profile.d/flutter-github-mirror.sh <<EOF
export VFOX_FLUTTER_GITHUB_MIRROR="https://gh-proxy.org/"
EOF
source /etc/profile.d/flutter-github-mirror.shFor PowerShell 7,
- You can make the setting take effect temporarily in the current shell using the following command.
$env:VFOX_FLUTTER_GITHUB_MIRROR = "https://gh-proxy.org/"- To ensure that environment variables always take effect, you can perform the following steps:
[Environment]::SetEnvironmentVariable('VFOX_FLUTTER_GITHUB_MIRROR', 'https://gh-proxy.org/', 'Machine')The mirror only rewrites URLs that start with https://github.com/,
so the FLUTTER_STORAGE_BASE_URL variable above is unaffected.
A value without a trailing slash gets one, and the install prints the address it
clones from, with a user name, a password and a query in it replaced by ***:
Using GitHub mirror https://gh-proxy.org/https://github.com/flutter/flutter.git
Only the clone of flutter/flutter goes through it. The mirror has to be a service that
takes the full GitHub address after its prefix, as gh-proxy does. The plugin fetches the
commit that the release index names through it, and git checks what arrives against that
commit, so a mirror cannot hand out other code. A mirror that does not answer fails with
cannot reach <address>, after three attempts, and one that does not have the commit with
failed to fetch <commit> from <address>. See
troubleshooting.md.
An install of an OpenHarmony build fetches the release's commit from
https://gitcode.com/CPF-Flutter/flutter_flutter.git. VFOX_FLUTTER_OHOS_REPOSITORY names
another repository to fetch it from, such as a mirror you keep: a URL or an absolute path
that git fetch takes. A relative path is refused, and on Windows so is a path with %, a
double quote or a control character. The release list, and with it the commit of each
release, still comes from gitcode.com, so
its rate limit still applies. git checks
what it receives against that commit, so the other repository can hand out only the code of
the release, and has to hold it. A release for which gitcode.com names no commit hash is not
installed from another repository.
On 2026-12-01 AtomGit served the same repository. For Bash,
export VFOX_FLUTTER_OHOS_REPOSITORY=https://atomgit.com/CPF-Flutter/flutter_flutter.gitFor PowerShell 7,
$env:VFOX_FLUTTER_OHOS_REPOSITORY = "https://atomgit.com/CPF-Flutter/flutter_flutter.git"To keep it set, add it the way the variables above are added, in a file of its own on
Linux. The install prints the address it fetches from, with a user name, a password and a
query in it replaced by ***:
Using OpenHarmony repository https://atomgit.com/CPF-Flutter/flutter_flutter.git
A proxy is not a mirror. vfox's own proxy setting covers the plugin's requests and the
archive download, and git reads its own (HTTPS_PROXY, http.proxy), see
troubleshooting.md.