Skip to main content

Steam automation CLI - find games, check deals, purchase, and manage your Steam library

Project description

gmfind: Game Finder

A Python CLI tool for recommendations and purchasing of PC games. Steam is the store front that is primarily supported for now. The tool will look for high quality games based on steam and metacritic ratings, look for discounts, view compatibility ratings, and manage your library from the terminal.

Features

  • Game Discovery: Find discounted games filtered by price, Metacritic score, ProtonDB rating, and Steam Deck compatibility.
  • Compatibility Checks: Get ProtonDB and Steam Deck verification status for any game.
  • Smart Filtering: Exclude games you already own, match blocklist patterns, and enforce preference criteria.
  • Headless Purchasing: Buy games using your Steam Wallet with Playwright browser automation.
  • Private Profile Support: Export your game library even with a private Steam profile.

Safety Notice

Purchases use Steam Wallet only. This tool will never use credit cards, PayPal, or any external payment methods. All purchases are made exclusively from your Steam Wallet balance.

  • The gmfind buy command validates games against your config before purchasing
  • Use gmfind buy --auto with caution - it will automatically purchase a recommended game
  • Set a conservative max_price in your config to limit spending
  • Your Steam Wallet balance acts as a natural spending cap

We recommend adding a small amount to your Steam Wallet and testing with --headful mode first to observe the purchase flow before enabling autonomous buying.

Installation

For Users

Requires Python 3.10+ and uv.

# Install globally as a CLI tool
uv tool install gmfind

# Initialize (installs Playwright browsers and creates config templates)
gmfind init

Alternative with pipx:

pipx install gmfind
gmfind init

For Developers

See Development section below.

Configuration

Set your Steam credentials as environment variables:

export STEAM_USERNAME="your_username"
export STEAM_PASSWORD="your_password"
export STEAM_ID="76561198xxxxxxxxx"

Or create a .env file in your working directory.

Config Files

Config files are stored in platform-specific locations:

  • Linux: ~/.config/gmfind/
  • macOS: ~/Library/Application Support/gmfind/
  • Windows: %APPDATA%\gmfind\

Files:

  • config.yaml - Preferences (max price, min ratings, etc.)
  • block_list.yaml - Game title patterns to exclude

Usage

Check Game Details

Get comprehensive info including price, ProtonDB rating, Steam Deck status, and reviews:

gmfind check 1145350

Find Deals

Find discounted games matching your preferences:

gmfind deals           # Find 10 deals
gmfind deals 5         # Find 5 deals
gmfind deals --output ./deals.md   # Save to file

Purchase a Game

Buy a game by App ID (validates against your config first):

gmfind buy 1145350            # Buy specific game
gmfind buy 1145350 --force    # Skip validation checks
gmfind buy 1145350 --headful  # Show browser window
gmfind buy --auto             # Autonomous: balance -> recommend -> buy

Check Wallet Balance

gmfind balance

Export Game Library

gmfind inventory --private    # Browser-based (works with private profiles)
gmfind inventory --public     # API-based (requires public profile)

Check Blocklist

gmfind blocklist "FIFA 24"

Find Steam App ID

Look up a game's Steam App ID by title:

gmfind id "Hades"

Output: {"steam_id": 1145360, "title": "Hades"}

Global Options

gmfind --version     # Show version
gmfind --verbose     # Enable debug logging
gmfind <cmd> --help  # Command-specific help

Per-Command Options

Most commands accept config overrides:

gmfind deals 5 --config ./config.yaml --block-list ./blocklist.yaml
gmfind check 1145350 --inventory ./my_games.csv

Development

Setup

# Clone the repository
git clone https://github.com/your-username/gmfind.git
cd gmfind

# Install in development mode with dev dependencies
make install

# Initialize Playwright browsers
make init

Running Locally

# Run commands through uv
uv run gmfind --help
uv run gmfind check 1145350

# Or activate the virtual environment
source .venv/bin/activate
gmfind --help

Code Quality

make lint        # Run ruff linter
make format      # Format code with ruff
make type-check  # Run mypy type checker
make check       # Run all checks

Building

# Install build tools
uv pip install build twine

# Build the package
uv run python -m build

# This creates:
#   dist/gmfind-0.1.0.tar.gz
#   dist/gmfind-0.1.0-py3-none-any.whl

Testing Locally Before Publishing

# Create a test environment
uv venv /tmp/test-gmfind
source /tmp/test-gmfind/bin/activate

# Install your local build
pip install dist/gmfind-*.whl

# Test it
gmfind --version
gmfind check 1145350

# Clean up
deactivate
rm -rf /tmp/test-gmfind

Publishing

# Upload to TestPyPI first
uv run twine upload --repository testpypi dist/*

# Then upload to PyPI
uv run twine upload --repository pypi dist/*

Versioning

Update version in src/gmfind/__init__.py before releasing:

__version__ = "0.2.0"

Then rebuild and publish.

Security

  • Credentials are read from environment variables, never stored in config files.
  • Session data is stored locally in XDG data directory.
  • Browser automation uses real Chromium with human-like behavior.

Troubleshooting

When errors occur during login or purchase, screenshots are automatically saved for debugging.

File locations (platform-specific):

  • Linux: ~/.cache/gmfind/
  • macOS: ~/Library/Caches/gmfind/
  • Windows: %LOCALAPPDATA%\gmfind\Cache\

Troubleshooting files:

  • screenshots/ - Error screenshots (e.g., login_failed.png, purchase_failed.png)
  • logs/gmfind.log - Application logs

Common issues:

  • Login fails: Check screenshots/login_*.png for the browser state at failure
  • Purchase fails: Check screenshots/purchase_failed.png or checkout_failed.png
  • Run with --headful flag to watch the browser in real-time

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

gmfind-0.1.4.tar.gz (46.8 kB view details)

Uploaded Source

Built Distribution

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

gmfind-0.1.4-py3-none-any.whl (55.6 kB view details)

Uploaded Python 3

File details

Details for the file gmfind-0.1.4.tar.gz.

File metadata

  • Download URL: gmfind-0.1.4.tar.gz
  • Upload date:
  • Size: 46.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for gmfind-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2723b4acad23fd65dd12a26534902bd1f3aa96e6db4cebc253d330b522926712
MD5 7cd5faeb8da38cfd2e240bcf7aeecb27
BLAKE2b-256 9808bc254f3bbe3b145ce8b15912a3bea3f4cab2c7e36947fd1c1eed39b2201d

See more details on using hashes here.

File details

Details for the file gmfind-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: gmfind-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 55.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for gmfind-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8d5a88cf097de96b329ee3503fe8a8a6e274e16c7cc0f53a2d85c18c765ced3d
MD5 568368d9fc1b568c73eb23bbd605963c
BLAKE2b-256 888895ef138a90c9126f2276bcab57be065bce3a12ec3868e5e2b32a3a47892c

See more details on using hashes here.

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