OnionHop is a lightweight Windows WPF app that routes your traffic through Tor using either:
- Proxy Mode (recommended): sets the Windows proxy to Tor's local SOCKS5 endpoint.
- TUN/VPN Mode (Admin): starts a system-wide tunnel via sing-box + Wintun.
It includes a Hybrid option (browser-only via Tor in TUN mode) and an optional Kill Switch for leak prevention.
Disclaimer OnionHop is provided "as-is". Tor usage can be illegal or restricted in some jurisdictions. You are responsible for complying with local laws and regulations.
-
Install
- Download the latest release from the Releases section.
- Run the Windows installer (
OnionHop-Setup-<version>.exe).
-
Choose a mode
- Proxy Mode (no admin): Sets Windows proxy to Tor SOCKS (best compatibility).
- TUN/VPN Mode (admin): System-wide tunnel via sing-box + Wintun; required if apps ignore proxy settings.
-
Connect
- Optionally select an Exit Location.
- For TUN mode, toggle Hybrid if you want browsers via Tor and other apps direct.
- Click Connect. Use Disconnect to stop Tor/tunnel (run as Administrator to fully clear kill-switch rules).
Notes
- Kill Switch works only in strict TUN (Hybrid off) and needs admin rights to add/remove firewall rules.
- Dark Mode currently affects UI only.
- Bundled binaries live under
OnionHop/OnionHop/tor/andOnionHop/OnionHop/vpn/. Unsigned binaries can trigger AV warnings — allow only if you trust the source.
- Tor routing (SOCKS5)
- System proxy mode (no admin required)
- TUN/VPN mode via sing-box + Wintun (admin required)
- Hybrid routing (in TUN mode: browsers via Tor, other apps direct)
- Tor bridges / pluggable transports (obfs4, snowflake, meek-azure)
- Kill Switch (strict TUN only)
- If the tunnel drops unexpectedly, OnionHop blocks outbound traffic using Windows Firewall to prevent leaks.
- Disconnect (as Administrator) to restore normal traffic.
- Start with Windows (optional) with start-minimized support
- Minimize-to-tray option on close
- Auto-update checks via GitHub releases
- Native Windows UI theme toggle
- Persisted settings
- Auto-Connect
- Start with Windows + Start Minimized
- Minimize to Tray
- Auto Update
- Dark Mode
- Native Windows UI
- Kill Switch toggle
- Exit Location
- Connection mode + Hybrid
- Logs / About / Settings overlay panels
- Starts Tor locally.
- Sets Windows proxy to
socks=127.0.0.1:9050. - Best compatibility; no admin required.
- Starts Tor + sing-box + Wintun.
- Can route traffic at OS level.
- Requires Administrator.
- Only applies in TUN/VPN Mode.
- Routes common browsers (Edge/Chrome/Firefox) through Tor.
- Other traffic goes direct.
The Kill Switch is intentionally conservative:
- Only available in TUN/VPN Mode with Hybrid disabled (strict).
- Requires Administrator to apply/clear firewall rules.
- If Tor/sing-box exits unexpectedly while connected in strict TUN, OnionHop adds an Outbound Block firewall rule.
If you ever lose internet after a crash:
- Relaunch OnionHop as Administrator.
- Click Disconnect.
OnionHop stores settings here:
%AppData%\OnionHop\settings.json
- Windows 10/11
- .NET SDK 9.0 (project targets
net9.0-windows) - PowerShell
Prebuilt binaries are not stored in the repository. You must fetch them first:
./download-deps.ps1This will download Tor, pluggable transports, Sing-box, and Wintun to the correct folders.
# from OnionHop/OnionHop
dotnet build -c Release# from OnionHop/OnionHop
dotnet publish -c Release -r win-x64 --self-contained falseOutput:
OnionHop/OnionHop/bin/Release/net9.0-windows/win-x64/publish/
If publish fails with "file is being used by another process", close any running
OnionHop.exe.
OnionHop can be packaged into a shareable Windows installer using Inno Setup 6.
- Install Inno Setup 6 (adds
ISCC.exe).
From the repo root:
# 1. Download dependencies (if not done already)
./download-deps.ps1
# 2. Build a self-contained installer (recommended for sharing)
./installer/build-installer.ps1 -SelfContainedThe installer will be created here:
installer/output/OnionHop-Setup-<version>.exe
If you prefer framework-dependent (requires .NET runtime on the target machine):
./installer/build-installer.ps1This repo does not include runtime binaries in git.
The download-deps.ps1 script fetches them from official sources:
- Tor Expert Bundle:
OnionHop/OnionHop/tor/ - Sing-box & Wintun:
OnionHop/OnionHop/vpn/
These are copied to output/publish via OnionHop.csproj.
- No telemetry is sent.
- Logs are local-only (app UI "Logs" panel).
- Proxy mode edits Windows proxy settings; TUN mode may add/remove Windows Firewall rules when Kill Switch is active.
Many apps ignore the Windows proxy settings. Use TUN/VPN Mode if you need system-wide routing.
- Run OnionHop as Administrator.
- Ensure
vpn/wintun.dllandvpn/sing-box.exeexist.
This usually means the kill switch firewall rule is still present.
- Relaunch as Administrator
- Click Disconnect
Some networks block or throttle Tor.
- Try a different Exit Location.
- Enable Tor bridges in Settings (obfs4, snowflake, meek-azure) or paste custom bridges.
- OnionHop modifies Windows proxy settings in Proxy Mode.
- OnionHop may modify Windows Firewall rules when Kill Switch is enabled.
- Avoid running unknown binaries with elevated privileges.
- Separate services (TorService/VpnService/SettingsService) for cleaner architecture
- Better kill switch: allow-only rules (Tor + tunnel) instead of emergency global block
- More diagnostics and structured logging
GPLv3. See LICENSE.
For support, please either:
- Open an issue on this repository
- Join the Discord server: https://discord.gg/sNsJzKBNUG

