Windows client for Yggdrasil-ng.
  • Rust 96.6%
  • NSIS 2.9%
  • Shell 0.3%
  • Dockerfile 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
bubblegum 72e057a1d3
All checks were successful
ci / test (push) Successful in 5m56s
release / release (push) Successful in 10m13s
ci: typed input for ci-image, drop netcheck
Forgejo needs "type" on a workflow_dispatch input; without it the Run form shows an unknown field.
The network check did its job (Debian, crates.io and GitHub under 1 MB/s from the runner; the own
Forgejo and the Microsoft CDN fast) and is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 22:52:20 +03:00
.forgejo ci: typed input for ci-image, drop netcheck 2026-11-19 22:52:20 +03:00
assets Huginn 1.0: Windows GUI for Yggdrasil-ng 2026-10-18 23:31:39 +03:00
docs/screenshots docs: README redesign, screenshots from the app 2026-11-17 14:17:34 +03:00
installer feat(installer): Windows setup next to the portable exe 2026-11-19 16:28:46 +03:00
scripts ci: run in a prebuilt image with the toolchain, MSVC SDK and crates 2026-11-19 22:41:52 +03:00
src feat(installer): Windows setup next to the portable exe 2026-11-19 16:28:46 +03:00
.gitattributes ci: Forgejo workflows to check and release on the docker runner 2026-11-10 10:49:03 +03:00
.gitignore Huginn 1.0: Windows GUI for Yggdrasil-ng 2026-10-18 23:31:39 +03:00
build.rs style: format the tree with cargo fmt 2026-11-17 14:17:34 +03:00
Cargo.lock build(deps): take the rustls fork from GitHub 2026-11-19 19:38:15 +03:00
Cargo.toml build(deps): take the rustls fork from GitHub 2026-11-19 19:38:15 +03:00
LICENSE Initial commit 2026-10-18 19:36:08 +00:00
README.md feat(installer): Windows setup next to the portable exe 2026-11-19 16:28:46 +03:00

Huginn

A Windows client for Yggdrasil-ng.
One exe: the node, the network adapter, a window and a tray icon.

Download · Quick start · Mail · Ports · Start with Windows · Build

Three Huginn windows: file transfer with the files ID, the home screen connected with the node's address and subnet, and the mail tab with a yggmail address and the local SMTP and IMAP servers

Huginn puts a whole Yggdrasil node on Windows behind one power button. The node and the Wintun adapter are built into the exe, so there is nothing else to install. Closing the window keeps it in the tray; hover the tray icon to see your address and subnet. The interface is in Russian or English.

  • Files. Send files straight to another Huginn over Yggdrasil, no servers. Share your files ID (your address and a secret in one string); the other side accepts each request. Files land in Downloads.
  • Mail. A built-in Yggmail node: P2P mail over Yggdrasil with Delta Chat or Thunderbird on this PC, and with Tyr on a phone.
  • Best peer. Checks public peers through your ISP, then through Yggdrasil itself, and suggests the fastest one. Optional auto-pick keeps a tested backup peer and switches to it within about 2 minutes of a failure.
  • Yggdrasil domains. .ygg, .anon and the other ALFIS zones open in any browser and resolve in nslookup. Only these zones use the Yggdrasil resolvers.
  • Ports. The yggstack-ng feature set: port forwards both ways and SOCKS5/HTTP proxies into Yggdrasil.
  • Key-based routing (CKR). Send chosen subnets through chosen Yggdrasil nodes.
Ports tab: SOCKS5 proxy on 127.0.0.1:2080 and two local TCP forwards to Yggdrasil addresses Settings tab: peers with auto-pick, connect on start, start with Windows, LAN discovery and Yggdrasil DNS
Ports: a SOCKS5 proxy and forwards, with per-rule traffic counters. Settings: peers, autostart, LAN discovery, Yggdrasil DNS.

Quick start

  1. Download from the releases page either huginn-setup-X.Y.Z.exe (installs into C:\Program Files\Huginn, with Start menu and desktop shortcuts, optional autostart and an uninstaller) or the portable huginn.exe, which runs from anywhere. Both use the same settings, key and mail in %ProgramData%\Huginn: they are one node.
  2. Run it and accept the administrator prompt. Creating the network adapter needs it.
  3. Press the power button. LAN neighbours are found automatically. Public peers are in Settings → Peers, where Best peer picks one for you.

Peers

Add peers by address or from the public list, and turn them off without deleting them. LAN discovery has four modes: off, receive only, send only, or both.

Best peer measures public peers first through your ISP, then through Yggdrasil itself, weighing hops to the tree root and skipping split-off parts of the network. With auto-pick on, Huginn checks the peer once an hour and picks a fresh one once a day. The list then holds just two peers: the active one and a tested backup kept disabled until the active one fails.

Direct links are optional. While you exchange notable traffic with a node from the public list, Huginn links to it directly, and drops the link after 10 idle minutes.

Mail

Mail tab: Yggmail on, the address that is also the login, SMTP 127.0.0.1:1025 and IMAP 127.0.0.1:1143, a hidden password, and an Open in Delta Chat button

Turn mail on in the Mail tab. Huginn runs a Yggmail node with its own key, separate from the node's, and serves it to mail clients on this PC only:

SMTP 127.0.0.1:1025
IMAP 127.0.0.1:1143
Login your address, <key>@yggmail
Password in the tab; copy it, show it or set your own

Open in Delta Chat sets up the account by itself, in an installed Delta Chat or in a portable one that is already running. For Thunderbird, enter the servers above by hand, with no encryption: the connection never leaves this PC.

On a phone, Tyr runs the same Yggmail, so the two reach each other directly.


Ports

Everything listens on 127.0.0.1 unless you pick another address. Published ports get a narrow Windows Firewall rule while they run.

Rule What it does
Local A port on this PC connects to a port on a Yggdrasil address.
To Yggdrasil Publishes a local service, TCP or UDP, on your Yggdrasil address.
SOCKS5 / HTTP proxy Lets programs reach Yggdrasil and CKR addresses through a proxy.

Proxy or forward? The built-in proxy runs inside Huginn and reaches only Yggdrasil (and CKR) addresses; ordinary internet sites are refused. Use it for programs without IPv6, for <key>.pk.ygg names, or to let a phone on your LAN into Yggdrasil. A forward just connects a port here to a port on another Yggdrasil machine, and whatever listens there answers. With a SOCKS server on that machine, the rule 127.0.0.1:1081 → [<its 200: address>]:1080 lets your apps use SOCKS5 127.0.0.1:1081.

Start with Windows

The setup asks about it (off by default) and sets it up; from then on, the switch in Settings turns it on and off.

The autostart task runs Huginn as administrator without a UAC prompt. That is safe only for an exe in a folder that only administrators can change, such as C:\Program Files\Huginn\, so Huginn checks this and refuses otherwise. The setup locks down a folder it creates outside Program Files the same way, but not the folders above it: under a folder your user can change (a self-made C:\Tools, say) autostart stays refused, and the setup's last page says so.

If a portable copy refuses although the exe is already in C:\Program Files\Huginn\, the file itself is owned by your user. This happens when it was moved there from Downloads, since a move keeps the owner. The log then says Autostart refused: …\huginn.exe can be changed by a non-administrator. Fix it in an elevated PowerShell:

icacls "C:\Program Files\Huginn\huginn.exe" /setowner "*S-1-5-32-544"
icacls "C:\Program Files\Huginn\huginn.exe" /reset

The first command makes Administrators the owner, the second drops your user's inherited access. Or delete the exe and copy it in again from an elevated window: a new file takes its owner and rights from the folder.

Install, update, uninstall

The setup handles what it finds: the same version is reinstalled, an older one is updated in place with your earlier choices, a newer one is replaced only if you confirm, and a huginn.exe copied into C:\Program Files\Huginn by hand is replaced. A running Huginn is closed first. If autostart runs a portable copy elsewhere, the setup offers to move it to the installed one; the copy itself stays where it is.

Uninstall from Settings → Apps. It removes the program, shortcuts, the autostart task, the DNS rule, firewall rules and the Wintun driver (unless another program uses it), then asks whether to delete settings, the key and mail too. The default is to keep them, for a reinstall or a portable copy. Unattended: huginn-setup-X.Y.Z.exe /S [/AUTOSTART=1] [/D=C:\Path\Huginn] (/D applies to a first install; an update stays in its folder; a non-empty foreign folder exits with code 2) and uninstall.exe /S [/PURGE].

If an administrator types their password into the UAC prompt for a standard user, the setup runs as that administrator: autostart and the first run belong to that account, as when Huginn itself is started that way.

Config and backups

The config is %ProgramData%\Huginn\yggdrasil.toml: a regular Yggdrasil-ng config, with the GUI settings in a [huginn] table. The folder is writable only by administrators. Backups sit next to the config; restore one by dropping it on the window. A new key gives you a new address. An older %APPDATA%\Huginn setup is moved here on first start.

Known limits

  • Windows x64 only.
  • It runs as administrator, because creating the network adapter needs it.
  • Mail servers have no encryption and accept connections from this PC only.

Build

Windows, the Rust MSVC toolchain and the Windows SDK (its rc.exe embeds the exe icon).

  1. Download Wintun 0.14.1 and copy wintun/bin/amd64/wintun.dll to assets/wintun.dll, and wintun/LICENSE.txt to assets/wintun-LICENSE.txt. The DLL is embedded into the exe and is not kept in this repository.

  2. Build:

    cargo build --release
    

    The result is target/release/huginn.exe.

Tests run without administrator rights: cargo test --lib.

To build from Linux, as CI does, use cargo-xwin:

rustup target add x86_64-pc-windows-msvc
cargo xwin build --release --target x86_64-pc-windows-msvc

License

GPL-3.0.

The SOCKS5/HTTP proxy and port forwarding code in src/ports/ is ported from yggstack-ng (MPL-2.0). Wintun is © WireGuard LLC; its license ships with each release as wintun-LICENSE.txt.