Skip to content
kotoxiePublic

About

Browser-based remote access — RDP, SSH, SMB, SFTP, DB Browser. Single Docker container.

Resources

Stars

80 stars

Watchers

2 watching

Forks

Repository files navigation

Gatwy

alt text

Self-host your entire remote access stack in one Docker container — 10 protocols, one interface: RDP, SSH, VNC, Telnet, SMB, SFTP, FTP, MySQL & PostgreSQL (Optional - Moonlight).

License: MIT Image Size Latest Release Docker Image

No middleware. No Java. No server relay. WebAssembly-native RDP running directly in your browser — zero overhead across all protocols.

Website · Documentation · Gatwy vs Guacamole

Quick Start · Configuration


🚀 Why Gatwy?

Most browser-based remote access tools relay your display through a server-side engine, adding latency and complexity. Gatwy's RDP client runs entirely in your browser using WebAssembly — pixel-perfect, low-latency RDP with no middleware, no Java, and no extra containers.

One container. Zero dependencies. Open your browser and connect.


✨ Highlights

Feature What you get
10 protocols RDP (WebAssembly), SSH, VNC, Telnet, SMB, SFTP, FTP, PostgreSQL, MySQL — plus optional Moonlight
Split-pane workspace Unlimited sessions side by side with drag-and-drop tabs
Session recording & audit Encrypted RDP video, SSH asciinema, command-level audit log with auto-redacted passwords, file activity tracking
Credential library Reusable username/password and SSH key credentials; rotate a password once and every connection follows
Granular RBAC 30 fine-grained permissions, custom roles, per-connection sharing, protocol-level access control
Auth flexibility Local accounts, LDAP/AD, OpenID Connect (SSO), MFA (TOTP), IP access rules
Alerting SMTP, Telegram, Slack, Webhook channels with a no-code rule builder
Encrypted backup & restore Single-file .geb backup with AES-256 encryption

👉 Full feature list →


🐳 Quick Start

Docker Compose

# docker-compose.yml
services:
  gatwy:
    image: ghcr.io/kotoxie/gatwy:latest
    container_name: gatwy
    restart: unless-stopped
    ports:
      - '7443:7443'
    volumes:
      - ./data:/app/data
    environment:
      - GATWY_ENCRYPTION_KEY=your-64-char-hex-key  # openssl rand -hex 32
docker compose up -d

Docker Run

docker run -d \
  --name gatwy \
  --restart unless-stopped \
  -p 7443:7443 \
  -v ./data:/app/data \
  -e GATWY_ENCRYPTION_KEY=your-64-char-hex-key \
  ghcr.io/kotoxie/gatwy:latest

Then open https://<YOUR_IP>:7443 and create your admin account on first launch.

Note

The browser will warn about the self-signed certificate. Accept the exception to proceed, or bring your own cert.


⚙️ Configuration

Core

Variable Default Description
GATWY_ENCRYPTION_KEY (auto-generated file) 64-char hex AES-256 key. ⚠️ Set this in production. Generate with openssl rand -hex 32
PORT 7443 HTTPS port
DATA_DIR /app/data Database, certs, recordings, and logs
TLS_CERT_PATH / TLS_KEY_PATH (auto) Custom TLS certificate & key paths
BASE_PATH / (root) URL path prefix for serving behind a reverse proxy (e.g. /sys/ftp). Plain path segments only (A-Z a-z 0-9 . _ ~ -); leading/trailing slashes are normalized.

Authentication

Variable Default Description
OIDC_TOKEN_AUTH_METHOD client_secret_basic OIDC token endpoint client auth: client_secret_basic (or basic) or client_secret_post (or post).

Note: If no encryption key is set, Gatwy auto-generates one at /app/data/encryption.key and shows a warning banner. Fine for a home lab — not recommended for production.

👉 Full configuration reference →


🌙 Optional: Moonlight / Sunshine

Moonlight is off by default. The helper it uses, moonlight-web-stream, is GPL-3.0 and is not bundled — Gatwy itself stays MIT.

Tip

Enable it by setting ENABLE_MOONLIGHT to 1, true, or yes.

services:
  gatwy:
    environment:
      - ENABLE_MOONLIGHT=1

On start, the entrypoint downloads a pinned release into /opt/moonlight-web and Moonlight appears in the protocol picker. PIN pairing uses the Sunshine web UI.

When the variable is unset, Moonlight is hidden; stored Moonlight connections are kept and return if you enable it later.

See THIRD_PARTY.md for the license note and pinned release.


🔄 Updating

docker compose pull && docker compose up -d

🛠️ Building from Source

git clone https://github.com/kotoxie/gatwy && cd gatwy

# With Docker
docker compose up --build -d

# Without Docker (Node.js 20+)
npm install && npm run build && npm start

📄 License

MIT

About

Browser-based remote access — RDP, SSH, SMB, SFTP, DB Browser. Single Docker container.

Resources

Stars

80 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages