Skip to main content

agent-discogs

A token-efficient Discogs CLI for AI agents that minimizes API calls.

agent-discogs search "Nine Inch Nails"
agent-discogs get release @r352665      # ref from search output
agent-discogs tracks @r352665          # tracklist shortcut
agent-discogs price @r352665           # price guide shortcut

Installation

pipx install agent-discogs

Or with uv:

uv tool install agent-discogs

Or with pip:

pip install agent-discogs

pipx, uv and pip need Python 3.10 or later.

Homebrew

brew install jmfontaine/tap/agent-discogs

The formula comes from the maintainer's Homebrew tap. It installs the PyPI release into a virtualenv on Homebrew's own Python, whatever Python you have.

To tap once and then use the short name:

brew tap jmfontaine/tap
brew install agent-discogs

Or in a Brewfile:

tap "jmfontaine/tap"
brew "agent-discogs"

A prebuilt bottle exists only for Apple Silicon Macs on macOS 26 or later. Everywhere else (Intel Macs, earlier macOS, Linux) Homebrew builds from source, which needs Rust (for pydantic-core; Homebrew installs it as a build dependency) and takes a few minutes.

brew upgrade installs a new release once the tap has picked it up from PyPI.

AI Coding Agent Skill

Install the skill so your AI coding agent can use agent-discogs automatically:

npx skills add jmfontaine/agent-discogs

The installed skill is a thin pointer; the usage guide itself ships inside the package and is served by agent-discogs skills get core, so agents always read instructions that match the version they run (see skills).

Authentication

Set your personal access token from your Discogs developer settings:

export DISCOGS_TOKEN="your-token-here"

Credentials are required for price lookups, and Discogs' API documentation requires them for search too: unauthenticated searches currently get answers, but Discogs may refuse one with auth_required. Without any credentials the limit is 25 requests/minute; with a token, every command works at 60 requests/minute.

price needs one thing more than a token or OAuth credentials: Discogs only returns price suggestions to accounts that have filled out their seller settings. Until you do, the endpoint answers 404 and price tells you so; every other command is unaffected.

The CLI sends whichever credentials discogs-sdk finds in the environment, in this order:

  1. DISCOGS_TOKEN;
  2. OAuth 1.0a (DISCOGS_CONSUMER_KEY, DISCOGS_CONSUMER_SECRET, DISCOGS_ACCESS_TOKEN and DISCOGS_ACCESS_TOKEN_SECRET, all four);
  3. a consumer key and secret alone (DISCOGS_CONSUMER_KEY and DISCOGS_CONSUMER_SECRET);
  4. otherwise none.

A consumer key and secret get 60 requests/minute but identify an app, not a user, so price needs a token or OAuth, and so do --owned, --in-wantlist, get owned, get collection, get lists and get wantlist, which read your own collection, lists and wantlist. get inventory alone works without credentials: Discogs shows anyone a seller's For Sale listings. agent-discogs status reports the mode in use.

Commands

agent-discogs search release "The Downward Spiral" --year 1994
agent-discogs search artist "Nine Inch Nails" --limit 10
agent-discogs get artist @a3857
agent-discogs get versions @m3719 --country US --format Vinyl
agent-discogs get owned @r352665 @r847868
agent-discogs search release --artist "Nine Inch Nails" --year 1994 --limit 20 --owned
agent-discogs get collection --style Techno --format 12\" --max-requests 20
agent-discogs get wantlist --for-sale --max-price 20 --currency EUR --max-requests 60
agent-discogs get inventory <seller> --in-wantlist --condition VG+ --max-requests 60
agent-discogs get lists
agent-discogs get list 123
agent-discogs get release @r352665 --json
agent-discogs status
agent-discogs cache clear
agent-discogs skills get core

Each command, its own flags and its text output are described in Commands. The global flags (--cached, --fresh, --debug, --color), the output modes (--json, --full) and the --max-requests cap have their own pages:

For Tab completion in an interactive bash, zsh or fish shell, add eval "$(agent-discogs completion zsh)" (or bash) to the shell's startup file; see Shell completion for fish.

Ref system

Output includes typed refs that encode the entity type and Discogs ID. Copy them into subsequent commands.

Prefix Type Example
@r Release @r352665
@a Artist @a3857
@m Master @m3719
@l Label @l647

Raw numeric IDs also work: agent-discogs get release 352665.

Smart resolution: get versions @r352665 auto-resolves the release to its master.

Documentation

  • Commands: search (filters, sorting, client-side scans, --added-since, --owned), get and its nouns (get owned, get collection and its filters, get wantlist and its --for-sale scan, get inventory and its grade, origin, price and --in-wantlist filters, get lists and get list), tracks / price, status, cache, skills, shell completion.
  • JSON output: projections, --full, the pagination envelope, owned rows, collection rows, wantlist rows and their market, inventory listings and their wantlist object, lists and their items, non-ASCII and control-character escaping.
  • Caching and request budget: --cached / --fresh, cache errors, rate limits, what each command costs, --max-requests.
  • Errors: the error layout, error codes, and the 401, 429 and connection-error hints.
  • Debugging: the --debug panel, output encoding, how Discogs text is neutralized, and --color.

License

agent-discogs is licensed under the Apache License 2.0.

Metadata

Release files for agent-discogs 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agent-discogs 0.3.0
File Size Uploaded
agent_discogs-0.3.0.tar.gz 136.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agent-discogs 0.3.0
File Interpreter ABI Platform
agent_discogs-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 283.5 kB

Release files / agent_discogs-0.3.0.tar.gz

Download URL agent_discogs-0.3.0.tar.gz
Size 136.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0a0a723c69412904f1fa54b30b43b1172f0ebe943946a539ee8a54d2ce98e403
BLAKE2b-256 checksum
How to use checksums
4f1df4a5829cbee872c8b7859a9728e7a401cc0bcea2493fab3239c670088b33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / agent_discogs-0.3.0-py3-none-any.whl

Download URL agent_discogs-0.3.0-py3-none-any.whl
Size 147.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
405b50fdede47f7ca05ae9331859fc6d92f5cd3c9915d185a6f67d9f518dd165
BLAKE2b-256 checksum
How to use checksums
f9acb59d98fd19a0afab1e5cfa1c3ebe0b2695f9e84a17a9b478c5b846562615
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page