Money · Independent · 22 Oct 2026

opensyndicate/recoup

Open-source agent that recovers failed payments and failed subscription renewals. A deterministic dunning policy engine plus a Claude agent for the judgment calls. Gateway-agnostic (Razorpay, Stripe, or your own).

← Money
Recoup: failed payment recovery. Plans retry schedules and drafts customer notices.

In simple English

When a customer's credit card fails on your subscription site, you need to ask them for a new card without annoying them. This tool looks at the failed charge and tells you when to try again. It also writes the email or message to send to the person. It does not send the email or charge the card for you. You can run it for free on your own computer without any paid subscriptions.

What it is

Recoup is a Python library and command-line helper that groups failed payments by type and creates a schedule of retry attempts. It uses rules by default, with an optional artificial intelligence model (a computer program that generates text) to make the messages sound more natural.

What it is good for

Solo builders who run subscription software and want to win back failed payments without paying a monthly fee for a specialized billing tool.

Stars0
LicenceMIT
LatestNo tagged releasechecked 22 Oct 2026
Last code change2026-08-21
Written inPython
Setup effort
3 / 5
Payoff
4 / 5
Good
  • Runs offline without needing any paid artificial intelligence keys.
  • Works with multiple payment gateways as an input parser.
  • Lets you customize the retry schedule and rules easily.
Watch for
  • Requires Python knowledge to integrate into your website.
  • Does not actually send emails or move money.
  • Relies on you to build the code that connects it to your database.
Replaces

Manual checks of failed payment logs and writing dunning emails from scratch

Works well with

Stripe

Similar repositories
  • stripe/stripe-python2.1k stars

    The official library for Stripe, which handles charges and webhooks directly but lacks a built-in dunning planner.

  • dj-stripe/dj-stripe1.8k stars

    Syncs Stripe billing data into a Django database, whereas Recoup focuses purely on the retry and recovery decision logic.

Also reviewed on Repo Radar
  • hledgerorg/hledger4.8k stars

    Double-entry accounting over plain text files, with command-line, terminal, web and editor interfaces.

  • akaunting/akaunting10k stars

    Self-hosted invoicing and expense tracking, with the double-entry accounting sold separately as an add-on.

  • ledger/ledger6.1k stars

    Double-entry accounting from a plain text file, run from the command line, with no database of any kind.

Install
git clone https://github.com/opensyndicate/recoup.git
cd recoup
python3 -m venv .venv && source .venv/bin/activate
pip install -e .
recoup demo

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Sales & Customers › Customer Success & Feedback › Retention.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.