create-lemon-agent
v0.2.5
Published
Scaffold an AI agent that pays per API call with USDC via LemonCake — running in 90 seconds.
Downloads
67
Maintainers
Readme
🍋 create-lemon-agent
Scaffold an AI agent that pays per API call with USDC — running in 90 seconds.

npx create-lemon-agent my-agent
cd my-agent
npm install
cp .env.example .env # paste your LEMON_CAKE_PAY_TOKEN
npm start "東京の天気は?"Token scope: When issuing a Pay Token at lemoncake.xyz/dashboard, choose ALL services so the agent can discover and call any available API. A
SINGLE-service token will be rejected when the agent tries a different service.
A 30-line Claude Agent SDK project, pre-wired to
lemon-cake-mcp. Your agent
discovers paid services, pays in USDC autonomously, and every charge is
auto-journaled into freee or Money Forward when connected.
What you get
my-agent/
├── package.json # @anthropic-ai/claude-agent-sdk + lemon-cake-mcp
├── .env.example # LEMON_CAKE_PAY_TOKEN= placeholder
├── tsconfig.json
├── README.md
└── src/
└── index.ts # 30-line Claude agent that uses paid servicesRun output
$ npm start "東京の天気は?"
🍋 Asking Claude: "東京の天気は?"
[tool] mcp__lemon-cake__list_services({…})
[tool] mcp__lemon-cake__call_service({"service":"serper",…})
今日の東京は晴れ、最高22℃です。
✓ Done. Cost: 0.004 USD (Claude) + LemonCake charges
📊 Charges sync to freee/Money Forward daily if connectedWhy USDC / JPYC — not plain yen?
AI agents need micro-payments: $0.001 per API call. Bank transfers minimum is ¥1 and cards eat the fee. USDC/JPYC settle instantly with near-zero cost.
Want yen? Use JPYC (Polygon ERC-20 pegged 1:1 to yen). No FX risk, no crypto-asset tax complexity.
vs. alternatives
| | LemonCake | Composio | RapidAPI | Skyfire |
|---|---|---|---|---|
| Micro-payments ($0.001/call) | ✅ | ❌ | ❌ | ✅ |
| Japan tax (withholding + invoice) | ✅ | ❌ | ❌ | ❌ |
| freee / MF auto-journal | ✅ | ❌ | ❌ | ❌ |
| JPYC (yen-pegged) | ✅ | ❌ | ❌ | ❌ |
| MCP server support | ✅ | ❌ | ❌ | ❌ |
| npx scaffold in 90 sec | ✅ | ❌ | ❌ | ❌ |
Why
- No infra to host.
lemon-cake-mcpruns locally vianpx, no servers to deploy. - No token plumbing. Claude Agent SDK auto-discovers the MCP tools.
- Real receipts. Connect freee / Money Forward in the dashboard and every call shows up as a journal entry — qualified-invoice & withholding-tax aware.
Companion projects
| Surface | Package | For |
|---------|---------|-----|
| MCP server | lemon-cake-mcp | Claude Desktop / Cursor / Cline users |
| ElizaOS plugin | eliza-plugin-lemoncake | ElizaOS agent builders |
| Starter kit | create-lemon-agent (this) | Anyone with npx |
Links
License
MIT
