WebSocket tunnel client for SpawnDock local development preview. Exposes your local dev server through the SpawnDock control plane so others can preview your Telegram Mini App.
npm install -g @spawn-dock/dev-tunnelOr use with npx:
npx @spawn-dock/dev-tunnelIf your project has a spawndock.dev-tunnel.json file (created by the bootstrap CLI), just run:
npx @spawn-dock/dev-tunnelnpx @spawn-dock/dev-tunnel \
--control-plane http://your-server:3000 \
--project-slug my-app \
--device-secret your-device-secret \
--port 3000export SPAWNDOCK_CONTROL_PLANE=http://your-server:3000
export SPAWNDOCK_PROJECT_SLUG=my-app
export API_TOKEN=your-shared-api-token
export SPAWNDOCK_PORT=3000
npx @spawn-dock/dev-tunnelAPI_TOKEN is the preferred auth mode for standalone package usage.
SPAWNDOCK_DEVICE_SECRET remains supported for bootstrap-generated project credentials.
CLI arguments > Environment variables > spawndock.dev-tunnel.json > legacy spawndock.config.json
- Connects to the SpawnDock control plane via WebSocket
- Receives HTTP requests from users viewing your preview URL
- Proxies those requests to your local dev server
- Sends responses back through the tunnel
MIT