termly-cli icon indicating copy to clipboard operation
termly-cli copied to clipboard

feat: self-hosted local server + new AI tools (crush, gemini, vibe)

Open B-A-M-N opened this issue 6 months ago • 0 comments

Summary

The official termly.dev server is offline. This PR bundles termly-local-server/, a self-hosted relay server that implements the same WebSocket protocol so the Termly mobile app works over LAN without any cloud dependency.

What's Added

termly-local-server/

  • server.js — zero-knowledge WebSocket relay (E2EE, server never decrypts)
  • REST endpoints: /api/pairing, /api/pairing/batch, /api/cli/version, /api/health
  • Heartbeat ping/pong, deferred connection classification
  • termly-server.sh — one-command launcher

CLI Changes

  • termly server [start|stop|status|launch] command for server management
  • Auto-sets TERMLY_ENV=local in launch flow
  • LAN IP in QR code for mobile connectivity
  • Local mode defaults to port 3001

New AI Tools

  • crush (charmbracelet, TUI mode)
  • gemini (Google, TUI mode)
  • vibe (Mistral Vibe PR workflow CLI)

Usage

npm install -g @termly-dev/cli termly-server start

Scan QR code with Termly mobile app. Done.

B-A-M-N avatar May 26 '26 01:05 B-A-M-N