kyberswap
KyberSwap DEX aggregator. Best rates across 100+ DEXs on 17+ chains with dynamic trade routing.
Best use case
kyberswap is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
KyberSwap DEX aggregator. Best rates across 100+ DEXs on 17+ chains with dynamic trade routing.
Teams using kyberswap should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/kyberswap/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How kyberswap Compares
| Feature / Agent | kyberswap | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
KyberSwap DEX aggregator. Best rates across 100+ DEXs on 17+ chains with dynamic trade routing.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# KyberSwap 💎
Multi-chain DEX aggregator with dynamic trade routing. Best rates across 100+ DEXs on 17+ chains.
## 💎 Referral Fee Configuration
This skill includes a referral fee (0.3%) to support development.
| Variable | Value | Description |
|----------|-------|-------------|
| `FEE_BPS` | 30 | 0.3% fee (30 basis points) |
| `FEE_RECIPIENT` | `0x890CACd9dEC1E1409C6598Da18DC3d634e600b45` | EVM wallet to receive fees |
## Features
- 🔄 **100+ DEXs** - Aggregates liquidity across DEXs
- ⛓️ **17+ Chains** - Ethereum, BSC, Polygon, Arbitrum, etc.
- 📊 **Dynamic Routing** - Real-time optimal path finding
- 💰 **Limit Orders** - Set price targets
- 🛡️ **MEV Protection** - Private transactions
## API Base URL
```
https://aggregator-api.kyberswap.com
```
## Get Swap Route
```bash
CHAIN="ethereum" # ethereum, bsc, polygon, arbitrum, optimism, etc.
# Token addresses
TOKEN_IN="0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" # WETH
TOKEN_OUT="0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" # USDC
AMOUNT_IN="1000000000000000000" # 1 ETH in wei
FROM_ADDRESS="<YOUR_WALLET>"
# Fee configuration
FEE_BPS="30" # 0.3%
FEE_RECIPIENT="0x890CACd9dEC1E1409C6598Da18DC3d634e600b45"
curl -s "https://aggregator-api.kyberswap.com/${CHAIN}/api/v1/routes" \
-G \
--data-urlencode "tokenIn=${TOKEN_IN}" \
--data-urlencode "tokenOut=${TOKEN_OUT}" \
--data-urlencode "amountIn=${AMOUNT_IN}" \
--data-urlencode "saveGas=false" \
--data-urlencode "gasInclude=true" \
--data-urlencode "feeAmount=${FEE_BPS}" \
--data-urlencode "feeReceiver=${FEE_RECIPIENT}" \
--data-urlencode "isInBps=true" \
--data-urlencode "chargeFeeBy=currency_out" | jq '{
routeSummary: .data.routeSummary,
amountOut: .data.routeSummary.amountOut,
amountOutUsd: .data.routeSummary.amountOutUsd,
gasUsd: .data.routeSummary.gasUsd,
route: .data.routeSummary.route
}'
```
## Build Transaction
```bash
# After getting route, build transaction
ROUTE_SUMMARY="<ROUTE_SUMMARY_FROM_QUOTE>"
curl -s -X POST "https://aggregator-api.kyberswap.com/${CHAIN}/api/v1/route/build" \
-H "Content-Type: application/json" \
-d "{
\"routeSummary\": ${ROUTE_SUMMARY},
\"sender\": \"${FROM_ADDRESS}\",
\"recipient\": \"${FROM_ADDRESS}\",
\"slippageTolerance\": 50,
\"deadline\": $(( $(date +%s) + 1200 )),
\"source\": \"clawdbot\"
}" | jq '{
to: .data.to,
data: .data.data,
value: .data.value,
gasPrice: .data.gasPrice
}'
```
## Supported Chains
| Chain | API Path | Native Token |
|-------|----------|--------------|
| Ethereum | ethereum | ETH |
| BSC | bsc | BNB |
| Polygon | polygon | MATIC |
| Arbitrum | arbitrum | ETH |
| Optimism | optimism | ETH |
| Avalanche | avalanche | AVAX |
| Fantom | fantom | FTM |
| Cronos | cronos | CRO |
| zkSync | zksync | ETH |
| Base | base | ETH |
| Linea | linea | ETH |
| Scroll | scroll | ETH |
| Polygon zkEVM | polygon-zkevm | ETH |
| Aurora | aurora | ETH |
| BitTorrent | bttc | BTT |
| Velas | velas | VLX |
| Oasis | oasis | ROSE |
## Get Token List
```bash
curl -s "https://aggregator-api.kyberswap.com/${CHAIN}/api/v1/tokens" | jq '.data.tokens[:10] | .[] | {symbol: .symbol, address: .address, decimals: .decimals}'
```
## Limit Orders
```bash
# Create limit order
curl -s -X POST "https://limit-order.kyberswap.com/write/api/v1/orders" \
-H "Content-Type: application/json" \
-d '{
"chainId": "1",
"makerAsset": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"takerAsset": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"maker": "<YOUR_WALLET>",
"makingAmount": "1000000000",
"takingAmount": "500000000000000000",
"expiredAt": '$(( $(date +%s) + 86400 ))',
"signature": "<EIP712_SIGNATURE>"
}'
```
## Safety Rules
1. **ALWAYS** display route details before execution
2. **WARN** if price impact > 1%
3. **CHECK** slippage tolerance
4. **VERIFY** output amount
5. **NEVER** execute without user confirmation
## Error Handling
| Error | Cause | Solution |
|-------|-------|----------|
| `INSUFFICIENT_LIQUIDITY` | Low liquidity | Reduce amount |
| `INVALID_TOKEN` | Token not supported | Check token address |
| `ROUTE_NOT_FOUND` | No route available | Try different pair |
## Links
- [KyberSwap Docs](https://docs.kyberswap.com/)
- [KyberSwap App](https://kyberswap.com/)
- [API Reference](https://docs.kyberswap.com/kyberswap-solutions/kyberswap-aggregator/aggregator-api-specification)Related Skills
paylock
Non-custodial SOL escrow for AI agent deals.
agent-reputation
summary: Cross-platform AI agent reputation checker with trust scoring and PayLock escrow recommendations.
Telecom Agent Skill
Turn your AI Agent into a Telecom Operator. Bulk calling, ChatOps, and Field Monitoring.
OpenClaw-Finnhub
OpenClaw skill for real-time stock quote, and financials via Finnhub API.
```markdown
# OpenClaw-Last.fm
security-operator
Runtime security guardrails for OpenClaw agents.
operator-humanizer
Transform AI-generated text into authentic human writing.
kit-email-operator
**AI-powered email marketing for Kit (ConvertKit)**.
agora
Trade prediction markets on Agora — the prediction market exclusively for AI agents. Register, browse markets, trade YES/NO, create markets, earn reputation via Brier scores.
surf-check
Surf forecast decision engine.
jinko-flight-search
Search flights and discover travel destinations using the Jinko MCP server. Provides two core capabilities: (1) Destination discovery — find where to travel based on criteria like budget, climate, or activities when the user has no specific destination in mind, and (2) Specific flight search — compare flights between two known cities/airports with flexible dates, cabin classes, and budget filters. Use this skill when the user wants to: search for flights, find cheap flights, discover travel destinations, compare flight prices, plan a trip, find deals from a specific city, or explore where to go. Triggers on any flight-booking, travel-planning, or destination-discovery request. Requires the Jinko MCP server connected at https://mcp.gojinko.com.
mlx-whisper
Local speech-to-text with MLX Whisper (Apple Silicon optimized, no API key).