This script was created with the help of AI (opencode).
Simple tool to fetch VPN configs from subscription URLs with custom HWID headers.
Get VPN configuration from subscription services that require HWID binding, allowing you to use the same subscription across different OS installations without consuming multiple device slots.
python3 subget.py "https://example.com/sub" -c--hwid- Custom device ID (default:device-1)--os- Device OS (Windows/Linux/macOS/Android/iOS, default: Windows)--ver-os- OS version (default: 11)--model- Device model (default: PC)--ua- Custom User-Agent-c- Copy result to clipboard-o FILE- Save output to file
python3 subget.py "https://vpn.example.com/subscribe" \
--hwid "my-device" \
--os "Linux" \
--ver-os "24" \
--model "ThinkPad" \
-c- Python 3.x
requestslibrary- Optional:
pyperclipfor clipboard support
Install with:
pip install requests pyperclip- Tested with v2ray/xray/sing-box subscription formats
- Works with Remnawave/Happ-style HWID headers
- Outputs raw subscription content (base64 decoded if needed)