文档/安装 wantasticd3 分钟所有平台

选择安装方式

在表格中找到你的设备,复制一条命令即可。大多数设备 2 分钟即可完成安装:安装、扫描二维码、点击 Claim Device。

完成后你将得到

你知道该在设备上运行哪条命令,以及该打开哪篇指南。

开始之前

  • 一个 Wantastic 控制台账户:https://console.wantastic.app。
  • 要连接的设备上的终端(手机则需要 WireGuard 应用)。
  • 设备可以访问互联网。

你的设备是哪种?

在表格中找到你的设备。运行中间一列的命令,然后打开对应指南查看详情。如果有两行都匹配,请使用更具体的那一行。

你的设备运行什么指南
Ubuntu、Debian、Linux Mint、Proxmoxcurl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey在 Debian 和 Ubuntu 上安装
RHEL、Rocky、AlmaLinux、CentOS Stream、Fedoracurl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey在 RHEL、Rocky、Alma 和 Fedora 上安装
Arch Linux、Manjaro、EndeavourOScurl -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 Linuxwget -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、iPadWireGuard 应用 + QR Code 选项卡Android 和 iOS(WireGuard 应用)
MikroTik RouterOS 7.1 或更高版本Add Device → MikroTik → Copy → 粘贴到 Terminal连接 MikroTik 路由器

提示: 以普通用户身份操作时使用 sudo。如果已经是 root(路由器和小型设备),请使用 wget 命令。

快速安装的工作原理

在 Linux、macOS、路由器和小型设备上,安装步骤都相同,无需令牌。

  1. 1运行表格中的命令。它会安装 wantasticd,然后打印 Claim URL 和二维码。
  2. 2用手机扫描二维码,或打开 Claim URL,登录控制台。
  3. 3点击 Claim Device。终端打印 "Device claimed"。
  4. 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.json
Public key: Vd3hK1oQ7mR2sT9uW4xY6zA8bC0dE2fG4hJ6kL8mN0P=
Server URL: https://console.wantastic.app
Claim 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. 1打开此链接,或扫描二维码
  2. 2已认领:现在按 Ctrl+C
  3. 3重启一次服务
genkey 打印 Claim URL 和二维码后进入等待。你在控制台中点击 Claim Device 后,它会打印 "Device claimed"。然后按 Ctrl+C 并重启服务。
控制台视图
Claim Wantastic Device
1
Claim public key
q3Xv…9f2Q= (44 characters)
2
Wantastic server
https://console.wantastic.app
Cancel3Claim Device
  1. 1Claim public key 已自动填写
  2. 2Wantastic server 保持默认即可
  3. 3点击 Claim Device
Claim Wantastic Device。Claim URL 和二维码会自动填入密钥,你只需点击 Claim Device。

注意: 在 Windows 上,以管理员身份打开 PowerShell,粘贴 irm https://get.wantastic.app/install.ps1 | iex,然后在浏览器中批准设备(参见在 Windows 上安装)。手机和 MikroTik 路由器完全不使用 wantasticd。

要安装大量设备?请使用令牌

令牌可让脚本安装设备,无需有人扫描二维码。创建一次即可在整个部署中重复使用。

  1. 1在控制台中打开 Account → Secrets。
  2. 2点击 + New Secret,输入名称,然后点击 Generate。
  3. 3复制该密钥。它就是下方命令中的 <TOKEN>。
令牌安装(Linux 和 macOS)bash
curl -fsSL https://get.wantastic.app/install.sh | sudo sh -s -- --token <TOKEN>
控制台视图
My Account
ProfileSecuritySessions2FA1SecretsSnapshotsWidgetsMCP
Enrollment Secrets
2+ New Secret
3
Secret Name
noc-rollout
Expiry (Days, 0 for never)
7
Max Uses (0 for unlimited)
25
4Generate
5
noc-rolloutwnt_••••••••3f9a3 / 25 uses · 6 days left
Device claim QRShow Enrollment Script
  1. 1打开 Secrets 选项卡
  2. 2点击 + New Secret
  3. 3为其命名
  4. 4点击 Generate
  5. 5复制新密钥
Account → Secrets → + New Secret。密钥的值就是令牌。

警告: 在令牌过期之前,任何持有它的人都能向你的账户添加设备。不要将其粘贴到工单或公开场合。部署完成后请删除它。

发布矩阵(全部 18 个归档文件)

仅手动安装时才需要此内容。当前版本为 v1.0.54+377f3c0。所有归档文件均发布在 https://get.wantastic.app/v1.0.54/ 和 /latest/ 下。安装程序会自动为你选择合适的版本。

下载 URL 格式bash
# 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.gzx86_64大多数 PC、服务器、虚拟机
wantasticd-linux-arm64.tar.gzaarch64, arm64运行 64 位系统的 Pi 3/4/5、ARM 服务器
wantasticd-linux-arm.tar.gzarmv7*, armv6*为 ARMv7 构建。ARMv6(Pi Zero/1)也映射到此,但很可能无法运行
wantasticd-linux-386.tar.gzi386, i68632 位 x86
wantasticd-linux-mips.tar.gzmips大端 MIPS,硬浮点
wantasticd-linux-mipsle.tar.gzmipsle, mipsel小端 MIPS(MT7621 等),硬浮点
wantasticd-linux-mips64.tar.gzmips64大端 MIPS64
wantasticd-linux-mips64le.tar.gzmips64el小端 MIPS64
wantasticd-linux-riscv64.tar.gzriscv64RISC-V 64 位
wantasticd-linux-ppc64le.tar.gzppc64lePOWER 小端
wantasticd-linux-ppc64.tar.gz未映射仅支持手动安装
wantasticd-linux-s390x.tar.gz未映射仅支持手动安装
wantasticd-linux-loong64.tar.gz未映射仅支持手动安装
wantasticd-darwin-amd64.tar.gzx86_64Intel Mac;包含菜单栏应用
wantasticd-darwin-arm64.tar.gzarm64(在 Rosetta 下也可为 x86_64)Apple 芯片;包含菜单栏应用
wantasticd-windows-amd64.zipPROCESSOR_ARCHITECTURE64 位 Windows;包含托盘程序
wantasticd-windows-arm64.zipPROCESSOR_ARCHITECTURE = ARM64ARM 版 Windows
wantasticd-windows-386.zip无 WOW64 的 x8632 位 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 指南。

PowerShell(管理员)powershell
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),或升级套餐。然后重新认领。

继续阅读

仍然无法解决?

请通过邮件发送设备名称、平台和完整的错误文本。切勿发送令牌、密钥或密码。

hello@wantastic.app