I’m afraid there is no current method to dynamically feed a username and password to a Viscosity connection. However we’re hoping to add a feature in the future to allow a “Before Connect” script optionally return the login credentials to use.
I recommend adopting OpenVPN's “Challenge/Response Protocol” for requesting the OTP. This will allow you to seperate out the username/password and let Viscosity save them into the Keychain (to avoid the need to re-enter them when reconnecting). If you’re not in control over the OpenVPN server you may need to ask your IT administrator to switch to this (which is the recommended approach for two-factor auth).
The following forum post has some more information on how to use it:viewtopic.php?f=3&t=1279#p3677
Additional information can also be found on the OpenVPN website:https://openvpn.net/index.php/open-sour ... rface.html