explaingit

zhangsir9901/bbrv3-onekey

Analysis updated 2026-05-18

29ShellAudience · ops devopsComplexity · 2/5Setup · easy

TLDR

A one-click shell script that installs the XanMod BBRv3 kernel and tunes network queues on Debian and Ubuntu servers for faster networking.

Mindmap

mindmap
  root((BBRv3 Onekey))
    What it does
      Installs XanMod kernel
      Enables BBRv3
      Tunes qdisc
    Tech stack
      Shell script
      sysctl
      tc qdisc
    Use cases
      Speed up VPS
      Fix Cloudflare blocks
      Verify tuning
    Audience
      VPS admins
      Self hosters

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Speed up a VPS by installing BBRv3 and picking the right network queue preset for your region.

USE CASE 2

Fix Cloudflare 403 blocks affecting VPS IPs from providers like Alibaba Cloud Hong Kong or AWS Japan.

USE CASE 3

Check whether BBRv3 and kernel tuning are actually active on a server after setup.

What is it built with?

ShellLinuxXanMod kernelBBRv3sysctltc/qdisc

How does it compare?

zhangsir9901/bbrv3-onekeychristitustech/zed-titusq1uf3ng/dirty-merge
Stars292929
LanguageShellShellShell
Setup difficultyeasyeasyhard
Complexity2/52/55/5
Audienceops devopsdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires root access on a Debian or Ubuntu VPS.

In plain English

BBRv3-Onekey is a shell script for Debian 12 and 13, and Ubuntu 20.04 through 26.04 LTS, that installs the XanMod kernel with BBRv3 congestion control and tunes Linux network queue scheduling in one run. You run it as root with a single curl command, and it walks you through a menu of tuning presets. The script tries to detect where your server is physically hosted by checking its route through Cloudflare's edge network, then highlights the tuning option it thinks fits best. It offers four main presets: two aimed at low latency in Asia Pacific regions such as Japan, Singapore, Hong Kong, and Korea, and two aimed at long distance links to the US, Canada, Europe, or Australia. Within each region pair, one preset is tuned for servers that also host websites, balancing network buffers so a database or web app does not run out of memory, and the other is tuned for servers used purely to relay traffic, pushing the queue algorithm harder for throughput or latency. The queue algorithms used are FQ_CODEL, CAKE, and FQ depending on the preset. A fifth menu option checks the current kernel, sysctl settings, and network queue discipline to confirm the tuning took effect. The script targets users on VPS providers where IPs from certain regions, such as Alibaba Cloud Hong Kong or AWS Japan, sometimes get blocked by Cloudflare with a 403 error. It includes workarounds for this, including disguising its outbound requests and falling back to IPv4. If your kernel is already up to date, it skips reinstalling it and applies the sysctl settings immediately, so changes take effect without a reboot. For safety, installing a new kernel does not remove your existing one. If a new kernel causes your server to fail to boot, which the author says is rare, you can restart through your hosting provider's console and pick the old kernel from the GRUB boot menu to recover. The author offers support over WeChat and Telegram and accepts optional donations via Alipay or USDT.

Copy-paste prompts

Prompt 1
Walk me through what BBRv3-Onekey's menu options 1 through 4 actually change on my Debian server.
Prompt 2
I run a VPS in Tokyo that also hosts a website. Which BBRv3-Onekey preset should I pick and why.
Prompt 3
Explain how BBRv3-Onekey detects my server's location through Cloudflare and why that matters for queue algorithm choice.
Prompt 4
What should I do if my server fails to boot after BBRv3-Onekey installs a new kernel.

Frequently asked questions

What is bbrv3-onekey?

A one-click shell script that installs the XanMod BBRv3 kernel and tunes network queues on Debian and Ubuntu servers for faster networking.

What language is bbrv3-onekey written in?

Mainly Shell. The stack also includes Shell, Linux, XanMod kernel.

How hard is bbrv3-onekey to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is bbrv3-onekey for?

Mainly ops devops.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.