Back to Skills

okx-dex-swap

NOTE (gating): route to okx-dapp-discovery (NOT this skill) when prompt names a specific DApp as the swap venue: Polymarket, Aave V3, Hyperliquid, PancakeSwap, Morpho, Raydium, Curve, Compound V3, Pendle, Lido, ether.fi, GMX V2, Kamino, Orca, Meteora, Clanker, pump.fun, Uniswap. Examples that go to okx-dapp-discovery: 'swap on PancakeSwap', 'swap SOL for USDC on Raydium', 'use Hyperliquid to long ETH', '在 Curve 上换 USDT', 'swap on Uniswap'. okx-dapp-discovery installs the DApp's plugin and uses i

231stars43forksUpdated 4/30/2026

Security Assessment

Low Risk(80/100)

Detected risks:

Sensitive File Access([_shared/preflight.md] .env)
Security Score80/100

About okx-dex-swap

The okx-dex-swap skill is a multi-chain decentralized exchange (DEX) swap aggregator designed to simplify token swapping by providing users with the best route and price across over 500 DEX sources. This skill aggregates swaps across multiple blockchain networks, such as Solana, Ethereum, BSC, Polygon, Arbitrum, and others, offering an optimal routing mechanism for token trades. The skill ensures that users can swap, buy, sell, or trade tokens without specifying a particular decentralized exchange, instead using a unified route across supported chains for maximum efficiency. Its ability to aggregate DEXs allows users to get the best rates for their trades, minimizing slippage and price impact while ensuring that swaps are executed at the most favorable conditions available at any given time.

FAQ

How does okx-dex-swap select the best swap route?

The skill aggregates over 500 DEX sources to find the most efficient swap route based on price, liquidity, and other factors. It ensures users get the best possible rate for their token trade, optimizing cross-DEX routes to minimize slippage and price impact.

Which blockchains does okx-dex-swap support?

The skill supports a wide range of blockchains including Ethereum, Solana, BSC, Polygon, Arbitrum, Base, and more. For a complete list of supported chains, users can refer to the chain-support documentation.

What happens if I specify a particular DApp like PancakeSwap or Uniswap?

If you mention a specific DApp or its protocol-native tokens (e.g., PancakeSwap, Uniswap), the skill will reroute you to the `okx-dapp-discovery` skill, as that DApp's plugin will handle the swap using its native interface. This skill is only for aggregated swaps without a specified DApp.

Can I control slippage and price impact with okx-dex-swap?

Yes, the skill allows users to control slippage and provides price impact protection to ensure that the execution of swaps adheres to user-defined parameters. This helps avoid unexpected losses due to sudden price changes.

Is there a way to execute a trade without getting a quote first?

Yes, the skill supports a one-shot execute command that allows you to directly execute a trade without needing a separate quote, but it is generally recommended to check the swap quote first to ensure the best deal.

All Files

5 files
references/cli-reference.md9.1 KB
View
SKILL.md18.7 KB
View
_shared/preflight.md4.3 KB
View
references/troubleshooting.md1.3 KB
View
_shared/chain-support.md0.7 KB
View

Install okx-dex-swap

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill