.env Variables - lolmaxz/vrc-ts GitHub Wiki
Environment Variables
Description of different options you can set in your .env
file. Make sure to put it at the root of your project.
Required Variables
Variable | Description |
---|---|
VRCHAT_USERNAME |
Your VRChat username |
VRCHAT_PASSWORD |
Your VRChat password |
2FA Variables (One of the following is required)
Variable | Description |
---|---|
EMAIL_2FA_CODE |
The 6-digit code received via email |
TOTP_2FA_CODE |
The 6-digit code from your authenticator app |
VRCHAT_2FA_SECRET |
Your 2FA secret for automatic TOTP generation |
[!Note] Your VRChat 2FA Secret Key is only given to you on the first time you turn on 2FA. The QR code you will be given contains the secret key.
It should be a 32 characters long string like this: 2W4X6Z7YQ9A2B4C62W4X6Z7YQ9A2B4C6 mixing numbers and capital letters.
Optional Variables
Variable | Default Value | Description |
---|---|---|
COOKIES_PATH |
'./cookies.json' |
Path to store cookies |
USE_COOKIES |
true |
Whether to use cookies for session management |
DEBUG |
false |
Enable debug logging |
WEBCLIENT_DEBUG |
false |
Enable web client debug logging |
USER_AGENT |
'ExampleProgram/0.0.1 [email protected]' |
User agent for HTTP requests |