DEV Community

Yaqing2023
Yaqing2023

Posted on

Introducing MoltsPay Plugin for ElizaOS โ€” Give Your AI Agent a Wallet ๐Ÿ’ณ

What if your AI agent could pay for services on its own? Not through your credit card, not via API keys with usage limits โ€” but with its own wallet, its own spending limits, and complete autonomy.

Today we're releasing moltspay-eliza-plugin, a plugin that brings gasless crypto payments to ElizaOS agents.

What is ElizaOS?

ElizaOS is an open-source framework for building autonomous AI agents. Think of it as the operating system for AI personalities โ€” agents that can chat, remember context, and take actions.

But until now, these agents couldn't pay for things.

What is MoltsPay?

MoltsPay is payment infrastructure for AI agents using the x402 protocol. The key innovation: completely gasless payments. Your agent signs transactions, but never pays gas fees. A facilitator handles the on-chain execution.

The Plugin: 8 Actions, Fully Bilingual ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡จ๐Ÿ‡ณ

bun add moltspay-eliza-plugin
Enter fullscreen mode Exit fullscreen mode

Add to your character:

plugins: [
  '@elizaos/plugin-sql',
  'moltspay-eliza-plugin',
],
Enter fullscreen mode Exit fullscreen mode

That's it. Your agent now has a wallet.

Actions

Action What it does
๐Ÿ” MOLTSPAY_INIT Create a new wallet
๐Ÿ’ฐ MOLTSPAY_STATUS Check balance
โš™๏ธ MOLTSPAY_CONFIG Set spending limits
๐Ÿ’ต MOLTSPAY_FUND Fund via Coinbase Pay
๐Ÿšฐ MOLTSPAY_FAUCET Get testnet USDC
๐Ÿ›’ MOLTSPAY_SERVICES Browse marketplace
๐Ÿ’ณ MOLTSPAY_PAY Pay for a service
๐Ÿ“œ MOLTSPAY_LIST Transaction history

Natural Language, Both Languages

User: Generate a video of a cat dancing in the rain
Agent: ๐Ÿ” Finding video service...
       ๐Ÿ’ณ Paying $0.99 USDC...
       โœ… Done! Here's your video: https://...
Enter fullscreen mode Exit fullscreen mode
User: ๅธฎๆˆ‘ไนฐไธชๆ–‡ๅญ—่ฝฌ่ง†้ข‘๏ผŒ็”Ÿๆˆไธ€ๅช็Œซๅœจ่ทณ่ˆž
Agent: ๐Ÿ” ๆœ็ดขๆœๅŠกไธญ...
       ๐Ÿ’ณ ๆ”ฏไป˜ $0.99 USDC...
       โœ… ๅฎŒๆˆ๏ผ่ง†้ข‘้“พๆŽฅ๏ผšhttps://...
Enter fullscreen mode Exit fullscreen mode

Why Gasless Matters

Traditional crypto payments require:

  • ETH/MATIC for gas
  • Complex transaction signing
  • Failed transactions = lost gas

With MoltsPay x402:

  • Zero gas โ€” facilitator pays
  • Pay-for-success โ€” payment only settles if service delivers
  • Simple signing โ€” agent just signs, doesn't broadcast

Safety: Built-in Spending Limits

Giving an AI a wallet sounds scary. That's why every wallet has:

  • Per-transaction limit (default: $2)
  • Daily limit (default: $10)
  • Local key storage (never exposed in env/logs)
User: Set my daily limit to $50
Agent: โœ… Daily limit updated to $50
Enter fullscreen mode Exit fullscreen mode

Try It: Testnet in 30 Seconds

User: Get testnet USDC
Agent: ๐Ÿšฐ Requesting from faucet...
       โœ… Received 1 USDC on Base Sepolia!

User: What services are available?
Agent: ๐Ÿ›’ Popular Services:
       1. Text to Video - $0.99 | Zen7
       2. Image to Video - $1.49 | Zen7

User: Pay for Text to Video, a sunset over the ocean
Agent: ๐Ÿ’ณ Processing... โœ… Payment successful!
       ๐ŸŽฌ https://juai8.com/zen7/videos/xxx.mp4
Enter fullscreen mode Exit fullscreen mode

Links

What's Next?

We're working on:

  • More service providers on the marketplace
  • Multi-agent transactions (Agent A pays Agent B)
  • PR to ElizaOS official repo

Want to contribute? The plugin is open source. PRs welcome!


Built for the agentic commerce era. ๐Ÿค–๐Ÿ’ฐ

Top comments (0)