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.

Drawing

Prerequisites

circle-info

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.

  1. Install Docker Desktop from the MS Storearrow-up-right

  2. 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

  1. Select a location on your machine and create a new folder named "Shift Codes" and open that folder

  2. Create a docker-compose.yml file with the below contents

https://github.com/trentnbauer/HomelabPublic/blob/main/docker-compose/autoshift.yml
  1. Create a .env file with the below contents

  1. Edit the .env file and include your shift credentials

  2. Right click anywhere in the folder and select open in terminal, command prompt or powershell (whatever is listed for you)

  3. Type the command docker-compose up and hit enter. You will see a bunch of stuff similar to

  1. If you see "trying to redeem..." in the logs per below, this means the container is authenticated and functioning

  1. Hit CTRL+C to exit and run docker-compose up -d

circle-info

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