This is a python package that allows you to make api calls for Rec Room and get your login token via your cookie. This is built ontop of Jegarde's RecNet-Login package.
- Make authorized and non-authorized api calls
- Uses FlareSolverr and FlareSolver MITM Proxy to bypass Rec Room's Bot/DDoS protection
- Automatically renewing token
- Supports 2FA accounts
- Decoding the bearer token
- Detailed exceptions
Download the recnetlogin folder and place it in your project.
pip installation once this is stable.
- Login to RecNet. While logging in, make sure you toggle on "Remember me / my machine".
- Open your browser's DevTools (Inspect Element)
- Open the
StorageorApplicationtab on the top - Locate
Cookies>https://rec.neton the directory - Search for
__Secure-next-auth.session-tokenby filtering the cookies - Double click the value and copy it

- Search for environment variables and open the first result
- Click
Environment Variables...
- Click
Newunder System Variables
- Name the variable
RN_COOKIEand paste the copied value
-
Press OK on all the opened tabs
-
Restart your computer for it to take effect
- Make a new file named
.env.secretin your project's directory - Type
RN_SESSION_TOKEN=in the file and paste the copied value
- If the file is not in your project's directory, make sure to specify it
rnl = RecNetLogin(env_path=".env.secret") # Env path defaults to local directoryA month ago (as of 03/13/25) Rec Room added DDoS protection to their auth endpoints causing issues for this library. To get around it we can use FlareSolverr which is a proxy that gets around cloudflare DDoS protection.
If you already know about docker then please skip to the for Docker X section If you don't already have docker, install it by using the following: for windows: https://docs.docker.com/desktop/setup/install/windows-install/ for mac: https://docs.docker.com/desktop/setup/install/mac-install/ for linux: https://docs.docker.com/engine/install/ubuntu/
- Copy/download the file flaresolverr.docker-compose.yml from the repo
- Move into the directory that contains the docker-compose file and run:
docker compose -f <Insert filename> up -d
Use this stack overflow answer ... never touched Docker Desktop https://stackoverflow.com/a/66071384
For the time being I'll host a public Flaresolverr instance with a pretty hard rate limit on one of my vps's. It should be enough to do a couple logins per minute but this should only be used for testing with an alt account.
Now that being said ... the instance will be hosted at https://flaresolverr.apps.zigzatuzoo.xyz so your .env file will look like this FLARESOLVERR_INSTANCE="https://flaresolverr.apps.zigzatuzoo.xyz/v1"
-
Same way as setting up your
RN_SESSION_TOKENIf you are using a .env file then write in itFLARESOLVERR_INSTANCE="http://<InsertInstanceDomain&Port>/v1"So if you are running the FlareSolverr instance on the same system then it will look like thisFLARESOLVERR_INSTANCE="http://localhost:8191/v1" -
You will also need to set the proxy url which 99% of the time will be
localhost:8192This will be the case for the default docker-compose.yml as well as my public instance So you should have or addFLARESOLVERR_MITMP_INSTANCE="localhost:8192"Also since this is just a TCP proxy it need to NOT have http or https
ADD LATER
- Please just go to ./src/recnetclient/APIs and follow the premade examples
- If there is an endpoint you want to add that doesn't fit under the current files please make a new one with the class matching the name of the file and import it under the
__init__.pyfile in the APIs folder
- Then please do ... any fixes are welcomed.
- I wouldn't say I'm a very organized coder so if you think there is a better way or want to spend the time cleaning up the codebase go right ahead
- When your done please make a PR and I'll review it when I can




