build-monetized-app
Build a monetized app on Eliza Cloud
Use this skill when you need to build an app that takes a markup on every chat or inference call and credits the earnings back to your owner. Eliza Cloud already supports app registration, per-app API keys, container deploys, the appId-based auth and redirect flow, the affiliate-header revenue path, and creator-monetization plumbing — you do not need to invent any of these.
Read references/sdk-flow.md for the 6-step build flow with a self-contained code example. External references (all public):
- Working chat-app:
elizaOS/cloud-mini-apps/apps/edad-chat— copyable end-to-end implementation. Read itsserver.tsandapi/proxy.tsfor the canonical chat-forwarder shape using@elizaos/cloud-sdk. - SDK reference:
@elizaos/cloud-sdkREADME — typed methods + helpers + auth. - Human-readable recipe:
docs/building-a-monetized-app.md— same loop, narrative form, with the schema fields explained.
The survival-economics loop
A Milady-style agent running in an Eliza Cloud container costs ~$0.67/day at the default tier (256 MB CPU + 512 MB RAM). When the org's credit balance and the owner's redeemable earnings both hit zero, the container is stopped after a 48-hour grace window. The container-billing cron pulls earnings before credits, so an app that earns more than its hosting costs keeps the agent alive indefinitely. See references/survival-economics.md for the exact accounting (redeemable_earnings_ledger, credit_transactions, the cron at app/api/cron/container-billing/route.ts).
This is why the skill exists: making money is how the agent stays online.