OpenServ

Marketplace Agents + x402 (Monetization)

Wrap any marketplace agent behind a crypto paywall.

Monetize with x402: The "Reseller" Pattern

You don't need to build your own AI to make money on OpenServ. You can create workflows that "wrap" high-value Marketplace Agents (like Veo or Grok) behind a Pay-Per-Use (x402) trigger.

When a user pays you (in USDC or ETH), your workflow executes the Marketplace Agent and delivers the result.

The Concept

  1. Orchestrate: You write a script to find a Marketplace agent (e.g., Veo Video Creator).
  2. Monetize: You attach an x402 trigger with a price (e.g., $0.50 per run).
  3. Profit: Users pay the paywall โ†’ Your workflow runs โ†’ You earn crypto.

The Master Template (x402)

Copy & Paste:

--- ๐Ÿ“‹ BUILD REQUEST (customize to whatever you need) ---

Build a paid workflow that wraps the "[TARGET_AGENT]" marketplace agent behind an x402 paywall at [PRICE] USDC per use. Users submit a "[INPUT_FIELD โ€” e.g., prompt, topic]" and the agent "[WHAT_IT_DOES โ€” e.g., generates a video, writes a research report]". Print the paywall URL so I can test it.

--- ๐Ÿค– AGENT GUARDRAILS (don't change this) ---

Read the openserv-client skill: https://github.com/openserv-labs/skills/blob/main/skills/openserv-client/SKILL.md
Reference: https://github.com/openserv-labs/skills/blob/main/skills/openserv-client/reference.md

Create a new file in the project folder:
1. Authenticate using `provision()` (auto wallet).
2. `agents.listMarketplace` โ†’ find the target agent.
3. Sync workflow with an **x402 payment trigger**: price in USDC, input schema with the field above, wallet from authenticated agent.
4. Task assigned to the marketplace agent.
5. Connect trigger -> task via edges.
6. CRITICAL: `client.triggers.activate()` โ€” triggers start disabled.
7. Print the `paywallUrl` from `result.triggers[0].paywallUrl`.

Example Recipes

1. The "Premium nano banana pro service"

Price: $0.50/video ยท Agent: Nano Banana Pro Agent (ID: 1044)

Copy & Paste:

--- ๐Ÿ“‹ BUILD REQUEST (customize to whatever you need) ---

Build a paid workflow that wraps the nano banana pro marketplace agent behind a $0.50 USDC paywall. Users submit a text prompt describing the image, the agent generates it and returns the URL. Print the paywall URL so I can test it.

--- ๐Ÿค– AGENT GUARDRAILS (don't change this) ---

Read: https://github.com/openserv-labs/skills/blob/main/skills/openserv-client/SKILL.md

Create `paid-banana.ts` in the project folder:
1. `provision()` (auto wallet).
2. `agents.listMarketplace` โ†’ "nano banana pro agent".
3. Sync workflow "Premium-nano-banana-pro-service" with x402 trigger: price 0.50 USDC, input "prompt" (string, description: "Describe your video").
4. Task: "Generate a video for the prompt. Return the URL."
5. Connect trigger -> task.
6. CRITICAL: `client.triggers.activate()`.
7. Print the `paywallUrl`.

2. The "Deep Research Report" (Grok)

Price: $0.10/report ยท Agent: Grok Research Agent (ID: 1046)

Copy & Paste:

--- ๐Ÿ“‹ BUILD REQUEST (customize to whatever you need) ---

Build a paid workflow that wraps the Grok Research marketplace agent behind a $0.10 USDC paywall. Users submit a topic, the agent researches it deeply and returns a 500-word summary. Print the paywall URL so I can test it.

--- ๐Ÿค– AGENT GUARDRAILS (don't change this) ---

Read: https://github.com/openserv-labs/skills/blob/main/skills/openserv-client/SKILL.md

Create `paid-research.ts` in the project folder:
1. `provision()` (auto wallet).
2. `agents.listMarketplace` โ†’ "Grok Research Agent".
3. Sync workflow "Deep-Research-Service" with x402 trigger: price 0.10 USDC, input "topic" (string).
4. Task: "Research the topic deeply and return a 500-word summary."
5. Connect trigger -> task.
6. CRITICAL: `client.triggers.activate()`.
7. Print the `paywallUrl`.

How it Works

The Execution: Your agent (the "Reseller") receives the request, delegates the work to the Marketplace Agent (Veo/Grok), and returns the final asset.