Skip to content

About

The universal proxy platform

Resources

Stars

65 stars

Watchers

2 watching

Forks

 
 

Latest commit

 

History

3,309 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hiddify sing-box

The core of Hiddify: sing-box (v1.15) with the protocols, transports and fixes that make it work on censored networks.

Documentation: docs/hiddify · فارسی. Every feature below has a page there, in English and Persian, with what it is, how it gets past filtering and every option. Upstream sing-box options are documented at sing-box.sagernet.org.

Thanks to sing-box

Everything here stands on sing-box, by nekohasekai (世界) and the sing-box contributors. The design of sing-box, its routing, DNS, inbounds and outbounds, TUN stack and the libraries around it (sing, sing-tun, sing-quic, sing-mux and more) make a fork like this possible at all. Hiddify keeps its changes small and close to upstream so it can follow every sing-box release. Thank you.

Features

WARP and WireGuard

  • WARP: Cloudflare WARP with no account setup, over WireGuard, AmneziaWG or MASQUE, or auto (the fastest that answers); an endpoint scanner with per-network scores and failover, noise presets and a noise search, a pool of registered devices that is only renewed when Cloudflare refuses one.
  • WARP scanner and noise: how the scanner, the noise presets (DNS, QUIC, SIP, random), the noise search and auto mode work together.
  • WARP over MASQUE: the masque outbound for WARP over HTTP/3 or HTTP/2, with a device already enrolled (device, no API); the warp endpoint registers devices and takes a link's device as masque.device.
  • AmneziaWG: AmneziaWG 3.1, with the QUIC masquerade.
  • WireGuard additions: noise before handshakes (random, QUIC Initials, AmneziaWG-style DNS, QUIC and SIP templates), socket recovery, per-peer users.
  • WireGuard outbound (legacy format).

Protocols

Transports and TLS

DNS

Groups and monitoring

Fixes

Many crash, leak and stability fixes on top of sing-box, each with its commit: bug-fix log. What hiddify-app and hiddify-core need to know: app considerations.

Building

git clone --recursive https://github.com/hiddify/hiddify-sing-box
cd hiddify-sing-box
make          # Go 1.27.3 or newer

The forks of dependencies live under replace/ as git submodules, so clone with --recursive (or run git submodule update --init --recursive). The default build tags are in the Makefile, including the optional with_kcp, with_sudoku, with_bond, with_call and with_xdrive; with_tailscale adds another optional feature.

Contributing

Read AGENTS.md first; it holds for people and AI agents alike. In short: read the Hiddify docs, keep changes to upstream files small (h_*.go files, //H on changed lines), improve an existing feature rather than add an overlapping one, test, document in English and Persian, list the feature here, and rebase on the latest v5 before opening a pull request. The step-by-step procedure is the hiddify-feature skill.

Credits

Besides sing-box, this fork takes work from other forks and projects. Thank you to all of them:

License

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.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

In addition, no derivative work may use the name or imply association
with this application without prior consent.

About

The universal proxy platform

Resources

Stars

65 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages