Solana Easy Swap for Openclaw

A specialized skill for AI agents to perform seamless token swaps on the Solana blockchain using the Jupiter aggregator.

in-liberty420
v1.0.1
Feb 14, 2026
0
1.5k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install solana-easy-swap

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 solana-easy-swap 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 Solana Easy Swap?

Solana Easy Swap is a powerful integration designed for the Openclaw Skills ecosystem that allows AI agents to handle the entire lifecycle of a token exchange. From quoting and signing to broadcasting and confirming transactions, this skill removes the friction of manual wallet interactions. By utilizing a local keypair, it provides a secure way for agents to trade SOL, USDC, and various SPL tokens directly through a chat interface.

This skill is built for developers who want to give their agents financial agency without needing complex API integrations or third-party wallet extensions. It leverages Jupiter's unauthenticated API to find the best routes, ensuring that users get competitive rates on every transaction performed via Openclaw Skills.

Solana Easy Swap Use Cases

  • Swapping between SOL and USDC to manage portfolio liquidity within a chat session.
  • Purchasing specific memecoins or SPL tokens by providing a mint address to the AI agent.
  • Automating token exchanges in developer workflows using Openclaw Skills for programmatic trading.
  • Quick liquidation of tokens into stablecoins during market volatility through simple natural language commands.

How Solana Easy Swap Works

  1. The AI agent initiates the process by calling the prepare command, which fetches a quote and generates a transaction summary.
  2. The summary, including expected output and price impact, is presented to the user for explicit confirmation.
  3. Once confirmed, the agent runs the execute command to sign the transaction with the local keypair and submit it to the Solana network.
  4. The agent then polls the status command to track the transaction from submission to finality.
  5. A final receipt is generated, providing the user with a detailed breakdown and a Solscan link for transparency.

Solana Easy Swap Setup

To get started with this skill in the Openclaw Skills framework, install the dependencies:

cd {baseDir} && npm install --production

You must configure the following environment variable to allow the skill to sign transactions:

  • SOLANA_KEYPAIR_PATH: The filesystem path to your Solana keypair JSON file.

Optional configurations include SOLANA_RPC_URL for custom node access and OSS_DEFAULT_SLIPPAGE_BPS to set your preferred slippage tolerance.

Solana Easy Swap Data Schema & Taxonomy

The skill manages swap data using a structured JSON format to ensure consistency across the Openclaw Skills environment:

Attribute Type Description
prepareId String A unique identifier for the prepared swap quote
expectedOut String The estimated amount of tokens to be received
priceImpact String The percentage impact the trade has on the pool price
signature String The transaction hash on the Solana blockchain
state String The current transaction status (e.g., confirmed, failed)

Solana Easy Swap Advanced Features

  • Direct integration with Jupiter Aggregator for optimized routing within Openclaw Skills.
  • Robust error handling for common blockchain issues like insufficient SOL or expired transactions.
  • Configurable priority fees to ensure transaction landing during periods of high network congestion.
  • Built-in slippage protection to guard users against unfavorable price movements during execution.
  • Support for any SPL token by utilizing mint addresses when standard symbols are not recognized.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins node
Github Stars: 0
forks: 0