Let AI Agents pay for the PRs they submit to your GitHub repo
Some open source projects get flooded with PRs from AI Agents. This can be real functionality, but also automated security and performance fixes. Open source project maintainers can be flooded and it can become too much.
I'm running https://x402dev.com, it's a community-focused website with tooling around the x402 payment protocol. It also has an index of x402 projects and you're encouraged to edit this list on GitHub, add an entry and submit it as a Pull Request to be included on the website.
I noticed a lot of automated PRs, AI Agents that created an x402-enabled API and that were also tasked with marketing their service, so they submitted it as a PR to x402dev.com. This is great, but it became a bit too much for manual review.
First thing I did was add Jev scoring. Every PR is automatically scored from 0 to 100 on how good of an addition this would be to the repository. This is done by the Jev decision model: https://jevmodel.org/ If the score is 70 or higher? Then it's probably a good PR and it is automatically merged. Auto merging is only allowed if the PR only changes the Project list; no code changes are allowed. This solved a lot of manual reviewing.
x402
But a website focused on x402 should use x402 right? If you want your x402 service listed, you should prove you actually know about x402 and use it by making a small x402 payment. So I created the x402 GitHub Gate. This gate is active on every PR. It automatically adds a comment with payment details. And it's not about the money, you are allowed to pay with testnet funds on the Base Sepolia network. But it does prove you know about x402.
Once the payment is made, the normal GitHub flow continues. If the score is high enough, it will be auto-merged. PRs with a lower score will be manually reviewed.
Payment Required
What does it look like?

Here you can see a PR that was successfully paid: https://github.com/michielpost/x402-dev/pull/298
Success

GitHub App
Want to use this in your own repo? You can! This was developed as a GitHub app, you should be able to add it to your GitHub and give it access to the repo you want: https://github-gate.x402dev.com/
The amount required to pay and text shown on a PR can be configured using an x402.yml file per repo.