0X Swap
Skill by aviclaw
Why use this skill?
Automate decentralized swaps, fetch quotes, and execute gasless trades on Ethereum and Base with the 0x Swap skill for OpenClaw. Secure, fast, and developer-friendly.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/aviclaw/0x-swapWhat This Skill Does
The 0x Swap skill for OpenClaw provides a powerful, professional-grade interface for interacting with the 0x exchange protocol. Designed for DeFi power users and developers, this skill enables seamless asset exchange across multiple blockchain networks, including Ethereum and Base. It abstracts the complexity of 0x API interactions, allowing you to fetch competitive price quotes, manage token allowances, and execute complex swap transactions—including gasless meta-transactions—directly through your OpenClaw agent. By automating the integration of 0x's liquidity, this skill acts as a command-line and programmatic bridge to decentralized finance, ensuring efficient trade routing and optimal execution.
Installation
To integrate this skill into your environment, ensure you have the OpenClaw environment configured and run the following command in your terminal: clawhub install openclaw/skills/skills/aviclaw/0x-swap. After installation, navigate to the skill directory via cd skills/0x-swap and run npm install. You must configure your environment by exporting your ZEROEX_API_KEY (obtained from the 0x Dashboard with Full Trading access) and your PRIVATE_KEY for transaction signing. Ensure your API key is configured for both trading and gasless meta-transactions if you intend to use the gasless features.
Use Cases
This skill is ideal for automating rebalancing of crypto-asset portfolios, executing high-frequency trades across decentralized exchanges (DEXs), and building automated trading bots that operate while you are away. It is particularly useful for users looking to perform gasless swaps, which allow for transactions without holding native network gas tokens in the signing wallet, significantly reducing friction in user onboarding and cross-chain operations.
Example Prompts
- "Check the swap rate for 1 USDC to WETH on the Base network and provide a quote."
- "Execute a swap of 500 USDC for WETH on Base using the allowance-holder method."
- "Check the status of my recent gasless trade using the trade hash 0x123abc..."
Tips & Limitations
- Security: This skill interacts directly with real funds. Always double-check your slippage settings and token addresses before execution.
- API Access: Ensure your 0x API key has "Full Trading" enabled; price-only keys will fail during execution.
- Decimals: Remember that
sellAmountmust be provided in base units (e.g., 6 decimals for USDC, 18 for WETH). - Monitoring: Always use the
/gasless/statusendpoint to verify the finality of your transactions, as blockchain latency can affect trade settlement times.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-aviclaw-0x-swap": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api, code-execution
Related Skills
x-research
General-purpose X/Twitter research agent. Searches X for real-time perspectives, dev discussions, product feedback, cultural takes, breaking news, and expert opinions. Works like a web research agent but uses X as the source. Use when: (1) user says "x research", "search x for", "search twitter for", "what are people saying about", "what's twitter saying", "check x for", "x search", "/x-research", (2) user is working on something where recent X discourse would provide useful context (new library releases, API changes, product launches, cultural events, industry drama), (3) user wants to find what devs/experts/community thinks about a topic. NOT for: posting tweets, account management, or historical archive searches beyond 7 days.
verify-before-done
Prevent premature completion claims, repeated same-pattern retries, and weak handoffs. Use this skill to improve verification, strategy switching, and blocked-task reporting without changing personality or tone.
Agent Security Auditor
Skill by aviclaw
Zeroex Swap
Skill by aviclaw
solidity-guardian
Smart contract security analysis skill. Detect vulnerabilities, suggest fixes, generate audit reports. Supports Hardhat/Foundry projects. Uses pattern matching + best practices from Trail of Bits, OpenZeppelin, and Consensys.