| name | steam |
| description | Browse and filter your Steam game library — recommendations, playtime, Steam Deck compatibility. |
| metadata | {"homepage":"https://github.com/mjrussell/steam-cli","dependencies":{"steam":{"description":"Steam Games CLI","check":"steam --help","install":"npm install -g steam-games-cli"}}} |
Steam Games CLI
CLI for browsing and discovering games in your Steam library. Filter by playtime, reviews, Deck compatibility, genres, and tags.
Installation
npm install -g steam-games-cli
Setup
- Get a Steam Web API key from https://steamcommunity.com/dev/apikey
- Configure the CLI:
steam config set-key YOUR_API_KEY
steam config set-user YOUR_STEAM_ID
Commands
Profile
steam whoami
steam whoami --json
Library
steam library
steam library --limit 10
steam library --json
Tags & Genres (Instant)
steam tags
steam tags --json
steam genres
steam genres --json
Filtering Options
Playtime
steam library --unplayed
steam library --min-hours 10
steam library --max-hours 5
steam library --deck
Reviews (1-9 scale)
steam library --reviews very-positive
steam library --min-reviews 7
steam library --show-reviews
Categories: overwhelmingly-positive (9), very-positive (8), positive (7), mostly-positive (6), mixed (5), mostly-negative (4), negative (3), very-negative (2), overwhelmingly-negative (1)
Steam Deck Compatibility
steam library --deck-compat verified
steam library --deck-compat playable
steam library --deck-compat ok
steam library --show-compat
Tags & Genres
steam library --tag "Roguelike"
steam library --genre "Strategy"
steam library --show-tags
Sorting
steam library --sort name
steam library --sort playtime
steam library --sort deck
steam library --sort reviews
steam library --sort compat
AI Agent Workflow
The CLI is optimized for AI agents with stream fusion and early termination.
Step 1: Discover available tags/genres (instant)
steam tags --json
steam genres --json
Step 2: Filter library with combined criteria
steam library --unplayed --deck-compat verified --tag "Roguelike" --min-reviews 7 --limit 10 --json
steam library --max-hours 5 --genre "Strategy" --min-reviews 8 --limit 5 --json
steam library --tag "Trading" --deck-compat ok --limit 10 --json
Performance Notes
- Local filters (playtime, unplayed) apply first - instant
- Remote filters (reviews, deck compat, tags) fetch in parallel per game
- Early termination: stops when limit is reached
- Use local filters first to minimize API calls
Usage Examples
User: "What should I play on my Steam Deck?"
steam library --deck-compat verified --min-reviews 7 --sort playtime --limit 10
User: "What roguelikes do I have?"
steam library --tag "Roguelike" --show-tags --limit 20
User: "What unplayed games are highly rated?"
steam library --unplayed --min-reviews 8 --sort reviews --limit 10 --show-reviews
User: "How many games do I have?"
steam whoami
User: "What strategy games work on Deck?"
steam library --genre "Strategy" --deck-compat ok --show-compat --limit 15
User: "What tags are available?"
steam tags --json
Output Formats
- Default: Colored table
--plain: Plain text list
--json: JSON for scripting/AI agents