Layers.sh Network

Stack behind net.layers.sh proxy.

Usage (CLI)

Usage: wsproxy COMMAND [arg...]

▖  ▖▄▖▄▖▄▖▄▖▖▖▖▖
▌▞▖▌▚ ▙▌▙▘▌▌▚▘▌▌
▛ ▝▌▄▌▌ ▌▌▙▌▌▌▐

Options:
  -e, --env         The environment name this app runs in. Used for metrics and error reporting. (env $ENV) (default "local")
  -l, --log-level   Available levels: error, warn, info, debug. (env $LOG_LEVEL) (default "info")
  -F, --log-format  Log format: json or text. (env $LOG_FORMAT) (default "json")
  -d, --debug       Print debug info (from vnet) (env $DEBUG)

Other env vars:
  DEPENDENCY_LOGS   Enable dependency logs (including logrus-based logs from gvisor-tap-vsock). Disabled by default.

Commands:
  version           Print version
  run               Run the proxy

Run 'wsproxy COMMAND --help' for more information on a command.

Usage (Docker)

docker run -d --rm --name wsproxy -p 8888:8888 docker.direct/layers/layers-net:latest

Connect to ws://localhost:8888/join/XX:XX:XX:XX:XX:XX to join the network. (MAC address of the VM).

License

WSPROXY

Copyright (c) 2025,2026 Max Kupriianov <xlab@xlabos.com>
Based on gvisor-tap-vsock (under Apache 2.0 license)

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 <https://www.gnu.org/licenses/>.