Skip to main content

Extract and reveal your Humble Bundle game keys to a CSV. Open-source, browser-automated, no Steam interaction.

Project description

humble-bundle-keys

Pull every Steam key out of your Humble Bundle account into a single CSV.

PyPI version Python versions License CI

humble-bundle-keys walks every page of your Humble Bundle Keys & Entitlements list, drives the Humble Choice membership pages on your behalf, captures every revealed key it finds, and writes them all into a single CSV you can sort, search, and bulk-paste into Steam.

It does NOT log into Steam. It stays inside humblebundle.com so the security model is simple.

Not affiliated with or endorsed by Humble Bundle. Humble Bundle and the Humble logo are trademarks of Tinybuild. This is an independent open-source tool that automates browser actions you could perform yourself.


Quick start

Requires Python 3.10+ and Chromium (auto-installed via Playwright).

# Install (using uv, recommended):
uv tool install humble-bundle-keys
playwright install chromium

# Or with pip:
pip install humble-bundle-keys
playwright install chromium
# First run — opens a browser window for login, then walks your library.
humble-bundle-keys

# Recommended first-time flow: read-only preview before anything mutates.
humble-bundle-keys --dry-run -v

# The full thing: extract everything, reveal pre-allocated keys, drive
# Humble Choice membership pages to claim subscription games.
humble-bundle-keys --browser-claim --max-claims 200 -v

After the run, your CSV is at ./humble-bundle-keys.csv and a full DEBUG-level log is at ~/.humble-bundle-keys/runs/run-<timestamp>.log.


What it does

  1. Logs you in once in a real Chromium window (so 2FA works normally) and saves the session for reuse.
  2. Walks every order in your library via Humble's private JSON API.
  3. Reveals already-allocated keys by calling Humble's "Redeem" endpoint on each unrevealed entry.
  4. Claims Humble Choice subscription games via API or browser-driven flows.
  5. Writes everything to a CSV with one row per key.

What it doesn't do

  • ❌ Log into Steam, GOG, Origin, or any other store
  • ❌ Store your Humble password
  • ❌ Make purchases or modify account settings
  • ❌ Gift games to friends (gifts are irrevocable)

Three extraction modes

Mode Flag Speed Catches
Default reveal (none) Fast Bundle keys, revealed Choice/Monthly keys
Choice API claim --claim-choice Fast Modern Choice months (key not yet allocated)
Browser claim --browser-claim Slow Everything, including legacy "pick N of M" months
# Combined run: API reveal + browser claim, all in one go.
humble-bundle-keys --browser-claim --max-claims 200 --merge -v

📖 Full documentation →


Documentation

Comprehensive documentation is available on the GitHub Wiki:


Common flags

Flag What it does
--dry-run Read-only. Walk everything, don't reveal or claim.
--browser-claim Drive membership pages to claim Choice games.
--max-claims N Hard cap on claims per run. Default 25.
--merge Merge with existing CSV instead of overwriting.
-v / -vv Bump console verbosity.
-y / --yes Skip confirmation prompts.

Run humble-bundle-keys --help for the full list, or see the CLI Reference.


Troubleshooting

See the Troubleshooting guide for common issues. The short version:

  • Cloudflare 403s: Transient 403s are now auto-retried (up to 3 attempts with backoff). If you see persistent HTML errors, re-run normally.
  • Selector breakage: Run humble-bundle-keys diagnose -v and attach safe-to-share.zip to an issue.
  • Session expired: humble-bundle-keys logout && humble-bundle-keys
  • Choice items detected: The summary now prints a copy-pasteable re-run command with the exact flags needed.

Contributing

Issues and PRs welcome. See the Contributing guide for dev setup and conventions.

git clone https://github.com/gfargo/humble-bundle-keys.git
cd humble-bundle-keys
uv venv && source .venv/bin/activate
uv pip install -e ".[dev]"
playwright install chromium
pytest

See also CONTRIBUTING.md and SECURITY.md.


Disclaimer

This tool automates browser actions you could perform yourself. It is not affiliated with or endorsed by Humble Bundle. Automated access may be against Humble's Terms of Service — use at your own risk. The polite delay between actions exists to keep traffic patterns reasonable.

The tool will never: redeem keys outside humblebundle.com, make purchases, modify account settings, or gift games to friends.


License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

humble_bundle_keys-0.5.0.tar.gz (77.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

humble_bundle_keys-0.5.0-py3-none-any.whl (58.0 kB view details)

Uploaded Python 3

File details

Details for the file humble_bundle_keys-0.5.0.tar.gz.

File metadata

  • Download URL: humble_bundle_keys-0.5.0.tar.gz
  • Upload date:
  • Size: 77.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for humble_bundle_keys-0.5.0.tar.gz
Algorithm Hash digest
SHA256 8791b0d78a5cf613ed8daddba0428547101c642cf85c1267d6905aca319665e9
MD5 97657ccd782183c61fdc8d6e4c3e0d58
BLAKE2b-256 058ec3385484bce7e1f143d5cbffb94f2ceefb93d61a10222a51c5f243c2ad89

See more details on using hashes here.

Provenance

The following attestation bundles were made for humble_bundle_keys-0.5.0.tar.gz:

Publisher: release.yml on gfargo/humble-bundle-keys

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file humble_bundle_keys-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for humble_bundle_keys-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63aecaf961fb8084ef34eb51c233a936c81ee5ca3357d3c999c3b68fab7f0ba3
MD5 7cb8ca3bb3a8fa3aa71ec8d1ecd88d96
BLAKE2b-256 110dca6f46dc34ff73feda72526150ff1c515bed18693bb58adc881e33ffe61d

See more details on using hashes here.

Provenance

The following attestation bundles were made for humble_bundle_keys-0.5.0-py3-none-any.whl:

Publisher: release.yml on gfargo/humble-bundle-keys

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page