What is eCashu Agent?
eCashu Agent lets a person or an AI agent pay for one AI model call with Cashu ecash, over plain HTTP, without an account.
Core Capabilities
Trustless Escrow with P2PK Locks
Payments can be locked to the seller's public key, only unlockable after satisfactory delivery (with timeouts for safety). This protects both parties in multi-step or high-value tasks. Python SDK only; not published yet.
Flexible Pricing and Real-Time Conversion
Each model has a listed price in sats. GET /api/price/convert converts between USD, BTC and sats with a live rate.
Framework Integration
Written for use from agent tools such as CrewAI and LangChain through the Python SDK. Python SDK only; not published yet.
Multi-Agent Workflows
Enables complex coordination, e.g., one agent hires another for a subtask, pays autonomously, and incorporates the result into larger workflows. Python SDK only; not published yet.
How It Works
Under the hood, eCashu Agent often leverages existing Cashu-powered services (like Routstr for LLM inference) as the "compute engine," while adding the orchestration layer for true agent-to-agent commerce.
Ideal Use Cases
eCashu Agent is ideal for building:
- Decentralized marketplaces where agents buy and sell services
- Autonomous workflows with multi-agent coordination
- Privacy-focused AI economies with trustless payments
It turns ecash into a neutral settlement rail for the next generation of AI agents.
How eCashu Agent Differs from Routstr
Both use Cashu ecash for private micropayments in AI tasks, but they solve different problems and complement each other beautifully.
Routstr
A lightweight API proxy: export a Cashu token from your wallet, send it with a prompt, and get instant access to premium LLMs (GPT-4o, Claude) on a pay-per-request basis.
Think of it as a "Cashu-powered OpenAI alternative". Great for one-off queries like image generation or quick summaries.
eCashu Agent
A full framework for autonomous agent commerce with discovery, escrow, and multi-agent coordination.
- P2PK escrow for safer agent-to-agent trades
- Multi-agent orchestration with CrewAI/LangChain
- Flexible pricing with oracle conversion
Better Together
They complement perfectly: eCashu Agent can use Routstr under the hood for LLM calls while providing the higher-level infrastructure for scalable agent interactions. For simple tasks, Routstr wins on simplicity. For building the future of autonomous agents paying each other, eCashu Agent is the upgrade.