# Send ClawDex Trading to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "clawdex-trading",
    "name": "ClawDex Trading",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/JoelCCodes/clawdex-trading",
    "canonicalUrl": "https://clawhub.ai/JoelCCodes/clawdex-trading",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/clawdex-trading",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=clawdex-trading",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/clawdex-trading"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/clawdex-trading",
    "downloadUrl": "https://openagent3.xyz/downloads/clawdex-trading",
    "agentUrl": "https://openagent3.xyz/skills/clawdex-trading/agent",
    "manifestUrl": "https://openagent3.xyz/skills/clawdex-trading/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/clawdex-trading/agent.md"
  }
}
```
## Documentation

### ClawDex — Solana DEX Trading Skill

Trade any Solana token through Jupiter aggregator with simulation, safety guardrails, and full JSON output.

### Prerequisites

Before using this skill, ensure ClawDex is installed and configured:

which clawdex || npm install -g clawdex@latest

If not configured yet, run onboarding:

clawdex status --json

If status fails, set up with:

clawdex onboarding \\
  --jupiter-api-key "$JUPITER_API_KEY" \\
  --rpc "${SOLANA_RPC_URL:-https://api.mainnet-beta.solana.com}" \\
  --wallet ~/.config/solana/id.json \\
  --json

### Check wallet balances

clawdex balances --json

Returns an array of { token, symbol, mint, balance, decimals } objects. Zero-balance accounts are included in JSON output.

### Get a quote (no execution)

clawdex quote --in SOL --out USDC --amount 0.01 --json

Lightweight price check — no simulation, no wallet needed.

### Simulate a swap (dry run)

clawdex swap --in SOL --out USDC --amount 0.01 --simulate-only --json

Runs full simulation on-chain without broadcasting. Does not require --yes. Use this to preview the output amount and route before committing.

### Execute a swap

clawdex swap --in SOL --out USDC --amount 0.01 --yes --json

--yes is required for non-interactive execution. Without it, ClawDex exits with code 1.

### Health check

clawdex status --json

Verify RPC connectivity, wallet validity, and config state.

### Trading Workflow

Always follow this sequence:

Health check — clawdex status --json — abort if rpc.healthy is false
Check balances — clawdex balances --json — verify sufficient funds
Simulate — clawdex swap --simulate-only --json — preview the trade
Execute — clawdex swap --yes --json — only if simulation looks good
Verify — clawdex balances --json — confirm balances updated (may need 5s delay on public RPC)

### Token Specification

Tokens can be passed by symbol or mint address:

By symbol: SOL, USDC, USDT
By mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v

### Exit Codes

CodeMeaningAgent action0SuccessContinue1General errorCheck message2Config errorRun onboarding3Safety violationReduce amount or adjust limits4Simulation failedTry different pair/amount5Send failedRetry with backoff

### Safety

Set guardrails to prevent runaway trades:

clawdex safety set max_slippage_bps=300 max_trade_sol=1 max_price_impact_bps=100

When a guardrail triggers, the JSON response includes a violations array describing what failed.

### Important Rules

Always use --json for machine-parseable output
Always use --yes for real swaps (not needed for --simulate-only)
Never skip simulation unless you have a good reason — use --simulate-only first
Parse balance as a string, not a number — it preserves full decimal precision
Check exit codes — non-zero means the trade did not succeed
Wait before verifying — RPC balance reads can lag a few seconds after a swap
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: JoelCCodes
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/clawdex-trading)
- [Send to Agent page](https://openagent3.xyz/skills/clawdex-trading/agent)
- [JSON manifest](https://openagent3.xyz/skills/clawdex-trading/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/clawdex-trading/agent.md)
- [Download page](https://openagent3.xyz/downloads/clawdex-trading)