Case Study

Moxie launches onchain AI assistant with automated trading

"The ease, speed, and efficiency of 0x Swap API, along with the exceptional support from the 0x team, has been a game changer for us."

AI agent

Swap

API

"The ease, speed, and efficiency of 0x Swap API, along with the exceptional support from the 0x team, has been a game changer for us. Their collaboration not only streamlined our integration but also empowered us to innovate and deliver a superior trading experience to our users." 

- Sarvesh Jain, CTO at Moxie

Highlights

  • Moxie, an onchain AI assistant that analyzes trades and unlocks social alpha, utilizes Swap API to power automated AI trading.
  • Easy integration: The ease, speed, and efficiency of Swap API has been a game changer for Moxie. A simple and seamless integration experience enabled the team to ship quicker and ensure reliable swap commands for users.
  • Deep liquidity on Base: With 40+ liquidity sources aggregated on Base, 0x provided the deepest aggregated liquidity to ensure the best prices for users.
  • Superior trading experience: 0x’s advanced trade routing ensures that swaps are executed along the optimal path to deliver the best all-in prices for Moxie users across every trade size.
  • Reliable support: Moxie and the 0x team collaborated closely to streamline development. 0x played a pivotal role in helping the Moxie team implement its token graduation feature, which enabled the Moxie token to be used as a routing currency.

What is Moxie?

Moxie is an onchain AI assistant - analyzing transactions, unlocking social alpha, and executing trades on users behalf. 

Moxie offers a fully-featured AI platform:

  • Onchain AI Agents: Users get real-time insights and trends from onchain (Base) and offchain data (Twitter and Farcaster) to spot the latest alpha.
  • Make Money While You Sleep: The Moxie AI Agent can swap, send, and now set limit orders on any Base tokens based on instructions from users. With more advanced DeFi features planned in the Moxi short term roadmap – like copy trading and stop orders. 
  • Tokenized Skills Marketplace: Built using open source ElizaOS framework Moxie features an “app store” for agent skills, enabling developers to easily create, distribute, and tokenize plugins - receiving 5% of the tokens and 0.5% of transaction fees.
  • Data Coins: Data Coins unlock premium AI-powered analysis of influencers and whales through microtransactions. User agents can track social media, onchain transactions, and portfolios to spot trends and uncover actionable alpha in real time.

In this case study, we will take a look at how 0x helps power swaps for Moxie’s AI agents.

Unlocking AI-powered alpha

Moxie was founded in August 2024 by the team behind Airstack. Airstack pioneered early onchain AI tech in 2022 with developer tooling that used natural language to write GraphQL queries, combining onchain and offchain data in a unified response. 

Originally launched on Farcaster, Moxie enabled users to earn rewards by posting social content and launch creator coins. Since then, the collective market cap of Moxie creator coins has topped over $20M.

Late in 2024, the Moxie team began planning to expand their footprint on Base and layer utility on top of the now thriving Moxie ecosystem. In an effort to provide even more utility to users, the team began scoping its AI Agents, backed by its developer-charged Skills Marketplace.

AI agents are autonomous agents designed to analyze data, execute actions, and interact with smart contracts - providing intelligent automation onchain. Agents hold the potential to unlock onchain alpha with automated analysis of onchain and offchain data, optimized strategies, and automated trading.

With trading at the heart of AI agents, Moxie needed support for thousands of tokens on Base with deep liquidity to ensure a superior agent trading experience for users, while minimizing engineering time so the team could focus on building out the rest of the product.

Moxie’s key challenge was finding a solution that offered a simple and efficient swap API to streamline the user experience. In addition, the team required reliable support to ensure a smooth integration process.

0x provided Moxie with easy-to-use and reliable API infrastructure. The result:

  • Easy integration: The ease, speed, and efficiency of Swap API has been a game changer for Moxie. A simple and seamless integration experience enabled the team to ship quicker and ensure reliable swap commands for users.
  • Deep liquidity on Base: With 40+ liquidity sources aggregated on Base, 0x provided the deepest aggregated liquidity to ensure the best prices for users.
  • Superior trading experience: 0x’s advanced trade routing ensures that swaps are executed along the optimal path to deliver the best all-in prices for Moxie users across every trade size.
  • Reliable support: Moxie and the 0x team collaborated closely to streamline development. 0x played a pivotal role in helping the Moxie team implement its token graduation feature, which enabled the Moxie token to be used as a routing currency.

Agents swaps powered by 0x

The Moxie AI agent can analyze both onchain and off-chain data to provide deeper insights to users. It conducts transaction analysis to recommend tokens based on historical buying patterns and trends among favorite creators. Additionally, it performs sentiment analysis on tweets and Farcaster casts, helping users gauge market sentiment and identify potential trading opportunities.

Swaps are one of the primary use cases of the Moxie AI agent.

Users can buy, sell, and manage their portfolios using natural language commands, making token swaps more intuitive and seamless. The agent optimizes trade execution by analyzing onchain liquidity, selecting the best swap routes, and minimizing slippage and gas fees.

Moxie integrated 0x’s Swap API to power the core swap functionality of the Moxie AI agent. By leveraging Swap API, Moxie was able to gain access to an efficient routing algorithm that ensures token swaps are executed along the optimal path across various liquidity sources, reducing slippage and ensuring the best pricing.

The Moxie team found integrating 0x to be a remarkably simple and seamless experience, with a straightforward API and comprehensive documentation allowing for rapid development and reliable processing of natural language swap commands.

Moxie AI goes beyond simple automation—it’s designed to be an intelligent and extensible agent for creators and communities. One of Moxie’s key differentiators is its skills-based architecture:

  1. Developers can build custom skills to extend the agent’s functionality, enabling it to handle a wide range of onchain and off-chain tasks.
  2. Skills can be monetized, allowing developers to earn for the value they create within the Moxie ecosystem.
  3. This architecture makes the agent highly scalable, meaning it can be customized to virtually any use case, from trading and portfolio management to community engagement and beyond.

Using the popular ElizaOS framework, Moxie also makes it easy for any existing Eliza plug-in to quickly integrate into Moxie agents - allowing devs to easily monetize and scale their plug-in through Moxie.

Start building with 0x v2

0x v2 makes it easy for developers to embed swaps in their onchain apps, from AI agents to SocialFi, with the best all-in prices.

Built to meet the needs of growing Web3 businesses, 0x v2 offers the most seamless swap experience with optimal trade execution, powerful new monetization controls, and enhanced security baked in at the ground level.

0x v2 is the next-generation trading engine for serious onchain apps. Join over a dozen teams, including Definitive, Matcha, and Coinbase, already building with 0x v2.

Sign-up for a free account on the 0x Dashboard to get started.

3 days

to integrate

12k+ traders

since launch

$4M+

in trading volume

Ready to get started?

Create a 0x account and embed swaps in your app, for free, in less than five minutes.

Get started
Yay! You’re signed up.
Oops! Something went wrong, but it's not your fault.