Autoshift docker container based on Fabbi/autoshift on github
10K+
Automatically redeem Gearbox SHiFT codes from a container.
This image runs auto.py and keeps its state in /autoshift/data.
docker run \
--restart=always \
-e SHIFT_USER='<username>' \
-e SHIFT_PASS='<password>' \
-e SHIFT_ARGS='--redeem bl3:steam --schedule -v' \
-v autoshift:/autoshift/data \
-e TZ='America/Chicago' \
zacharmstrong/autoshift:latest
/autoshift/data to persist the cookie and database.--redeem inside SHIFT_ARGS for explicit game-to-platform mapping.| Variable | Required | Default | Purpose |
|---|---|---|---|
SHIFT_USER | Yes | none | SHiFT username or email |
SHIFT_PASS | Yes | none | SHiFT password |
SHIFT_ARGS | No | --schedule | Extra CLI flags passed to auto.py |
SHIFT_REDEEM | No | bl4:steam ttw:epic bl3:epic bl2:epic,steam blps:epic,steam bl1:steam | Direct game-to-platform mapping used when set |
SHIFT_GAMES | No | bl4 bl3 blps bl2 bl1 | Legacy game list fallback |
SHIFT_PLATFORMS | No | epic steam | Legacy platform list fallback |
SHIFT_SOURCE | No | bundled default source | Override SHiFT code source URL or file |
AUTOSHIFT_PROFILE | No | none | Use profile-specific state under /autoshift/data/<profile>/ |
TZ | No | America/Chicago | Container timezone |
Use SHIFT_ARGS when you want full CLI control:
docker run \
-e SHIFT_USER='<username>' \
-e SHIFT_PASS='<password>' \
-e SHIFT_ARGS='--redeem bl3:steam,epic bl2:epic --schedule --golden -v' \
-v autoshift:/autoshift/data \
zacharmstrong/autoshift:latest
Use SHIFT_REDEEM when you want the container defaults plus an explicit mapping:
docker run \
-e SHIFT_USER='<username>' \
-e SHIFT_PASS='<password>' \
-e SHIFT_REDEEM='bl3:steam,epic bl2:epic' \
-e SHIFT_ARGS='--schedule -v' \
-v autoshift:/autoshift/data \
zacharmstrong/autoshift:latest
services:
autoshift:
image: zacharmstrong/autoshift:latest
container_name: autoshift
restart: always
environment:
TZ: America/Chicago
SHIFT_USER: <username>
SHIFT_PASS: <password>
SHIFT_ARGS: --redeem bl3:steam --schedule -v
volumes:
- autoshift:/autoshift/data
volumes:
autoshift:
/autoshift/data.SHIFT_REDEEM is set, it takes precedence over the legacy SHIFT_GAMES and SHIFT_PLATFORMS flow.Full project documentation: https://github.com/zarmstrong/autoshift
Content type
Image
Digest
sha256:0df6a652b…
Size
41.6 MB
Last updated
3 months ago
docker pull zacharmstrong/autoshift