Skip to content

About

Simply Migrate Your Users Using API From Hiddify to Marzban Panel

Resources

Stars

14 stars

Watchers

1 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Hiddify To Marzban Migrate Script

| Simply Transfer Your Users From Hiddify to Marzban

Table of Contents

Before running the script, ensure you update the following variables with your specific information in config.py:

# Define Variables for Both Panels

# Hiddify Panel
# Example https://<DOMAIN>/<PROXY PATH>/<ADMIN TOKEN>

H_AUTH = "YOUR_ADDRESS" + "/api/v1/user/"

# Marzban Panel

M_DOMAIN = "YOUR_DOMAIN"
M_PORT = "YOUR_PORT"
M_USERNAME = "YOUR_USERNAME"
M_PASSWORD = "YOUR_PASSWORD"
M_HTTPS = False  # Set to True to use HTTPS, False to use HTTP

About

This script is designed to simplify the transfer of user data from Hiddify to Marzban using the Marzban API. It securely logs into both panels, retrieves user data from Hiddify, and adds it to Marzban.

Prerequisites

Python 3.0+ with the requests library is required. The script is not compatible with Python 2.0.

Linux

# Clone the Repository
git clone https://github.com/ItsAML/Hiddify-to-Marzban.git
# Change Directory
cd Hiddify-to-Marzban
# Install pip (if not already installed)
wget -qO- https://bootstrap.pypa.io/get-pip.py | python3 -
# Install Dependencies
python3 -m pip install -r requirements.txt
# Make Sure You Set Your Variables Inside Config.py 
# Run the Script
python3 main.py

Windows

# Clone the Repository
git clone https://github.com/ItsAML/Hiddify-to-Marzban.git
# Navigate to the Repository Directory
cd Hiddify-to-Marzban
# Install Python (if not already installed)
# Download and install Python from https://www.python.org/downloads/
# Ensure you add Python to your system's PATH during installation
# Install Dependencies
pip install -r requirements.txt
# Make Sure You Set Your Variables Inside Config.py 
# Run the Script
python main.py

About

Simply Migrate Your Users Using API From Hiddify to Marzban Panel

Resources

Stars

14 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages