Gearbox Shift codes
Total Time Required
15 minutes
Difficulty
Easy
Required Knowledge
N/A
This Compose stack will automate activating all SHiFT keys publicized online and any future ones if you leave it running 24/7
It is configured to activate keys for every game, on every platform - including ones you do not own yet.
Prerequisites
I am writing this documentation for Windows, under the assumption that most people referencing this guide won't have a homelab
If you do have a homelab, feel free to skip to the docker compose section to get the compose file and env
Install Docker
First, you will need to install the Docker engine on your machine.
Install Docker Desktop from the MS Store
Launch Docker Desktop and make sure it opens
If you get an error about virtualization, you will need to enable this in your BIOS.
Docker Compose
Next you will need to create a folder to store the Compose files
Select a location on your machine and create a new folder named "Shift Codes" and open that folder
Create a
docker-compose.ymlfile with the below contents
Create a
.envfile with the below contents
Edit the
.envfile and include your shift credentialsRight click anywhere in the folder and select open in terminal, command prompt or powershell (whatever is listed for you)
Type the command
docker-compose upand hit enter. You will see a bunch of stuff similar to
If you see "trying to redeem..." in the logs per below, this means the container is authenticated and functioning
Hit CTRL+C to exit and run
docker-compose up -d
This command 'detaches' the container from your terminal window and runs it in the background
Common errors
Couldn't login. Are your credentials correct?
Make sure your env file is named correctly - .env (DOTenv) - and has your credentials
Please launch a SHiFT-enabled title first!
You are either rate limited (the container will try again in 2 hours) or need to launch a game with Shift codes. This is how Gearbox limits people claiming too many codes.
FAQ
Multiple Accounts?
Yes - follow the guide again, but place the compose and .env file in a different folder.
Where do the shift codes come from?
Locate the SHIFT_SHIFT_SOURCE line in the compose file for the source address
Last updated