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 100.
--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.6.0.tar.gz (78.6 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.6.0-py3-none-any.whl (58.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: humble_bundle_keys-0.6.0.tar.gz
  • Upload date:
  • Size: 78.6 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.6.0.tar.gz
Algorithm Hash digest
SHA256 092c872752c64904f6c9f639f82bb115be2301b61214914302fdd1d27cb22c50
MD5 5d069a0f77fd83543e63d5892dc5b2a5
BLAKE2b-256 1eefad212e9e4931aca1c3d954706e1e89c9e6eb70685404975074158dd5c62a

See more details on using hashes here.

Provenance

The following attestation bundles were made for humble_bundle_keys-0.6.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.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for humble_bundle_keys-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e716671b85ff81986776695fd52e676441be5ab7c53a2135c88d11c31c3e67b7
MD5 52fce08227c290d6a58c887d2af98b6f
BLAKE2b-256 26744c248d7669cf073e67c1ea8896e447da2dc523a2d5a05f5a75a9f9b235e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for humble_bundle_keys-0.6.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