A professional command-line interface for generating optimized NordVPN WireGuard configurations. This tool interacts directly with NordVPN infrastructure to authenticate users, retrieve private keys, and select the optimal servers based on real-time network load and geographic proximity.
- Intelligent Optimization: Algorithms prioritize servers by current load and physical distance to maximize throughput and minimize latency.
- Automated Credential Exchange: Securely exchanges standard access tokens for NordLynx private keys.
- Structured Output: Generates a clean directory hierarchy containing standard configurations and a dedicated
best_configssubset for immediate deployment. - Dual Operation Modes: Supports a rich interactive TUI for manual operation and strict non-interactive flags for automated pipelines.
- Cross-Platform Availability: Maintained in both Python and Go to ensure broad compatibility and performance.
The application can be installed directly from the Python Package Index.
pip install nord-config-generatorFor a dependency-free environment, the application can be executed via Docker. To prevent filesystem permission conflicts and ensure generated configurations are owned by the host user, the output directory must be created manually before execution.
-
Initialize the output directory:
mkdir -p generated_configs
-
Create a
docker-compose.ymlfile:services: nordgen: image: mustafachyi/nordgen:latest stdin_open: true tty: true user: "${UID:-1000}:${GID:-1000}" volumes: - ./generated_configs:/data
-
Execute the container:
docker-compose run --rm nordgen
Linux / macOS:
mkdir -p generated_configs && docker run -it --rm -u $(id -u):$(id -g) -v "$(pwd)/generated_configs:/data" mustafachyi/nordgen:latestWindows (PowerShell):
if (!(Test-Path "generated_configs")) { mkdir generated_configs }; docker run -it --rm -v "${PWD}/generated_configs:/data" mustafachyi/nordgen:latestWindows (Command Prompt):
if not exist "generated_configs" mkdir "generated_configs" && docker run -it --rm -v "%cd%/generated_configs:/data" mustafachyi/nordgen:latestThe command-line interface is unified across all distributions. It supports both interactive prompts for manual configuration and flag-based execution for automated pipelines.
- Generation: Execute
nordgento initiate the standard processing workflow. - Key Extraction: Execute
nordgen get-keyto isolate the private key retrieval process.
For granular details on available flags, overrides, and parameters, invoke the internal documentation:
nordgen --helpA browser-based version of the generator is available for immediate use without local installation.
- Live Application: https://nordgen.selfhoster.win/
Contributions to project visibility and sustainability are appreciated.
- Repository: Star the project on GitHub.
- Referral: https://ref.nordvpn.com/MXIVDoJGpKT
Distributed under the GNU General Public License v3.0. See LICENSE for details.