sing-box 官方站点信息汇总
采集于 2026-08-22

SagerNet / Project S · 本地知识页

sing-box:通用代理平台

本页汇总 sing-box 官方文档与 GitHub 仓库的公开信息。完整界面与正文已整合到本地文档站,可离线浏览。

~37.2kGitHub Stars
~4.5kForks
1.13.19当前稳定版
1.14.0-beta.17当前测试版

站点结构

本站为独立静态网站,文档与仓库内容分别放在 wiki/github/ 栏目下。

路径内容
/站点首页
/wiki/官方文档(英文),含原站界面、搜索与全部页面
/wiki/zh/官方文档(简体中文)
/github/GitHub 仓库说明、README、LICENSE

项目是什么

官方定位一句话:The universal proxy platform(通用代理平台)。文档站自称是 sing-box 项目的 wiki;仓库 README 只指向文档站,不另写长介绍。

作者与组织

版权声明为 Copyright (C) 2022 by nekohasekai。联系邮箱在仓库中写为 contact-sagernet@sekai.icu,文档支持页使用 contact@sagernet.org。图形客户端由 Project S 维护。

文档语言

文档站提供 English 与简体中文。中文首页路径为 /zh/,标题为「开始 / 欢迎来到该 sing-box 项目的文档页」。

两个站点分别做什么

官方文档站

完整产品说明:安装、图形客户端、手册、JSON 配置、DNS / 路由 / Rule Set、入站出站、服务、实验功能、变更日志、迁移与弃用列表。

https://singbox.ai/wiki/

GitHub 仓库

源码、Issue、PR、Release 二进制、Docker 镜像构建、文档源文件(docs/ + mkdocs.yml)。README 几乎只重复 slogan、文档链接和许可证。

https://github.com/SagerNet/sing-box/

GitHub 仓库

值(采集时)
仓库SagerNet/sing-box
默认分支testing(另有 stable / oldstable 发布轨道)
创建时间2022-06-30
Stars / Forks / Watchers约 37.2k / 4.5k / 195
Issues / PRs约 241 个未关闭 Issue,43 个 PR
提交数约 2,637
主要语言Go(约 96.6%),另有 Shell、Objective-C、Makefile、C、Dockerfile
主贡献者nekohasekai(绝大多数提交)
打包状态README 嵌入 Repology 徽章

发布轨道

CI 脚本按分支区分包名与 Docker tag:stablesing-box / latest;带连字符的稳定标签视为 beta → sing-box-beta / latest-betatestingsing-box-testingoldstablesing-box-oldstable

仓库主要目录

adapterclientscmd commonconstantdaemon dnsdocsexperimental includelogoption protocolreleaseroute schemaservicetest transport

安装

官方文档把安装分成包管理器仓库、一键脚本、各发行版托管包、Docker、源码编译。文档站根路径 /installation/ 本身 404,实际入口是子页。

官方 APT / DNF 仓库

# Debian / APT
sudo mkdir -p /etc/apt/keyrings &&
sudo curl -fsSL https://sing-box.app/gpg.key -o /etc/apt/keyrings/sagernet.asc &&
sudo chmod a+r /etc/apt/keyrings/sagernet.asc &&
echo 'Types: deb
URIs: https://deb.sagernet.org/
Suites: *
Components: *
Enabled: yes
Signed-By: /etc/apt/keyrings/sagernet.asc' | sudo tee /etc/apt/sources.list.d/sagernet.sources &&
sudo apt-get update &&
sudo apt-get install sing-box   # 或 sing-box-beta

# Red Hat / DNF 5
sudo dnf config-manager addrepo --from-repofile=https://sing-box.app/sing-box.repo
sudo dnf install sing-box

官方安装脚本

从 GitHub Releases 拉取最新 deb/rpm,也支持 Arch Linux 与 OpenWrt:

curl -fsSL https://sing-box.app/install.sh | sh
curl -fsSL https://sing-box.app/install.sh | sh -s -- --beta
curl -fsSL https://sing-box.app/install.sh | sh -s -- --version <version>

各平台托管包

平台方式命令
Arch LinuxAUR? -S sing-box
NixOSnixpkgsnix-env -iA nixos.sing-box
macOS / LinuxHomebrewbrew install sing-box
AlpineAPKapk add sing-box
WindowsScoop / Chocolatey / wingetscoop/choco/winget install sing-box
Android Termuxpkgpkg add sing-box
FreeBSDFreshPortspkg install sing-box

官方点名若干第三方打包改动了默认 build tags,或使用过旧 Go:AOSC、Homebrew、Termux、FreeBSD ports。建议优先用官方仓库或 GitHub Releases。

Docker

docker run -d \
  -v /etc/sing-box:/etc/sing-box/ \
  --name=sing-box \
  --restart=always \
  ghcr.io/sagernet/sing-box \
  -D /var/lib/sing-box \
  -C /etc/sing-box/ run

源码编译

文档写明:sing-box 1.11 需要 Go 1.23.1+;1.10 需要 Go 1.20+。变更日志另写 1.13.0 起至少需要 Go 1.24。简单构建:makemake install。自定义:TAGS="tag_a tag_b" make

默认开启的 build tag 包括 with_quicwith_dhcpwith_wireguardwith_utlswith_acmewith_clash_apiwith_gvisorwith_tailscalewith_ccmwith_ocmwith_naive_outboundwith_cloudflared 等。with_grpcwith_v2ray_apiwith_embedded_tor 默认关闭。下游打包应直接使用仓库 release/DEFAULT_BUILD_TAGS*release/LDFLAGS

systemd 服务

操作命令
启用 / 禁用sudo systemctl enable|disable sing-box
启动 / 停止 / 重启sudo systemctl start|stop|restart sing-box
看日志sudo journalctl -u sing-box --output cat -e
跟踪新日志sudo journalctl -u sing-box --output cat -f

来源:Package Manager · Docker · Build from source

图形客户端

由 Project S 维护,目标是统一体验并提供平台能力(例如 TUN)。官方明确:大量自称使用 sing-box 的第三方客户端不会列入文档,认为其动机是拉用户,代码质量差且常带广告。

平台产品要求获取
Android sing-box for Android(SFA) Android 5.0+ Play Store / Beta、GitHub Releases、F-Droid(可复现构建、统一签名)
iOS / macOS / tvOS sing-box for Apple platforms(SFI / SFM / SFT) iOS 15+ / macOS 13+ / tvOS 17+;需要中国大陆以外的 Apple 账号 App Store、TestFlight(名额给赞助者)、越狱版 SFI-iphoneos-arm64.deb、macOS 可用 brew install sfm
Windows / Linux sing-box for Desktop(Windows 安装包名形如 SFW-*.exe Windows 10+(x64 / x86 / arm64);Linux x64 / arm64 / armv7l GitHub Releases

客户端共性能力

  • 本地配置:必须提供编辑器。
  • iCloud 配置(iOS/macOS):文件放在 iCloud 的 sing-box 目录。
  • 远程配置:按 URL 更新,默认 60 分钟;支持 HTTP Basic;必须实现导入 URL Scheme:sing-box://import-remote-profile?url=...#name
  • Dashboard:运行时显示内存、连接、流量;配置了多个 clash_mode 时提供模式切换;Selector / URLTest 组可切换节点。
  • Core 区:显示内核版本、清理工作目录、内存限制开关。

文档写明:因审核误判,Apple App Store 应用暂时无法更新;TestFlight 用户不受影响。TestFlight 邀请可通过赞助后加入赞助者 Telegram,或向 contact@sagernet.org 发送 Apple ID。

来源:Graphical Clients · Android · Apple · Desktop · General

配置结构

配置文件是 JSON。1.14 起提供 JSON Schema,可在兼容编辑器里补全和校验。文档发布的 schema 用顶层 $schema 选择;sing-box schema 可按当前二进制和 build tags 生成 schema。

{
  "$schema": "https://singbox.ai/wiki/schema.json",
  "log": {},
  "dns": {},
  "ntp": {},
  "certificate": {},
  "certificate_providers": [],
  "http_clients": [],
  "network_namespaces": [],
  "endpoints": [],
  "inbounds": [],
  "outbounds": [],
  "route": {},
  "services": [],
  "experimental": {}
}
命令作用
sing-box check检查配置
sing-box format -w -c config.json -D config_directory格式化并写回
sing-box merge output.json -c config.json -D config_directory合并多文件配置
sing-box api1.14 beta 新增:命令行调用 API 服务,能力对齐图形客户端 Dashboard

来源:Configuration

协议与模块(文档目录)

Inbound(入站)

directmixedsocks httpshadowsocksvmess trojannaivehysteria shadowtlsvlesstuic hysteria2anytlssnell tunredirecttproxy cloudflared

Outbound(出站)

directbridgeblock sockshttpshadowsocks vmesstrojannaive wireguardhysteriashadowtls vlesstuichysteria2 anytlssnelltor sshdnsselector urltest

block / dns 特殊出站以及 WireGuard outbound 已弃用,分别改用路由动作和 Endpoint。旧字段在 1.13.0 移除。

Endpoint

WireGuardTailscale OpenConnect ClientOpenVPN Client OpenVPN Server

Service

sing-box APIDERPResolved SSM APICCMOCM Hysteria RealmUSB/IP ServerUSB/IP Client

DNS Server 类型

LegacyLocalHosts TCPUDPTLS QUICHTTPSHTTP3 DHCPmDNSFakeIP TailscaleOpenConnectOpenVPN Resolved

配置其他章节

  • Route:GeoIP / Geosite(已移除,改 Rule Set)、Route Rule、Rule Action、Protocol Sniff。
  • Rule Set:源格式、Headless Rule、AdGuard DNS Filter。
  • Experimental:Cache File、Clash API、V2Ray API。
  • Shared:Listen / Dial、TLS、HTTP Client、HTTP2、QUIC、证书提供者(ACME / Tailscale / Cloudflare Origin CA)、Multiplex、V2Ray Transport、UDP over TCP、TCP Brutal、Wi-Fi State 等。
  • Network Namespace:Default、Unshare。

使用方式(手册要点)

客户端手册把图形系统上的代理分成三类:

  1. 系统代理:本质是只支持 TCP 的 HTTP 代理。Windows / macOS / GNOME / KDE 原生支持;Android 需要 ROOT 或 adb。很多非 HTTP 的 TCP 客户端不会走系统代理,UDP / ICMP 会泄漏。
  2. 防火墙重定向:Windows WFP、Linux redirect / TProxy / eBPF、macOS pf。侵入性强、配置繁琐,在部分开源代理项目中仍常见。
  3. 虚拟网卡(TUN):官方认为这是 L4 代理在 Android / iOS 上作为 VPN 工作的唯一方式。sing-box 继承并发展 Clash Premium 的 TUN inbound,做 L3 到 L4 转换后交给路由器。

手册还提供服务端与客户端示例,以及 Shadowsocks、Trojan、Hysteria 2 等协议说明;杂项包括 TunnelVision 与 AnyTLS client metadata。

来源:Manual / Proxy / Client

版本与变更

采集时(2026-08-22)Release 页最新为 1.14.0-beta.17(测试)与 1.13.19(稳定),均标注 Fixes and improvements。

版本要点
1.14.0-beta.15新增 sing-box api;Tailscale 支持 Taildrop(taildrop_directory,默认 Taildrop);Tailscale endpoint 增加 listen_port
1.13.18更新 naiveproxy 到 v150.0.7871.63-1
1.14.0-beta.7Hysteria2 默认模仿 Chrome QUIC 握手;更新 quic-go / Tailscale / gVisor。Ed25519 证书服务器会握手失败,可用 disable_chrome_parrot
1.14.0-beta.5 / 1.13.16默认不再在 AnyTLS 请求中发送客户端元数据,避免被用于画像;可自定义,见 AnyTLS client metadata
1.14.0-beta.2JSON Schema;图形客户端编辑器补全
1.14.0-beta.1修正 rule-set 匹配语义;搜索域规则;并行 DNS 响应评估(race / speculative
1.14.0-alpha.50提升 OpenVPN / OpenConnect 互操作;Fortinet host check
1.14.0-alpha.48AnyConnect SSO;Desktop 客户端提供 Linux 构建
1.14.0-alpha.47OpenVPN Client/Server;OpenConnect Client(AnyConnect、GlobalProtect、Fortinet、F5、Pulse、Juniper)
1.14.0-alpha.44正式推出 Windows 图形客户端
1.14.0-alpha.43Network namespace

来源:Change Log · GitHub Releases

已弃用项(摘录)

版本弃用内容去向
1.14.0远程 rule-set 的 download_detour、隐式默认 HTTP client、TLS 内联 ACME、strategy DNS 动作、若干旧 DNS 字段与 cache store_rdrc改用 http_clients、证书提供者等;旧字段计划 1.16.0 删除
1.12.0旧 DNS server 格式、旧 ECH 字段格式已在 1.14.0 移除;ECH 字段 1.13.0 移除
1.11.0block/dns 特殊出站、部分 inbound 字段、direct 覆盖地址、WireGuard outbound、TUN GSO改 rule action / endpoint;1.13.0 移除
1.10.0拆分的 TUN IPv4/IPv6 地址字段;Go 1.18/1.19合并为 address 等;至少 Go 1.20
1.8.0Clash API 内的 cache_file;GeoIP;Geosite独立 cache_file;Rule Set。GeoIP/Geosite 已在 1.12.0 移除
1.6.0ShadowsocksR、Proxy Protocol默认从未启用 / 对代理场景无意义

来源:Deprecated · Migration

支持渠道

渠道链接
GitHub Issuesgithub.com/SagerNet/sing-box/issues
Telegram 通知频道t.me/yapnc
Telegram 用户群t.me/yapug
邮件contact@sagernet.org

来源:Support

许可

GNU GPL v3 或更新版本。附加条款:未经事先同意,衍生作品不得使用该应用名称,也不得暗示与该应用有关联。

Copyright (C) 2022 by nekohasekai <contact-sagernet@sekai.icu>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.