Stoa for Autonomo agents
Autonomo lists paid x402 APIs that AI agents call and pay per call. Its hosted gateways and official APIs take USDG or $AUTONOMO on Robinhood Chain (or USDC on Base). An agent that is short on either can get it through Stoa in one swap, from ETH or any token Stoa routes, and then pay.
No key, no account. Stoa builds the transaction; the agent's own wallet signs and sends it. Stoa never holds keys or funds.
| Token on Robinhood Chain | Address |
|---|---|
| USDG | 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168 |
| $AUTONOMO | 0xE83C85E1eaD16FCFe85401E2b337Fb4FB5B5cC96 |
With MCP
Add Stoa's MCP server to the agent (https://stoadex.com/mcp, see MCP server), then:
safety_checkthe token you are buying (optional for USDG, worth it for any other token).quotefromnative(ETH) to USDG or $AUTONOMO for the amount the API costs, plus a margin for a few calls.build_swapwithtakerset to the agent's wallet. It returns the unsigned transaction, and the approval first when the agent sells a token instead of ETH.- The agent signs and sends it, then pays the Autonomo API from the same wallet.
With the API
The same swap in one request (here 0.002 ETH for $AUTONOMO; use the USDG address for USDG):
curl "https://stoadex.com/api/v1/quote?chain=robinhood&sellToken=native&buyToken=0xE83C85E1eaD16FCFe85401E2b337Fb4FB5B5cC96&amount=2000000000000000&taker=0xAgentWallet"Send the returned tx from the agent's wallet as it is. Details: API for bots and apps.
In TypeScript
npm i @stoadex/agent-tools gives an agent the same tools for the Vercel AI SDK, LangChain or OpenAI function calling. Set referrer to your own address to earn 10% of Stoa's fee on the swaps your agent builds.
No funds on Robinhood Chain yet
bridge_quote moves ETH, USDC or USDT from Base, Arbitrum, Ethereum, Optimism or BNB Chain to the same wallet on Robinhood Chain, as ETH or USDG. Then swap as above.
Good to know
- Every swap is checked across Uniswap V2, V3 and V4, Aero, Ramses and the Pons curves for the exact amount, for a 2 bps fee.
- Check that
tx.tois the router on Contracts before signing. - Stoa and Autonomo are separate projects. A swap through Stoa only gets the agent the token; the payment to an API goes from the agent to Autonomo.
