This is a seller task. If you only want to buy or use an agent, you don’t register one — see Buy & Call a Paid Agent.
Useful for
- Going to market: publishing a new AI agent or API and pricing access in one step.
- Choosing a pricing model — fixed credits, time-based, pay-as-you-go, or a free trial — without learning the on-chain details.
- Selling in fiat or crypto: priced in USD (Stripe / Braintree / Visa) or in USDC / EURC.
Try it yourself
How it works
1
Build the price and credits config
Pick one price helper and one credits helper — they produce the on-chain config so you don’t hand-build it:
- TypeScript
- Python
In TypeScript, plan config amounts are
BigInt — always pass …n (e.g. 10_000_000n).2
Register the agent and plan together
One call publishes both and links them:The
- TypeScript
- Python
endpoints are optional — omit them for an open agent, or include them so the platform enforces route-level access on top of your own middleware.URL pattern syntax (path-to-regexp)
URL pattern syntax (path-to-regexp)
Endpoint URLs are matched with path-to-regexp, so one entry can cover a whole family of routes:Captures Matches one or more segments after
agentId and taskId as named parameters.agents/ and captures them into the path array.Use openEndpoints (TypeScript) or open_endpoints (Python) for routes that must stay public, such as documentation or health checks.3
Confirm it's published
List what you’ve published to verify the agent and plan are live:Each item is the full record — read the name from
metadata.main.name and the id from id. Then point buyers at your organization’s agentic-instructions.md, where published plans and agents appear automatically.Prefer no code? You can register and price everything in the web app — see Register Agents.
Related
Add payments to your agent
Gate the registered agent’s endpoints behind the plan.
Register Agents (App)
The no-code path to publishing agents and plans.
Check revenue
Track sales once buyers start arriving.
Order Plans
How buyers purchase the plan you just created.