Real generated judging app: the judging sandbox was destroyed after the event. The generated source and verification record are still here. The interactive /demo is a scripted replay.
Set the bounty. Get the build. An AI agent that writes your app, load-tests it in a CreateOS sandbox, fixes its own code, and only then buys the stack through Stripe Projects.
BOUNTY-BOX-VID-github.mp4
Shipping even a small app means picking a database, a host, a cache and an email provider, comparing a dozen pricing pages, and putting a card down on each one before you know if any of it works.
- Set the bounty. Describe the app and a monthly budget, e.g. "A music app with playlists and play counts. Handle 1,000 listeners. Under $30 a month."
- Draft a stack. The agent picks real services from the Stripe Projects catalog and prices them against the budget.
- Write and run. It writes the app and its own load test, then runs both in an isolated CreateOS Sandbox with egress locked to an allowlist.
- Fix itself. When the test fails or the cost runs over, it reads the logs, rewrites the code or swaps a service, forks the sandbox to try fixes in parallel, and runs again.
- Approve. You see the passing stack, the monthly total and the test evidence, and can open the live sandbox URL before paying anything.
- Buy and ship. One approval runs
stripe projects addfor exactly the stack that passed and deploys it.
Hardware mode: for physical builds, the same loop sources parts, compares landed cost and delivery date, and orders the kit.
Fair marketplace: providers can list at a discount they choose, but they are only recommended when they beat the incumbents on the same sandbox test and on price. With no partner win, Bounty-Box uses the standard Stripe Projects catalog.
| Requirement | How Bounty-Box meets it |
|---|---|
| Agent writes and runs its own code | Generates the app and a load test, runs both, and repairs its code until the test passes |
| Stack set up with Stripe Projects | Services come from the Stripe Projects catalog and are provisioned with stripe projects add after approval |
| Code runs in a CreateOS Sandbox | Every generated build and load test runs in a CreateOS sandbox (devbox:1) with an egress allowlist, a live preview URL, fork for parallel fixes, and pause while awaiting approval |
| Demo video | web/public/media/bounty-box-demo.mp4 |
| Public repo | You are here |
The API persists runs and queues work; workers generate, benchmark, and ship approved artifacts.
flowchart LR
Client[CLI or HTTP client] --> API[Run and approval API]
API --> Store[(Run state and event log)]
API --> Queue[Serialized job queue]
Queue --> Worker[Run worker]
Worker --> Loop[Bounded orchestrator]
Loop --> Catalog[Catalog and cost estimator]
Loop --> Generator[Code generator]
Generator --> Model[Model provider]
Generator --> Artifacts[(Versioned source artifacts)]
Loop --> Runner[CreateOS adapter]
Runner --> Sandbox[Isolated application and diagnostic load script]
Sandbox --> Trial[Approved trial services]
Worker --> Harness[Independent benchmark harness]
Harness --> Sandbox
Loop --> Store
API --> Gate[Proposal-specific approval gate]
Gate --> Shipping[Provision and deployment worker]
Shipping --> Stripe[Stripe Projects]
Shipping --> Host[Selected deployment provider]
Shipping --> Verify[Deployed application health check]
Verify --> Store
The main success and repair path, with provisioning gated by proposal-specific approval.
stateDiagram-v2
[*] --> queued
queued --> planning
planning --> generating
generating --> testing
testing --> repairing: Failed criteria and attempts remain
repairing --> generating: Revised code or different stack
testing --> awaiting_approval: Qualified proposal persisted
awaiting_approval --> provisioning: Matching proposal approved
provisioning --> deployed: Deployment health check passes
deployed --> [*]
Shipping records provider receipts and verifies the deployed artifact. Unknown outcomes require reconciliation.
sequenceDiagram
participant U as Operator
participant A as API
participant D as SQLite and artifacts
participant W as Shipping worker
participant S as Stripe Projects
participant C as CreateOS deployment
U->>A: Approve current proposal ID
A->>D: Validate digest, expiry and price, then reserve unique job atomically
A-->>U: Accepted snapshot
W->>D: Claim job and persist provisioning intent
W->>S: Provision selected services
S-->>W: Resource IDs and receipts
W->>D: Persist receipts
W->>C: Configure runtime and upload approved artifact
C-->>W: Deployment ID and URL
W->>C: Check digest, health and signup persistence
W->>D: Persist deployed URL and evidence
Note over W,D: Unknown outcome stops automatic retry and requires reconciliation
Attempts and proposals bind immutable artifacts; approvals authorize recorded shipping operations.
erDiagram
RUN ||--o{ RUN_EVENT : records
RUN ||--o{ JOB : queues
RUN ||--o{ ATTEMPT : measures
ARTIFACT ||--o{ ATTEMPT : executes
ATTEMPT ||--o{ PROPOSAL : qualifies
ARTIFACT ||--o{ PROPOSAL : binds
PROPOSAL ||--o| APPROVAL : authorizes
APPROVAL ||--o{ SHIPPING_OPERATION : permits
SHIPPING_OPERATION ||--o{ PROVIDER_RECEIPT : records
Diagram sources live in docs/diagrams/. Editable board: Miro.
Requirements: Node 22, the Stripe CLI with the Projects plugin, a CreateOS API key, and the Codex CLI signed in.
# backend
npm install
cp .env.example .env.backend.local # set BOUNTYBOX_API_TOKEN (32+ chars) and BOUNTYBOX_LIVE_ENABLED=true
stripe projects env --pull # pulls provider credentials
npm run dev # API on 127.0.0.1:3000
npm run worker # run worker (second terminal)
# web app
cd web && npm install && npm run devThe web dev server proxies /api to 127.0.0.1:3000 and adds the token from .env.backend.local. It opens the scripted demo at /app?mode=demo. The Live option appears only when /api/health reports liveReady: true, which needs the API, the worker and the settings above. The hosted site works the same way: bounty-box.com/demo stays scripted unless a hosted worker is running (runbook). npm test runs the backend, orchestrator, benchmark and provider checks.
- Stripe Projects for the service catalog, provisioning and billing
- CreateOS Sandbox (
@nodeops-createos/sandbox) for isolated runs, egress control, live URLs, fork and pause - TypeScript / Node 22 backend: run API, job queue, orchestrator, benchmark harness
- React + Vite + Tailwind web app
- Hardware mode: CadQuery / OpenSCAD, three.js, KiCad, eBay Browse API
| Mohsen Sarrafan | @mohsensc |
| Stefan Ilas | @StefanIlas1 |
Built in one day at Build Agents That Run Code: CreateOS × Stripe Projects, October 17, 2026. Thanks to CreateOS and Stripe for the tools, credits and a great event.