How to set up automatic authentication with BTGuard via OpenVPN on Windows (Updated 22/12/2011)


I recently started using the BTGuard VPN service and it has taken a lot of fiddling around to make it work in any user-friendly way.
This guide will tell you how to set it up so that you can just start OpenVPN and click “Connect”, then it just works.


  1. Follow the official BTGuard steps from here.
  2. Close OpenVPN.
  3. Create a text file called password.txt and in it, put your username on the first line and your password on the second line.
  4. Go into your OpenVPN config folder (the same one mentioned in the official BTGuard guide) and put password.txt in there.
  5. Change the line “auth-user-pass” to “auth-user-pass password.txt”, and save the file.
    Note: You may need to copy the file to another folder in order to edit it, then copy it back to the config folder. This is due to Windows security.
  6. Download the latest official version of OpenVPN from here and install it.

Now you can simply start OpenVPN, right-click the icon in the system tray and click Connect. It will connect automatically, and automatically re-connect without prompting you for your login information again.



  • Updated instructions for latest BTGuard configuration


  • Initial article


  1. Works like a charm
    Thanks so much, the every hour reauth on BTGaurd was driving me crazy.
    This was the easiest solution I found

  2. SubJunk

    October 23, 2011 at 12:06 pm

    @Greg: Awesome, thanks for the feedback 🙂

  3. Thanks so much for this easy fix – although I very often get “Failed” when connecting I think that is just BTGuard’s servers being difficult.
    Amazing that BTGuard does not seem to know about this procedure!
    Take a bow.

  4. SubJunk

    April 2, 2012 at 12:45 pm

    @TigerTrader: Thanks! I also think it’s strange that BTGuard don’t offer it themselves 🙂

  5. It is not working

Leave a Reply

Your email address will not be published. Required fields are marked *

© 2024 Spirton

Theme by Anders NorénUp ↑