Skip to content

Simple console utility to manage user accounts of xray server

License

Notifications You must be signed in to change notification settings

archer-v/xray-auc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xray-auc

Simple console utility to manage user accounts of xray server

Supported operations: add user, remove user, get user traffic statistics (in development)

It was written in a hurry to quickly solve the problem of managing xray users, since xray does not provide a simple api for this.

Xray has grpc api, but it's difficult to use it from linux console by automation scripts.

Some peace of code related to grpc api flow was borrowed from https://github.com/FranzKafkaYu/x-ui

  Usage:
    xray-auc [addUser|rmUser] [user_options..]

  Subcommands: 
    addUser   add user to an inbound proxy configuration
       user options: 
         -p --proto      proxy protocol, one of: vmess, vless, trojan, shadowsocks
         -e --email      user email (is used as a human id)
         -s --password   user secret (password for shadowsocks or id for vless/vmess/trojan)
            --flow       flow (vless proto only)
         -c --cipher     cipher (shadowsocks proto only, optional)
         -t --tag        proxy tag

    rmUser    remove user from an inbound proxy configuration
       user options: 
         -e --email      user email (is used as a human id)
         -t --tag        proxy tag

  General flags: 
       --version   Displays the program version string.
    -h --help      Displays help with available flag, subcommand, and positional value parameters.
    -a --addr      xray server host and port separated with a colon
    -f --file      filepath to json file with array of user records in format: [ { user_options...}, .... {}]

Build

make distro

About

Simple console utility to manage user accounts of xray server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published