FUNDING.yml generator — add a Sponsor button to your GitHub repo

Enter the usernames you have on funding platforms and up to four custom links, and the tool writes the .github/FUNDING.yml file that makes GitHub show a Sponsor button on your repository.

Live demo · real result from this tool

.github/FUNDING.yml

# Save as .github/FUNDING.yml — GitHub shows a Sponsor button on the repository. github: asharaoko_fi: asharaocustom: "https://www.paypal.me/asharao" 

Processed on your device — nothing is uploaded.

How to use the FUNDING.yml generator

  1. In GitHub Sponsors usernames, type your GitHub account name, or several names separated by commas. A leading @ is removed.
  2. Fill in any platforms you use: Patreon username, Open Collective slug, Ko-fi username, Liberapay username, Buy Me a Coffee username, Polar username, Tidelift package (as platform/package), thanks.dev (as u/gh/USERNAME), IssueHunt username or LFX Mentorship project.
  3. Put other links, such as a PayPal.me page, in Custom URLs (up to 4), one per line.
  4. Copy the YAML or download it, and save it as .github/FUNDING.yml.

What it does and when to use it

Open-source maintainers often have a donation page that visitors never find. A FUNDING.yml file adds a Sponsor button to the repository header, and the dialog lists every platform in the file. It costs nothing, takes a minute, and works whether or not you use GitHub Sponsors itself.

Mention the same links in your project’s documentation too: the README generator has room for them. If people should know how to help with code rather than money, add a guide from the CONTRIBUTING.md generator; the license generator covers the remaining file a public project needs.

How it works

Empty fields are skipped. One GitHub name is written as a plain value and several as a YAML list. Values that YAML could misread, such as URLs with a colon, are wrapped in double quotes. More than four custom URLs are cut back to four with a warning. If every field is empty, the tool says “Add at least one platform.”

The key names (ko_fi, open_collective, buy_me_a_coffee and so on) are the ones listed in GitHub’s sponsor button documentation.

Worked examples

The sample values:

github: asharao
ko_fi: asharao
custom: "https://www.paypal.me/asharao"

Two maintainers. GitHub asha, ravi, other fields cleared, gives github: [asha, ravi].

No GitHub Sponsors. Patreon teatools, Open Collective tea-tools and Tidelift npm/tea-tools give three lines in that order, ending with tidelift: npm/tea-tools.

Too many links. Five custom URLs produce a list of the first four and the warning “GitHub accepts up to four custom URLs; extra ones are ignored.”

Limits and tips

  • The tool does not check that the accounts exist. Click each link in the Sponsor dialog after you commit.
  • GitHub Sponsors names must belong to accounts that have joined the program, or that entry will not work.
  • The file only adds links. Payments, tiers and tax forms are handled on each platform.

Frequently asked questions

Where does the file go?
Save it as FUNDING.yml inside the .github folder of the repository and commit it to the default branch. The Sponsor button appears near the top of the repository page once the file is there.
Do I need a GitHub Sponsors account to use this?
No. You can leave the GitHub field empty and list only Patreon, Ko-fi, a PayPal link or another platform. Each one appears as a link in the Sponsor dialog.
Can I list several GitHub accounts?
Yes, separated by commas. GitHub accepts one organisation and up to four sponsored developers in the github key; the tool warns when you enter more than five names.
Should I write my username or a full profile link?
For the named platforms, enter only the username or slug, without the website address. Full addresses belong in Custom URLs.
Can I add a sponsor button to every repository at once?
GitHub can show a default FUNDING.yml from a public repository named .github in your account or organisation, for repositories that have no file of their own. Put this file in that repository's .github folder.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close