Gumroad's seller API as an agent-ready CLI and MCP server.
This tool wraps Gumroad's documented OAuth API for products, files, covers, variants, offer codes, custom fields, resource subscriptions, sales, subscribers, licenses, payouts, tax forms, and earnings. It also adds the Printing Press local sync/search/analytics layer so agents can answer seller questions from a consistent local snapshot instead of repeatedly walking paginated endpoints.
Created by @bheemreddy181 (Bheem Reddy).
The recommended path installs both the gumroad-pp-cli binary and the pp-gumroad agent skill (Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, and other agents supported by the upstream skills CLI) in one shot:
npx -y @mvanhorn/printing-press-library install gumroadFor CLI only (no skill):
npx -y @mvanhorn/printing-press-library install gumroad --cli-onlyFor skill only — installs the skill into the same agents as the default command above, but skips the CLI binary (use this to update or reinstall just the skill):
npx -y @mvanhorn/printing-press-library install gumroad --skill-onlyTo constrain the skill install to one or more specific agents (repeatable — agent names match the skills CLI):
npx -y @mvanhorn/printing-press-library install gumroad --agent claude-code
npx -y @mvanhorn/printing-press-library install gumroad --agent claude-code --agent codexIf npx isn't available (no Node, offline), install the CLI directly via Go (requires Go 1.26.4 or newer):
go install github.com/mvanhorn/printing-press-library/library/commerce/gumroad/cmd/gumroad-pp-cli@latestThis installs the CLI only — no skill.
Download a pre-built binary for your platform from the latest release. On macOS, clear the Gatekeeper quarantine: xattr -d com.apple.quarantine <binary>. On Unix, mark it executable: chmod +x <binary>.
Install the CLI binary first. The installer writes binaries to a per-user managed bin directory by default: $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows.
npx -y @mvanhorn/printing-press-library install gumroad --cli-onlyThen install the focused Hermes skill.
From the Hermes CLI:
hermes skills install mvanhorn/printing-press-library/cli-skills/pp-gumroad --forceInside a Hermes chat session:
/skills install mvanhorn/printing-press-library/cli-skills/pp-gumroad --forceRestart the Hermes session or gateway if the newly installed skill is not visible immediately.
Install both the CLI binary and the focused OpenClaw skill. The installer defaults binaries to a per-user bin directory ($HOME/.local/bin on macOS/Linux, %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows):
npx -y @mvanhorn/printing-press-library install gumroad --agent openclawRestart the OpenClaw session or gateway if the newly installed skill is not visible immediately.
This CLI ships an MCPB bundle — Claude Desktop's standard format for one-click MCP extension installs (no JSON config required).
To install:
- Download the
.mcpbfor your platform from the latest release. - Double-click the
.mcpbfile. Claude Desktop opens and walks you through the install. - Fill in
GUMROAD_ACCESS_TOKENwhen Claude Desktop prompts you.
Requires Claude Desktop 1.0.0 or later. Pre-built bundles ship for macOS Apple Silicon (darwin-arm64) and Windows (amd64, arm64); for other platforms, use the manual config below.
Manual JSON config (advanced)
If you can't use the MCPB bundle (older Claude Desktop, unsupported platform), install the MCP binary and configure it manually.
Install the MCP binary from this CLI's published public-library entry or pre-built release.
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"gumroad": {
"command": "gumroad-pp-mcp",
"env": {
"GUMROAD_ACCESS_TOKEN": "<your-key>"
}
}
}
}Create a Gumroad OAuth application, authorize it with the scopes needed for your workflow, and provide the resulting access token as GUMROAD_ACCESS_TOKEN. The MCP bundle exposes this as a sensitive user configuration value.
# Confirm the token is present and the API is reachable.
gumroad-pp-cli doctor
# List products in agent-friendly JSON.
gumroad-pp-cli products list --agent
# Sync seller data for local search and analytics.
gumroad-pp-cli sync --resources products,sales,subscribers,payouts --latest-only --json
These capabilities aren't available in any other tool for this API.
-
sync --resources products,sales,subscribers,payouts --latest-only --json— Refresh a local SQLite snapshot of the seller-facing Gumroad resources that agents inspect most often.Use this before research or reporting tasks so later searches and analytics are grounded in one consistent seller snapshot.
gumroad-pp-cli sync --resources products,sales,subscribers,payouts --latest-only --json
-
search— Search locally synced products, sales, subscribers, payouts, and tax records through one command.Use this when the user remembers a buyer, product, license, or payout clue but not the exact Gumroad object ID.
gumroad-pp-cli search "annual plan" --data-source local --json --limit 20
-
analytics— Group and count synced Gumroad records locally for fast summaries without additional API traffic.Use this for lightweight revenue, subscriber, product, and payout triage after a sync.
gumroad-pp-cli analytics --type sales --group-by product_id --limit 10 --json
-
tail— Poll selected Gumroad resources and emit NDJSON changes for scripts or agent monitors.Use this for one-off checks after a launch, refund, payout, or product update.
gumroad-pp-cli tail --resource sales --interval 30s --json
Run gumroad-pp-cli --help for the full command reference and flag list.
Manage earnings
gumroad-pp-cli earnings get- Retrieve an annual earnings breakdown for the authenticated user. Requires view_tax_data scope.
Manage files
gumroad-pp-cli files abort- Cancel a multipart upload started by /files/presign. Requires edit_products scope.gumroad-pp-cli files complete- Finalize a multipart upload started by /files/presign. Requires edit_products scope.gumroad-pp-cli files presign- Start a multipart upload and return presigned URLs for each part. Requires edit_products scope.
Manage licenses
gumroad-pp-cli licenses decrement-uses-count- Decrement the uses count of a license. Requires edit_products scope.gumroad-pp-cli licenses disable- Disable a license. Requires edit_products scope.gumroad-pp-cli licenses enable- Enable a license. Requires edit_products scope.gumroad-pp-cli licenses rotate- Rotate a license key. The old key will no longer be valid. Requires edit_products scope.gumroad-pp-cli licenses verify- Verify a license key.
Manage payouts
gumroad-pp-cli payouts get- Retrieve details of a payout. Requires view_payouts scope.gumroad-pp-cli payouts get-upcoming- Retrieve upcoming payouts. Requires view_payouts scope.gumroad-pp-cli payouts list- Retrieve payouts for the authenticated user. Requires view_payouts scope.
Manage products
gumroad-pp-cli products create- Create a new product as a draft. Requires edit_products or account scope.gumroad-pp-cli products delete- Permanently delete a product.gumroad-pp-cli products get- Retrieve details of a product.gumroad-pp-cli products list- Retrieve all existing products for the authenticated user.gumroad-pp-cli products update- Update an existing product. Collection fields such as files, tags, and rich_content replace the full collection.
Manage resource subscriptions
gumroad-pp-cli resource-subscriptions create- Subscribe to a resource webhook. Requires view_sales scope.gumroad-pp-cli resource-subscriptions delete- Unsubscribe from a resource.gumroad-pp-cli resource-subscriptions list- Show active subscriptions for the input resource. Requires view_sales scope.
Manage sales
gumroad-pp-cli sales get- Retrieve details of a sale. Requires view_sales scope.gumroad-pp-cli sales list- Retrieve successful sales by the authenticated user. Requires view_sales scope.
Manage subscribers
gumroad-pp-cli subscribers get- Retrieve details of a subscriber. Requires view_sales scope.
Manage tax forms
gumroad-pp-cli tax-forms list- Retrieve 1099 tax forms for the authenticated user. Requires view_tax_data scope.
Manage user
gumroad-pp-cli user get- Retrieve the authenticated user's data.
# Human-readable table (default in terminal, JSON when piped)
gumroad-pp-cli earnings --year 42
# JSON for scripting and agents
gumroad-pp-cli earnings --year 42 --json
# Filter to specific fields
gumroad-pp-cli earnings --year 42 --json --select id,name,status
# Dry run — show the request without sending
gumroad-pp-cli earnings --year 42 --dry-run
# Agent mode — JSON + compact + no prompts in one flag
gumroad-pp-cli earnings --year 42 --agentThis CLI is designed for AI agent consumption:
- Non-interactive - never prompts, every input is a flag
- Pipeable -
--jsonoutput to stdout, errors to stderr - Filterable -
--select id,namereturns only fields you need - Previewable -
--dry-runshows the request without sending - Explicit retries - add
--idempotentto create retries and--ignore-missingto delete retries when a no-op success is acceptable - Confirmable -
--yesfor explicit confirmation of destructive actions - Piped input - write commands can accept structured input when their help lists
--stdin - Offline-friendly - sync/search commands can use the local SQLite store when available
- Agent-safe by default - no colors or formatting unless
--human-friendlyis set
Exit codes: 0 success, 2 usage error, 3 not found, 4 auth error, 5 API error, 7 rate limited, 10 config error.
gumroad-pp-cli doctorVerifies configuration, credentials, and connectivity to the API.
Config file: ~/.config/gumroad-pp-cli/config.toml
Static request headers can be configured under headers; per-command header overrides take precedence.
Environment variables:
| Name | Kind | Required | Description |
|---|---|---|---|
GUMROAD_ACCESS_TOKEN |
per_call | Yes | Set to your API credential. |
Authentication errors (exit code 4)
- Run
gumroad-pp-cli doctorto check credentials - Verify the environment variable is set:
echo $GUMROAD_ACCESS_TOKENNot found errors (exit code 3) - Check the resource ID is correct
- Run the
listcommand to see available items
- Gumroad returns a scope error. — Re-authorize the OAuth application with the endpoint scope shown in the command help, such as view_sales, edit_sales, edit_products, view_payouts, or view_tax_data.
- File upload completion fails after a retry. — Start a new /files/presign flow; Gumroad upload IDs are one-use after /files/complete.
This CLI was built by studying these projects and resources:
- Gumroad API documentation — documentation
- Gumroad open-source app — Ruby/TypeScript
Generated by CLI Printing Press