ALightVPN setup guides

Create and manage an API key

Your ALightVPN client uses an API key to request VPN profiles. The website encrypts the key for the public key generated by your client. You transfer the encrypted result back to that same client; you do not type a raw API key into OpenVPN or strongSwan.

1. Generate a public key in your client

ClientFirst-run action
Windows desktopSelect Generate Key Pair. The app copies the public key to the clipboard.
Android downloader, when availableTap Generate Public Key, then Copy Key to Clipboard.
Linux, macOS, or Windows consoleFirst run automatically starts API Key Setup. If clipboard access fails, copy the public key printed in the terminal.

Keep the app or console session open until import finishes. Generating another key pair or restarting setup can make a transfer created for the previous pair unreadable.

2. Create the API key on the website

  1. Sign in at vpn.alightservices.com, then open API Keys.
  2. If redirected to Billing, check that your subscription, activated Travel Pass, or other granted access is currently valid.
  3. In Generate New API Key, enter an optional label such as Work laptop. Use letters, numbers, and spaces, up to 50 characters.
  4. Paste the public key into ML-KEM Public Key (base64). Paste the full value without adding quotes.
  5. Select Generate API Key.
  6. In the result, select Copy to Clipboard or download the encrypted .key file. The transfer is shown only once; import it before leaving the page.

3. Import the encrypted transfer

Successful import shows a key ID and API address. Continue with your platform guide to download a profile and connect.

Rotate, revoke, or replace a key

Troubleshooting

Decryption failed
Use the complete transfer generated for the public key from this app session. If that session was lost, generate a fresh pair and replace the unused key.
API key rejected
Check the website for a revoked or rotated key and confirm current VPN access. Re-provision the client if needed.
Profile allowance reached
Review profiles in VPN Dashboard, revoke unused profiles, and allow pending server revocation to finish before requesting another.
Clipboard unavailable
Use the printed public key and the .key file transfer. This is useful over SSH and on Linux desktops without clipboard integration.

Protect the saved credentials

Provision each device separately. Windows credentials are protected for the current Windows user. The console's Linux and macOS credentials are stored in ~/.alightvpn/credentials with owner-only permissions; they are not encrypted by this client. Keep that file and downloaded VPN profiles out of shared folders, source control, and support attachments.