@ktvdung1606/tproxy
v0.1.10
Published
npm wrapper for the tproxy AI gateway binary — includes system tray and auto-start
Maintainers
Readme
@ktvdung1606/tproxy
npm CLI wrapper for the tproxy AI gateway.
Install
npm install -g @ktvdung1606/tproxyPlace a built tproxy binary on your PATH, or run from a local clone:
cd tproxy && go build -o bin/tproxy ./cmd/tproxyUsage
# Foreground gateway
tproxy --config ~/.tproxy/config.yaml
# System tray (menu bar / notification area) — like 9Router
tproxy --tray
# or
tproxy trayTray menu
| Item | Action |
|------|--------|
| TProxy (Port …) | Status (read-only) |
| Open Dashboard | Opens http://127.0.0.1:<port>/dashboard/ |
| Enable Auto-start / ✓ Auto-start Enabled | Toggle launch at login |
| Quit | Stop gateway and exit |
Auto-start at login
tproxy autostart enable # LaunchAgent / Startup / XDG autostart
tproxy autostart disable
tproxy autostart statusYou can also toggle auto-start from the tray menu. On enable, the OS starts:
node <path-to-tproxy.js> --tray- macOS:
~/Library/LaunchAgents/com.tproxy.autostart.plist - Windows: Startup folder
tproxy.vbs - Linux:
~/.config/autostart/tproxy.desktop
Logs (macOS autostart): ~/.tproxy/logs/.
Notes
- First tray run on macOS/Linux may install
systray2into~/.tproxy/runtime/(one-time). - Windows tray uses PowerShell
NotifyIcon(no native binary). - Default config is created at
~/.tproxy/config.yamlif missing.
