Repository navigation
Backlog
Labels
Description
/reward 100
Add a small, runnable example that lets a CrewAI agent check an x402 paid endpoint before anything pays for it.
What it should do
- A CrewAI custom tool (Python) that runs
npx -y @agent402-dev/pay-server check <url> --json
and returns the JSON to the agent (fieldsfixes,findings, amounts). One request to the endpoint, no payment header, nothing signed or paid, no key read. - The agent's instructions say: do not pay when
fixes > 0. - Refuse non-https URLs before running the check (the CLI refuses too; the tool should not even start it).
Where
examples/crewai-prepay-check/: README.md, main.py (or tool.py + main.py), requirements.txt with pinned versions.
Done when
python main.py https://<a live x402 endpoint>prints the agent's answer with the price andfixes: 0, and against a local server that answers a broken 402 the agent says it will not pay (a 20-line local server in the example is fine).- README: install, run, what the tool returns, one line that nothing is paid. Node 18+ is needed for
npx. - No wallet, key, RPC or paid API key needed to run it (an LLM key for CrewAI is fine; say which model you used).
Bounty rules
- Paid only for a pull request that is merged into this repository. Partial work or closed PRs are not paid.
- Comment
/trybefore you start. If two people work on it, the first PR that meets every item above and is merged gets the bounty. - Not eligible: maintainers of this repository and people related to them.
- Out of scope for any bounty: changes to payment code, payment rules or limits, keys, wallets or signing. A PR that touches them is not merged under this bounty.
- Open your PR with
/claim #<this issue number>in the description. - Payment is arranged directly with you after the merge (Opire does not pay automatically). The amount and the date it was paid are posted in this issue.
- AI tools are fine; you must have run the example yourself and say which versions you used.
This repo is using Opire - what does it mean? 👇
💵 Everyone can add rewards for this issue commenting
/reward 100 (replace 100 with the amount).🕵️♂️ If someone starts working on this issue to earn the rewards, they can comment
/try to let everyone know!🙌 And when they open the PR, they can comment
/claim #2 either in the PR description or in a PR's comment.🪙 Also, everyone can tip any user commenting
/tip 20 @agent402-dev (replace 20 with the amount, and @agent402-dev with the user to tip).📖 If you want to learn more, check out our documentation.
Activity
golubmihail03-dot commentedon Dec 5, 2026
/try
Check if you're the only one trying 👇
You're the first one to try to solve this issue, go for it! 😉
ArtyormSatori commentedon Dec 5, 2026
/try
Check if you're the only one trying 👇
There are already people trying to solve this issue. You're welcome to tackle it independently, but we encourage you to reach out to the contributors that are trying to solve the issue if you'd like to collaborate with them.
The other contributor is: @golubmihail03-dot.
princeofchaos commentedon Dec 5, 2026
/try
Check if you're the only one trying 👇
There are already people trying to solve this issue. You're welcome to tackle it independently, but we encourage you to reach out to the contributors that are trying to solve the issue if you'd like to collaborate with them.
The other contributors are: @ArtyormSatori @golubmihail03-dot.
mugi-works-2026 commentedon Dec 5, 2026
/try
Check if you're the only one trying 👇
There are already people trying to solve this issue. You're welcome to tackle it independently, but we encourage you to reach out to the contributors that are trying to solve the issue if you'd like to collaborate with them.
The other contributors are: @ArtyormSatori @princeofchaos @golubmihail03-dot.
IlhamEl777 commentedon Dec 5, 2026
/try
Check if you're the only one trying 👇
There are already people trying to solve this issue. You're welcome to tackle it independently, but we encourage you to reach out to the contributors that are trying to solve the issue if you'd like to collaborate with them.
The other contributors are: @ArtyormSatori @princeofchaos @mugi-works-2026 @golubmihail03-dot.
robin09110-collab commentedon Dec 5, 2026
/try
Check if you're the only one trying 👇
There are already people trying to solve this issue. You're welcome to tackle it independently, but we encourage you to reach out to the contributors that are trying to solve the issue if you'd like to collaborate with them.
The other contributors are: @ArtyormSatori @princeofchaos @mugi-works-2026 @golubmihail03-dot @IlhamEl777.
opirebot commentedon Dec 5, 2026
🎉 The user @robin09110-collab has claimed all rewards for this issue.
🔍 You can see the PR here.
💸 @agent402-dev
lonely358 commentedon Dec 5, 2026
/try
Starting on this. Plan: add
examples/crewai-prepay-check/with a CrewAI custom tool (Python) that runsnpx -y @agent402-dev/pay-server check <url> --json, refuses non-https URLs before running the check, and agent instructions to not pay whenfixes > 0. Will verify withpython main.pyagainst a live x402 endpoint (expecting price +fixes: 0) and against a local server answering a broken 402 (agent refuses to pay), plus README with install/run steps and pinned requirements.Check if you're the only one trying 👇
There are already people trying to solve this issue. You're welcome to tackle it independently, but we encourage you to reach out to the contributors that are trying to solve the issue if you'd like to collaborate with them.
The other contributors are: @ArtyormSatori @princeofchaos @mugi-works-2026 @golubmihail03-dot @IlhamEl777 @robin09110-collab.
pythonyx135793 commentedon Dec 5, 2026
/try
Check if you're the only one trying 👇
There are already people trying to solve this issue. You're welcome to tackle it independently, but we encourage you to reach out to the contributors that are trying to solve the issue if you'd like to collaborate with them.
The other contributors are: @ArtyormSatori @princeofchaos @mugi-works-2026 @golubmihail03-dot @IlhamEl777 @robin09110-collab @lonely358.
opirebot commentedon Dec 5, 2026
🎉 The user @IlhamEl777 has claimed all rewards for this issue.
🔍 You can see the PR here.
💸 @agent402-dev
rumangsanya commentedon Dec 5, 2026
/try
Check if you're the only one trying 👇
There are already people trying to solve this issue. You're welcome to tackle it independently, but we encourage you to reach out to the contributors that are trying to solve the issue if you'd like to collaborate with them.
The other contributors are: @ArtyormSatori @pythonyx135793 @princeofchaos @mugi-works-2026 @golubmihail03-dot @IlhamEl777 @robin09110-collab @lonely358 @TechCodinz.
opirebot commentedon Dec 5, 2026
🎉 The user @TechCodinz has claimed all rewards for this issue.
🔍 You can see the PR here.
💸 @agent402-dev
opirebot commentedon Dec 5, 2026
🎉 The user @Vee-Git has claimed all rewards for this issue.
🔍 You can see the PR here.
💸 @agent402-dev
opirebot commentedon Dec 5, 2026
🎉 The user @rumangsanya has claimed all rewards for this issue.
🔍 You can see the PR here.
💸 @agent402-dev
riccardocens-code commentedon Dec 5, 2026
/try
I'll add
examples/crewai-prepay-check/: a CrewAI tool that runsnpx -y @agent402-dev/pay-server check <url> --json(non-https refused before the CLI starts), an agent that won't pay whenfixes > 0, a local broken-402 server, and a README. I'll run it against a live endpoint and the local server.Check if you're the only one trying 👇
There are already people trying to solve this issue. You're welcome to tackle it independently, but we encourage you to reach out to the contributors that are trying to solve the issue if you'd like to collaborate with them.
The other contributors are: @ArtyormSatori @Vee-Git @pythonyx135793 @princeofchaos @mugi-works-2026 @golubmihail03-dot @IlhamEl777 @robin09110-collab @lonely358 @TechCodinz @rumangsanya.
opirebot commentedon Dec 5, 2026
🎉 The user @riccardocens-code has claimed all rewards for this issue.
🔍 You can see the PR here.
💸 @agent402-dev
opirebot commentedon Dec 5, 2026
🎉 The user @princeofchaos has claimed all rewards for this issue.
🔍 You can see the PR here.
💸 @agent402-dev