Coming soon

WISP · SINGLE-BINARY PROXY

One binary.
One port.
Every stream in sight.

Wisp is a self-hosted Wisp proxy with its console built in. Run one file, open one page, and manage tokens, live traffic and policy — no second server, no config sprawl.

MIT licensed · Rust server · NSH console · macOS / Linux / Windows

Run it, then open the console
$ ./wisp --port 6680 --admin-password 'choose-one'
http://127.0.0.1:6680/ Wisp UI
Wisp console dashboard with proxy state, totals and traffic charts
3 active streams
1binary — proxy, API and console
1listener — WS and HTTP together
4packet types — Wisp v1 in Rust
0sidecars — nothing else to deploy

01 — WHY ONE BINARY

The proxy and its console are the same process.

No sidecar, no second port for the UI, no external database. The binary serves the Wisp WebSocket, the admin API and the console from one axum app; configuration and traffic history live next to it.

One listener, three jobs

The proxy, the admin API and the console share a port. TLS terminates on a second listener and hands requests to the same router.

Config in the working directory

config.json and stats.json are written where you run the binary. --dir moves them; nothing is hidden in a system database.

A gate, not an afterthought

Set an admin password at startup and the console asks for it. The hash lives in config.json; sessions are cookies.

02 — THE CONSOLE

See the proxy, not just its logs.

Every screen ships inside the binary. State, streams, tokens, policy and security — one page, no separate dashboard to deploy.

http://127.0.0.1:6680/?page=dashboard Wisp UI
Wisp console dashboard

Dashboard

Proxy state, totals, per-minute bytes and connections, top destinations and the newest streams.

Screenshots from the real console running with demo traffic.

03 — WHAT IT DOES

Built for the day-to-day of running a proxy.

Tokens, accounting, charts, TLS and policy — the parts you actually operate, not a demo.

Token management

Create named tokens, copy their URLs, rotate secrets, disable or delete them. Each token keeps its own counters.

Per-stream accounting

Host, port, resolved IP, token, start time, duration, upload and download bytes, state and close reason for every stream.

Traffic charts

Bytes in and out per minute and connections opened, over 1 hour, 6 hours or 24 hours.

HTTPS and WSS

A rustls listener serves the console over HTTPS and the proxy over WSS; the plain listener keeps working.

Admin gate

A salted SHA-256 password hash, a session cookie on every admin route, and a login screen instead of an open console.

Destination policy

Allow or block private and loopback destinations, require tokens, and set the log level.

Embedded console

The NSH web app is compiled into the binary. No Node runtime, no separate web server, no build step on the target.

Responsive and localized

Light, dark and system themes, English and Chinese, a collapsible sidebar, keyboard operation and phone layouts.

04 — HOW IT WORKS

One listener, three jobs.

Clients speak Wisp v1 over a WebSocket. The server gates the token, applies the destination policy, opens a TCP stream and accounts every byte. The console and admin API are served by the same app.

Clients unkernel · browser · CLI Wisp v1 CONNECT → DATA TCP streams only Wisp one listener WSS :6681 · WS :6680 token gate policy accounting axum app · one router Destination TCP host:port TCP DNS · policy check bytes accounted Console + admin API same origin · session cookie CONNECT DATA / CLOSE TCP same listener

Wisp v1 packets

Frame: [type u8][stream id u32 LE][payload]

BytePacketPayload
0x01CONNECTstream type, port, hostname
0x02DATApayload bytes
0x03CONTINUEbuffer credit
0x04CLOSEreason code

TCP only; UDP CONNECTs are refused with 0x41. Close reasons cover voluntary, network, invalid, unreachable, timeout, refused, blocked and throttled.

05 — SECURITY

Lock the console before you expose it.

The console can change policy, mint tokens and stop the proxy. Treat it like an admin surface: password, TLS, and a service account that cannot touch the rest of the box.

  • Admin password stored as a salted SHA-256 hash; the plaintext never touches disk.
  • Session cookie wisp_session; every admin route except GET /api/status and POST /api/login is gated.
  • Failed logins pause 400 ms before the answer.
  • TLS with rustls: --tls-cert, --tls-key and --tls-port serve HTTPS and WSS.
  • Tokens are plaintext in config.json so the console can show their URLs — treat the file as a secret.
  • The systemd unit runs as an unprivileged wisp user with a strict sandbox.
Hardened service unit
[Service]
User=wisp
ExecStart=/usr/local/bin/wisp --tls-cert /var/lib/wisp/tls/cert.pem \
  --tls-key /var/lib/wisp/tls/key.pem --tls-port 6681
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
NoNewPrivileges=yes

A self-signed certificate is fine on a private network; browsers warn until it is accepted.

https://127.0.0.1:6681/ Sign in
Wisp console sign-in screen
http://127.0.0.1:6680/?page=settings Admin password
Wisp console admin password settings

06 — EVERYWHERE

Dark, light, and small enough for a phone.

The console follows the system theme, switches between English and Chinese, and turns the traffic table into cards on a narrow screen.

Same binary, same data. The layout adapts; the console does not become a second product.

07 — QUICK START

From file to proxy in three commands.

Build once, run it anywhere. The console is embedded, so there is nothing else to install on the target.

  1. 1

    Build the binary

    Rust 1.85+ and the NSH CLI build the console and embed it into the server.

    build
    scripts/build-release.sh
  2. 2

    Run it with a login

    Pick a port, set an admin password, and add TLS if clients will use WSS.

    run
    server/target/release/wisp \
      --port 6680 \
      --admin-password 'choose-one' \
      --tls-cert cert.pem --tls-key key.pem --tls-port 6681
  3. 3

    Open the console and mint a token

    Sign in, create a token, and point a client at its URL.

    console
    https://192.168.1.10:6681/
    token URL
    wss://192.168.1.10:6681/t/<secret>/

On Windows the binary is wisp.exe; use PowerShell and backslash paths. The plain listener stays on ws://…:6680/.

08 — GET WISP

One file. Pick your platform.

The release binary embeds the console. Build it from source, or drop the file on a server and run it.

Linux x86_64

wisp · glibc · systemd unit in deploy/

macOS arm64 / x86_64

wisp · run from Terminal

Windows x86_64

wisp.exe · run from PowerShell

Launching soon

Version 0.2.0 · MIT license · Rust 1.85+ and NSH to build.

09 — FAQ

Questions before you expose a port.

Do I need a separate web server?

No. The console is compiled into the binary and served by the same axum app as the proxy and the API.

Where are config and traffic stored?

In the working directory: config.json and stats.json. --dir moves both. Tokens are plaintext in config.json.

Can I use HTTPS?

Yes. Pass --tls-cert and --tls-key; the TLS listener defaults to port 6681 and serves both HTTPS and WSS. The plain listener stays available.

Does it work with unkernel?

Yes. Point unkernel at ws://host:6680/ or a token URL such as ws://host:6680/t/<secret>/. On an HTTPS page, use the WSS listener.

Is UDP supported?

No. Wisp v1 TCP streams are implemented; UDP CONNECTs are refused with close code 0x41.

What happens when a stream closes?

The server ends the stream when either side closes, records the close reason, and closes the destination socket. Active streams disappear from the dashboard immediately.