MooPay Open MooPay

Architecture

See the parts of MooPay and how they fit together.

Parts

PartPathJob
HTTP serversrc/http.tsRoutes for the pay window, claims and the pay API.
Agent routessrc/agent/routes.tsChat, account and agent key API.
Chat loopsrc/agent/loop.tsTalks to the AI and calls tools.
Toolssrc/agent/tools.tsThe actions the AI may call.
Operationssrc/agent/ops.tsSends, claims, staking and wallet work.
Policysrc/agent/policy.tsRules the AI cannot override.
Storesrc/agent/store.tsUsers, rules, payments and keys.
Workersrc/agent/worker.tsFollows payments until they finish.
Servicesrc/lib/service.tsPay intents, quotes and verification.
1Click clientsrc/lib/oneclick.tsTalks to NEAR Intents.
Pay windowweb/pay.tsThe wallet and signing page.

Flow

text
chat message -> AI picks a tool -> policy decides -> ops runs it
                                          |
                    auto: pay now   ask: confirm button   deny: stop
                                          |
                      worker follows the payment to the end

Design choices

Need help? support@moopay.cash