M03ED / Marzban_Bulk_Account_Maker

15 stars 9 forks source link

Marzban_Bulk_Account_Maker

Change Variables Depend On Your Usage

USERNAME = "user"
PASSWORD = "pass"
API_URL = 'https://sub.domain.com:port'  # Replace with the panel URL
BASE_NAME = 'user'  # Base name for the new users
START_NUMBER = 22  # Start number for the new users
NUM_USERS = 10  # Number of new users to create
DATA_LIMIT_GB = 15  # Data limit per GB
DAYS = 12  # Expire Date per Day (enter 0 for unlimited)
FLOW = 'xtls-rprx-vision'
STATUS = 'active'  # replace with 'on_hold' for count after first connection
DATA_LIMIT_RESET_STRATEGY = 'no_reset'

Change proxies and inbounds depend on your marzban setting , you can add trojan if you want

proxies = {
    'vmess': {},
    'vless': {
        'flow': flow
        }
}
inbounds = {
    'vmess': ['VMESS_TCP_INBOUND'],
    'vless': ['VLESS_TCP_Reality_INBOUND', 'VLESS_TCP_INBOUND']
}

After you start script it will start making users with usernames like these