MCPcopy
hub / github.com/Jrohy/multi-v2ray

github.com/Jrohy/multi-v2ray @v3.11.4 sqlite

repository ↗ · DeepWiki ↗ · release v3.11.4 ↗
211 symbols 854 edges 27 files 20 documented · 9%
README

multi-v2ray

a tool to manage v2ray/xray config json, support multiple user && group manage
Downloads Downloads

中文 English

Feature

  • Support Xray manage, different commands (v2ray/xray) enter different core management
  • V2ray && Iptables Traffic Statistics
  • Command line to manage
  • Multiple user && port manage
  • Cloudcflare cdn mode
  • Support pure ipv6 VPS
  • Support Docker
  • Dynamic port
  • Ban bittorrent
  • Range port
  • TcpFastOpen
  • Vmess/VLESS/Socks5/MTproto share link
  • Support protocol modify:
  • TCP
  • Fake http
  • WebSocket
  • mkcp
  • mKCP + srtp
  • mKCP + utp
  • mKCP + wechat-video
  • mKCP + dtls
  • mKCP + wireguard
  • HTTP/2
  • Socks5
  • MTProto
  • Shadowsocks
  • Quic
  • VLESS_TCP
  • VLESS_TLS
  • VLESS_WS
  • VLESS_REALITY
  • Trojan

How To Use

new install

source <(curl -sL https://multi.netlify.app/v2ray.sh)

keep profile to update

source <(curl -sL https://multi.netlify.app/v2ray.sh) -k

uninstall

source <(curl -sL https://multi.netlify.app/v2ray.sh) --remove

Command Line

v2ray/xray [-h|help] [options]
    -h, help             get help
    -v, version          get version
    start                start V2Ray
    stop                 stop V2Ray
    restart              restart V2Ray
    status               check V2Ray status
    new                  create new json profile
    update               update v2ray to latest
    update [version]     update v2ray to special version
    update.sh            update multi-v2ray to latest
    add                  add new group
    add [protocol]       create special protocol, random new port
    del                  delete port group
    info                 check v2ray profile
    port                 modify port
    tls                  modify tls
    tfo                  modify tcpFastOpen
    stream               modify protocol
    cdn                  cdn mode
    stats                v2ray traffic statistics
    iptables             iptables traffic statistics
    clean                clean v2ray log
    log                  check v2ray log
    rm                   uninstall core

Docker Run

default will create random port + random header(srtp | wechat-video | utp | dtls) kcp profile(if use xray replace image to jrohy/xray)

docker run -d --name v2ray --privileged --restart always --network host jrohy/v2ray

custom v2ray config.json:

docker run -d --name v2ray --privileged -v /path/config.json:/etc/v2ray/config.json --restart always --network host jrohy/v2ray

check v2ray profile:

docker exec v2ray bash -c "v2ray info"

warning: if u run with centos, u should close firewall first

systemctl stop firewalld.service
systemctl disable firewalld.service

Dependent

v2ray docker: https://hub.docker.com/r/jrohy/v2ray
xray docker: https://hub.docker.com/r/jrohy/xray pip: https://pypi.org/project/v2ray-util/
python3: https://github.com/Jrohy/python3-install
acme: https://github.com/Neilpang/acme.sh

Core symbols most depended-on inside this repo

save
called by 22
v2ray_util/util_core/writer.py
green
called by 22
v2ray_util/util_core/utils.py
load_template
called by 21
v2ray_util/util_core/writer.py
readchar
called by 19
v2ray_util/util_core/utils.py
update
called by 16
v2ray_util/util_core/v2ray.py
cyan
called by 16
v2ray_util/util_core/utils.py
red
called by 12
v2ray_util/util_core/utils.py
yellow
called by 11
v2ray_util/util_core/utils.py

Shape

Method 116
Function 63
Class 32

Languages

Python100%

Modules by API surface

v2ray_util/util_core/group.py42 symbols
v2ray_util/util_core/writer.py34 symbols
v2ray_util/util_core/utils.py30 symbols
v2ray_util/util_core/v2ray.py19 symbols
v2ray_util/util_core/selector.py11 symbols
v2ray_util/util_core/profile.py8 symbols
v2ray_util/main.py8 symbols
v2ray_util/global_setting/stats_ctr.py6 symbols
v2ray_util/config_modify/base.py6 symbols
v2ray_util/util_core/config.py5 symbols
v2ray_util/locale_i18n/zh_CH/LC_MESSAGES/msgfmt.py5 symbols
v2ray_util/locale_i18n/en_US/LC_MESSAGES/msgfmt.py5 symbols

For agents

$ claude mcp add multi-v2ray \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact