ClawDex for Openclaw

A robust CLI tool for executing Solana token swaps, checking balances, and managing DeFi operations through the Jupiter aggregator.

davidpolotm
v1.0.0
Feb 17, 2026
0
1.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install mi-trading

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install mi-trading using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is ClawDex?

ClawDex is a specialized tool designed to facilitate programmatic trading on the Solana blockchain. As a powerful addition to the Openclaw Skills ecosystem, it leverages the Jupiter aggregator to ensure users receive the best possible pricing for token swaps. It provides a developer-friendly interface that prioritizes safety through mandatory simulations and configurable guardrails, making it ideal for both manual operations and automated agentic workflows.

By integrating this skill, developers can interact with the Solana ecosystem using standardized JSON outputs, allowing for seamless data parsing and state management. Whether you are building a trading bot or a simple wallet monitor, using Openclaw Skills like ClawDex ensures that your on-chain interactions are secure, simulated, and efficient.

ClawDex Use Cases

  • Automated token swapping based on real-time market data or user triggers.
  • Programmatic monitoring of Solana wallet balances and token holdings.
  • Price discovery and quote generation for any SPL token pair.
  • Building safety-conscious trading agents that require pre-trade simulations and slippage protection.

How ClawDex Works

  1. Initialization: The skill performs a health check to verify RPC connectivity and wallet configuration.
  2. Asset Discovery: It retrieves current wallet balances to ensure the user has sufficient funds for the operation.
  3. Quote Generation: The agent requests a price quote from Jupiter to determine the best trade route and expected output.
  4. Simulation: A dry-run simulation is performed on-chain to identify potential failures or high price impact before any funds are moved.
  5. Execution: Upon a successful simulation, the swap is executed with strict safety flags to finalize the transaction on the Solana network.

ClawDex Setup

To begin using this skill within the Openclaw Skills framework, install the package via npm:

npm install -g clawdex@latest

Once installed, configure your environment by running the onboarding command with your specific RPC and wallet details:

clawdex onboarding --jupiter-api-key "YOUR_API_KEY" --rpc "https://api.mainnet-beta.solana.com" --wallet ~/.config/solana/id.json --json

ClawDex Data Schema & Taxonomy

ClawDex utilizes a structured JSON schema for all outputs to ensure compatibility with various Openclaw Skills.

Attribute Description Data Type
token The symbol of the token (e.g., SOL, USDC) String
mint The unique Solana mint address for the asset String
balance The current balance, formatted as a string to maintain precision String
decimals The number of decimals associated with the token mint Integer
violations An array describing any safety guardrails triggered during a trade Array

ClawDex Advanced Features

  • On-Chain Simulations: Always preview the exact outcome of a trade before committing funds to the network.
  • Configurable Safety Guardrails: Set custom limits for maximum slippage, maximum trade size in SOL, and maximum price impact.
  • Non-Interactive Execution: Use the --yes flag for automated environments where user prompts are not possible.
  • Granular Exit Codes: Detailed error reporting allows agents to distinguish between network errors, configuration issues, and safety violations.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*