项目
在 GitHub 查看
luynrs/justray
关于
⚡ A modern VPN client that lives in your terminal
系统与基础设施可以做什么
- Modern protocols: VMess, VLESS, Trojan, WireGuard/AmneziaWG, Shadowsocks, Hysteria 1/2, TUIC, AnyTLS, SOCKS5 and others
- Flexible: import subscriptions from raw links or Clash/Mihomo YAML, sing-box or Xray JSON with automatic refresh and a wide range of settings
- Headless: the daemon and embedded sing-box core run independently from the TUI, keeping connections alive after you detach
- Lightweight: ~50 MB RAM on Linux / MacOS and ~100 MB on Windows
实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
.github/docs/README.CN.md
原文
住在终端里的 VPN 客户端
功能
- 协议支持: VMess、VLESS、Trojan、WireGuard/AmneziaWG、Shadowsocks、Hysteria 1/2、TUIC、AnyTLS、SOCKS5 等
- 导入与设置: 可导入节点链接,以及 Clash/Mihomo YAML、sing-box 或 Xray JSON 格式的订阅,支持自动更新和多种设置
- 后台运行: 后台服务和内嵌的 sing-box 核心独立于 TUI 运行,关闭界面后仍保持连接
- 内存占用: Linux / MacOS 上约 50 MB,Windows 上约 100 MB
- 基于规则的路由: 支持应用、域名、通配符和 GeoIP/Geosite 规则
- 平台支持: 可在 Linux、MacOS 13+ 和 Windows 1803+ 的现代终端中运行
安装
使用包管理器:
# Linux / MacOS
brew install luynrs/tap/justray
# Arch Linux
yay -S justray-bin
# Windows
winget install luynrs.justray
也可以使用 x-cmd:
x eget use luynrs/justray
或通过脚本安装:
# Linux / MacOS
curl -fsSL https://raw.githubusercontent.com/luynrs/justray/main/install.sh | sh
# Windows
irm https://raw.githubusercontent.com/luynrs/justray/main/install.ps1 | iex
Nix:
nix run github:luynrs/justray
# Home Manager
{
imports = [ justray.homeManagerModules.default ];
services.justray.enable = true;
}
使用
通过包管理器(WinGet 除外)或脚本安装时,还会提供 jray,作为 justray 的简写
justray:打开 TUI
连接
justray up <node> [--tun | --proxy]:启动后台服务并连接justray down:断开连接justray stop:停止后台服务justray probe [sub | id | name]:测量节点延迟justray status [--json]:查看连接状态justray logs [daemon | engine] [-f]:查看日志
订阅与节点
justray subscription <command> 或 justray sub <command>
add <url>:添加订阅或节点链接remove <id | name>:按 ID 或名称删除订阅refresh [id | name]:更新订阅list [--json]:列出订阅和节点
其他选项
-h、--help:显示帮助-v、--version:显示当前版本
快捷键
| 按键 | 操作 | 按键 | 操作 |
|---|---|---|---|
↑/↓、k/j |
移动光标 | Shift+↑/↓ |
调整订阅顺序 |
←/→、h/l |
折叠 / 展开 | Enter |
连接 / 断开连接 |
Home / End |
跳转到顶部 / 底部 | / |
筛选节点 |
t / T |
测量选中节点 / 所有节点的延迟 | r / R |
更新选中订阅 / 所有订阅 |
m |
切换模式(PROXY / TUN) | ? |
显示帮助 |
a |
添加订阅 / 节点 | d |
删除订阅 |
o |
打开设置 | Tab |
切换设置标签页 |
Esc |
保存设置 / 取消编辑 | q、Ctrl+C |
退出 TUI |
截图
| 主界面 | 添加弹窗 |
|---|---|
![]() |
![]() |
| TTY 模式下的主界面 | 设置 |
![]() |
![]() |
许可证
探索相关项目
加载中…



