The problem

Bounty payments in open source are manual: a maintainer reviews a merge request, decides whether the work is good enough, and then separately arranges payment. Contributors wait days for a decision; maintainers burn hours on payment admin. There is no trusted bridge between "the AI verified the work" and "the money moved."

What Open-Studio does

Open-Studio closes that loop: an autonomous AI agent evaluates GitLab merge requests and, when the work passes verification, pays the contributor automatically through the PayPal Payouts API. The AI decides. PayPal pays.

How it works

  1. A contributor opens a GitLab merge request declaring a bounty: PayPal bounty: $25 to [email protected]
  2. A webhook picks up the MR; the agent (OpenCode with an LLM) reviews the diff, runs the tests, builds the app, and verifies it in a real Chromium browser via Playwright/CDP.
  3. The agent approves only if tests pass, the build succeeds, and the change actually solves the described problem. Its reasoning is posted to the MR for transparency.
  4. On approval, the orchestrator calls the PayPal Payouts API (/v1/payments/payouts, OAuth2 client-credentials) and sends the payment to the contributor's PayPal email.
  5. Every step lands as an MR note: agent report, verification status, payout batch id — a full audit trail you can inspect after the fact.

PayPal integration

  • Payouts API for sending bounty payments (sandbox and live environments)
  • OAuth2 client-credentials authentication
  • Dry-run mode for testing without moving money
  • Idempotent sender_batch_id per MR, so a retried webhook can never pay twice

Autonomy levels

  • assisted — the agent reports, a human approves, payout is held
  • supervised — the agent approves after verification, payout is sent
  • hands-off — the agent approves, merges, and pays automatically

Run it

docker compose up -d --build then open http://localhost:3000 Env vars: GITLAB_TOKEN, GITLAB_WEBHOOK_SECRET, PAYPAL_CLIENT_ID, PAYPAL_CLIENT_SECRET, PAYPAL_ENV=sandbox

Stack

Node.js orchestrator, React + Monaco + xterm.js UI, GitLab webhooks/API, Docker sandboxed workspace, Playwright browser verification, PayPal Payouts API, OpenCode AI agent.

Credits

Open-Studio was designed and directed by the author. An AI coding agent (OpenCode, LLM-driven) assisted with parts of the implementation under the author's direction and review.

Built With

Share this project:

Updates

Submission history