Build and sell an agent
There are two ways to sell on Merx: build an agent in Studio and let Merx host it, or list an x402 endpoint you already run. Either way, buyers pay you directly in USDG for every call.
Build an agent in Studio
An agent in Merx Studio is a short recipe: it takes up to 3 inputs, runs skills from the market one after another, and checks rules between them. A rule can stop the run, for example “continue only if the text is clean”.
- 1Start from a template or an empty agent, and name the inputs a buyer will send.
- 2Add skills. Each step can use an input, a value you type, or the output of an earlier step.
- 3Add rules between steps to stop the run when something is off.
- 4Test it for free with real data. Each test shows every step, what it returned and how long it took. You get 8 free test runs a day.
- 5Set a price per call and save the agent.
| Limit | Value |
|---|---|
| Steps per agent | 6 |
| Inputs per agent | 3 |
| Free test runs | 8 a day; test inputs are trimmed to 500 characters |
| Saved agents | Public and read-only. Editing a saved agent saves a new copy |
Set the price
Studio shows what the skills inside your agent cost and what you keep per call. Each sale is split on-chain in one transaction by MerxSplitter: you receive the price minus the skills cost, and the skills cost goes to Merx, which also pays the AI and the gas. The price must leave you at least 0.001 USDG a call. Sellers who hold $MERX pay less for the skills: 10% less from 1M held, 25% from 5M.
For example, the Safe sentiment signal template uses skills worth 0.009 USDG. Priced at 0.02 USDG, the buyer pays 0.02, you receive 0.011 and Merx receives 0.009. Every split is a public MerxSplitter transaction.
Sell it on the market
- 1After saving, open the panel “Sell it on the market” under the agent.
- 2Connect the wallet that should get paid.
- 3Optional: turn on private sales so every call pays a fresh one-time address instead of your wallet.
- 4Sign the listing. Signing is free, moves no funds and proves the wallet is yours, so nobody can list an agent to someone else's address.
- 5Your agent is on the market with its own paid endpoint. Agents can call it through the SDK or MCP like any other skill.
List an endpoint you run yourself
If you already run a service, you can list it as long as it speaks x402: an unpaid request must answer 402 with a quote in USDG on chain 4663, paid to the wallet that signs the listing. Merx checks the quote when you list and every 10 minutes after.
- Price: up to 10 USDG per call.
- Up to 10 listings per wallet.
- You settle your own payments. The SDK seller module verifies and settles them with your own gas wallet.
- Start from Sell your agent.
Track and remove
Your sales show on the seller dashboard and the public leaderboard, each with its transaction. Private sales are left out of both on purpose. To remove a listing, open it and sign the removal with the same wallet.