选择安装方式
在表格中找到你的设备,复制一条命令即可。大多数设备 2 分钟即可完成安装:安装、扫描二维码、点击 Claim Device。
你知道该在设备上运行哪条命令,以及该打开哪篇指南。
开始之前
- 一个 Wantastic 控制台账户:https://console.wantastic.app。
- 要连接的设备上的终端(手机则需要 WireGuard 应用)。
- 设备可以访问互联网。
你的设备是哪种?
在表格中找到你的设备。运行中间一列的命令,然后打开对应指南查看详情。如果有两行都匹配,请使用更具体的那一行。
| 你的设备 | 运行什么 | 指南 |
|---|---|---|
| Ubuntu、Debian、Linux Mint、Proxmox | curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey | 在 Debian 和 Ubuntu 上安装 |
| RHEL、Rocky、AlmaLinux、CentOS Stream、Fedora | curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey | 在 RHEL、Rocky、Alma 和 Fedora 上安装 |
| Arch Linux、Manjaro、EndeavourOS | curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey | 在 Arch Linux 上安装 |
| Raspberry Pi(Pi 2 或更新型号、Zero 2 W) | curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey | 在 Raspberry Pi 上安装 |
| Mac(Apple 芯片或 Intel) | curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey | 在 macOS 上安装 |
| Windows 10、Windows 11、Windows Server | 在 PowerShell(管理员)中运行一行命令,然后在浏览器中批准 | 在 Windows 上安装 |
| OpenWrt 路由器(GL.iNet、TP-Link、小米、x86) | opkg update && opkg install kmod-tun ca-bundle; wget -qO- https://get.wantastic.app/install.sh | sh; wantasticd genkey | 在 OpenWrt 上安装 |
| Alpine Linux | wget -qO- https://get.wantastic.app/install.sh | sh; wantasticd genkey | 在 Alpine Linux 上安装 |
| MIPS 路由器或开发板(MT7621、ath79、Octeon) | 先检查 CPU 类型,再安装 | 在 MIPS 路由器上安装 |
| Quectel RM520N-GL 及其他 Qualcomm SDX 模组 | adb shell,然后运行:wget -qO- https://get.wantastic.app/install.sh | sh; wantasticd genkey | 在 Quectel RM520N-GL 上安装 |
| BusyBox 或其他精简固件 | wget -qO- https://get.wantastic.app/install.sh | sh; wantasticd genkey | 在 BusyBox / 嵌入式 Linux 上安装 |
| Docker 容器 | 构建一个小镜像,然后在其中运行 genkey | 在 Docker 中运行(社区方案) |
| 其他 Linux CPU 架构、离线机器 | 下载 tarball,然后运行 genkey | 手动安装 tarball |
| Android、iPhone、iPad | WireGuard 应用 + QR Code 选项卡 | Android 和 iOS(WireGuard 应用) |
| MikroTik RouterOS 7.1 或更高版本 | Add Device → MikroTik → Copy → 粘贴到 Terminal | 连接 MikroTik 路由器 |
提示: 以普通用户身份操作时使用 sudo。如果已经是 root(路由器和小型设备),请使用 wget 命令。
快速安装的工作原理
在 Linux、macOS、路由器和小型设备上,安装步骤都相同,无需令牌。
- 1运行表格中的命令。它会安装 wantasticd,然后打印 Claim URL 和二维码。
- 2用手机扫描二维码,或打开 Claim URL,登录控制台。
- 3点击 Claim Device。终端打印 "Device claimed"。
- 4按 Ctrl+C,并重启一次服务(指南中给出了命令)。设备显示为 Online。
$ curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey…Skipping login. Run 'wantasticd login' to authenticate.…Generated device claim key: /etc/wantastic/device-claim-key.jsonPublic key: Vd3hK1oQ7mR2sT9uW4xY6zA8bC0dE2fG4hJ6kL8mN0P=Server URL: https://console.wantastic.appClaim URL: https://console.wantastic.app/#desktop?claim_public_key=Vd3hK1oQ…%3D&wantastic_server=https%3A%2F%2Fconsole.wantastic.app1█▀▀▀▀▀█ ▄▀▄ ▀█▄ █▀▀▀▀▀██ ███ █ ▀█▄▀▄█ █ ███ ██ ▀▀▀ █ ▄▀█ ▀▄ █ ▀▀▀ █▀▀▀▀▀▀▀ ▀ ▀ █ ▀ ▀▀▀▀▀▀▀▀█▄▀▄▀▀█▀▄█▀▄▀▀▄█▀▄▀█▄█▀▀▀▀▀█ █▄▀▄▀█ ▀▄█ ▄▀▀▀▀▀▀▀▀ ▀▀ ▀▀▀ ▀▀▀ ▀▀▀2026/10/29 09:14:03 Waiting for claim. Press Ctrl+C to stop.2026/10/29 09:15:12 Device claimed. Configuration saved to /etc/wantastic/config.conf2^C$ sudo systemctl restart wantasticd3
- 1打开此链接,或扫描二维码
- 2已认领:现在按 Ctrl+C
- 3重启一次服务
- 1Claim public key 已自动填写
- 2Wantastic server 保持默认即可
- 3点击 Claim Device
注意: 在 Windows 上,以管理员身份打开 PowerShell,粘贴 irm https://get.wantastic.app/install.ps1 | iex,然后在浏览器中批准设备(参见在 Windows 上安装)。手机和 MikroTik 路由器完全不使用 wantasticd。
要安装大量设备?请使用令牌
令牌可让脚本安装设备,无需有人扫描二维码。创建一次即可在整个部署中重复使用。
- 1在控制台中打开 Account → Secrets。
- 2点击 + New Secret,输入名称,然后点击 Generate。
- 3复制该密钥。它就是下方命令中的 <TOKEN>。
curl -fsSL https://get.wantastic.app/install.sh | sudo sh -s -- --token <TOKEN>- 1打开 Secrets 选项卡
- 2点击 + New Secret
- 3为其命名
- 4点击 Generate
- 5复制新密钥
警告: 在令牌过期之前,任何持有它的人都能向你的账户添加设备。不要将其粘贴到工单或公开场合。部署完成后请删除它。
发布矩阵(全部 18 个归档文件)
仅手动安装时才需要此内容。当前版本为 v1.0.54+377f3c0。所有归档文件均发布在 https://get.wantastic.app/v1.0.54/ 和 /latest/ 下。安装程序会自动为你选择合适的版本。
# Unix
https://get.wantastic.app/<TAG>/wantasticd-<os>-<arch>.tar.gz
# Windows
https://get.wantastic.app/<TAG>/wantasticd-windows-<arch>.zip
# Current tag (strip the +sha part)
curl -fsSL https://get.wantastic.app/latest| 归档文件 | uname -m(由 install.sh 自动检测) | 备注 |
|---|---|---|
| wantasticd-linux-amd64.tar.gz | x86_64 | 大多数 PC、服务器、虚拟机 |
| wantasticd-linux-arm64.tar.gz | aarch64, arm64 | 运行 64 位系统的 Pi 3/4/5、ARM 服务器 |
| wantasticd-linux-arm.tar.gz | armv7*, armv6* | 为 ARMv7 构建。ARMv6(Pi Zero/1)也映射到此,但很可能无法运行 |
| wantasticd-linux-386.tar.gz | i386, i686 | 32 位 x86 |
| wantasticd-linux-mips.tar.gz | mips | 大端 MIPS,硬浮点 |
| wantasticd-linux-mipsle.tar.gz | mipsle, mipsel | 小端 MIPS(MT7621 等),硬浮点 |
| wantasticd-linux-mips64.tar.gz | mips64 | 大端 MIPS64 |
| wantasticd-linux-mips64le.tar.gz | mips64el | 小端 MIPS64 |
| wantasticd-linux-riscv64.tar.gz | riscv64 | RISC-V 64 位 |
| wantasticd-linux-ppc64le.tar.gz | ppc64le | POWER 小端 |
| wantasticd-linux-ppc64.tar.gz | 未映射 | 仅支持手动安装 |
| wantasticd-linux-s390x.tar.gz | 未映射 | 仅支持手动安装 |
| wantasticd-linux-loong64.tar.gz | 未映射 | 仅支持手动安装 |
| wantasticd-darwin-amd64.tar.gz | x86_64 | Intel Mac;包含菜单栏应用 |
| wantasticd-darwin-arm64.tar.gz | arm64(在 Rosetta 下也可为 x86_64) | Apple 芯片;包含菜单栏应用 |
| wantasticd-windows-amd64.zip | PROCESSOR_ARCHITECTURE | 64 位 Windows;包含托盘程序 |
| wantasticd-windows-arm64.zip | PROCESSOR_ARCHITECTURE = ARM64 | ARM 版 Windows |
| wantasticd-windows-386.zip | 无 WOW64 的 x86 | 32 位 Windows |
注意: 没有 Android、iOS 或 BSD 版本,也没有 deb、rpm、AUR 或 Homebrew 软件包。安装程序会直接下载归档文件。
验证结果
常见问题
安装程序提示你的 CPU 不受支持。Unsupported architecture: <arch>
Download manually from https://get.wantastic.appinstall.sh
install.sh 只能识别发布矩阵中的 CPU。ppc64、s390x 和 loong64 有对应版本,但不会被自动识别。
按照《手动安装 tarball》指南,自行选择归档文件。
你在 Windows(Git Bash、MSYS、Cygwin)上运行了 install.sh。Unsupported OS: <name>install.sh
install.sh 仅支持 Linux 和 macOS。
以管理员身份在 PowerShell 中使用 install.ps1。参见 Windows 指南。
irm https://get.wantastic.app/install.ps1 | iex认领或登录被拒绝。Login failed: account has reached its device limit — upgrade your plan or remove an existing devicewantasticd login / 控制台
你的套餐设备数量已满。控制台显示 "You have reached the maximum number of devices for your plan."
在 Devices 中删除一台不再使用的设备(设备行 → Delete),或升级套餐。然后重新认领。
继续阅读
仍然无法解决?
请通过邮件发送设备名称、平台和完整的错误文本。切勿发送令牌、密钥或密码。