← Back to Skills Marketplace
in-liberty420

Solana Easy Swap

by in-liberty420 · GitHub ↗ · v1.0.1
cross-platform ✓ Security Clean
769
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install solana-easy-swap
Description
Swap any Solana token from chat. Say 'swap 1 SOL for USDC' and it handles everything — quoting, signing, sending, confirming. No API keys, no wallet extensions, no setup beyond a keypair. Powered by Jupiter. Use when a user wants to swap, trade, exchange, buy, or sell Solana SPL tokens, SOL, USDC, memecoins, or any token pair on Solana.
Usage Guidance
This skill is internally consistent and appears to be what it claims: it will read the keypair file you point it to, query Jupiter, build and sign transactions, and submit them to your chosen Solana RPC. That is expected behavior for an on-device swap tool, but be aware of the security implications: granting SOLANA_KEYPAIR_PATH means the skill (when run) can sign/spend from that wallet. Only use a keypair you trust the skill to access (consider a dedicated low-balance wallet for testing). Review the script (scripts/swap.mjs) yourself before installing, keep npm installs isolated (use a container or VM if unsure), and ensure the agent prompts you and never executes swaps without your explicit confirmation. If you need higher assurance, use a hardware wallet or a workflow that never exposes private key material to third-party code.
Capability Analysis
Type: OpenClaw Skill Name: solana-easy-swap Version: 1.0.1 This skill is designed to facilitate Solana token swaps and appears benign. It transparently declares its need to access the user's Solana keypair via `SOLANA_KEYPAIR_PATH` for signing transactions, and explicitly states it does not create, import, or manage keys. The `SKILL.md` and `examples/agent-prompt.md` files contain strong instructions for the AI agent to always seek explicit user confirmation before executing swaps, warn about high price impact, and never auto-retry failed on-chain transactions, indicating a focus on user safety and preventing prompt injection. The `scripts/swap.mjs` code uses standard Solana libraries, validates all user inputs (e.g., mint addresses, amounts), and stores temporary transaction data in a UUID-named file within a `.cache` directory, preventing path traversal or sensitive data exposure. No evidence of data exfiltration, unauthorized persistence, or other malicious intent was found.
Capability Assessment
Purpose & Capability
Name/description (swap SPL tokens using a local keypair and Jupiter) align with the actual requirements: node binary, a SOLANA_KEYPAIR_PATH pointing to a local keypair, and a script that calls Jupiter and the Solana RPC. There are no unrelated credentials, unknown third-party hosts, or unrelated binaries requested.
Instruction Scope
SKILL.md instructs the agent to read the keypair (declared env var), call prepare/execute/status/receipt via the provided CLI, show the prepare summary and obtain user confirmation before executing. The runtime instructions and the included script operate only on swap-related data, call Jupiter endpoints and the Solana RPC, and store prepared-swap metadata under a local .cache path. The instructions do not ask the agent to read unrelated files or exfiltrate secrets.
Install Mechanism
There is no remote arbitrary-download installer. The metadata recommends running npm install in the skill directory; the package.json and package-lock reference standard npm packages (e.g., @solana/web3.js, bs58). No URL shorteners, personal servers, or extracted archives are used in the install spec.
Credentials
Only SOLANA_KEYPAIR_PATH is required (plus optional RPC and slippage envs). That is proportional: signing transactions requires access to a private key. No unrelated secrets or multiple service credentials are requested. Note: access to the keypair grants the ability to sign and spend funds from that account — this is expected but high-risk in practice.
Persistence & Privilege
The skill is not force-installed (always: false) and does not request system-wide privileges. It writes prepared-swap JSON files into a local .cache directory within the skill path and does not modify other skills or global agent settings. Agent autonomous invocation is allowed by default but is not unusual; the skill's own guidelines require explicit user confirmation before sending transactions.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install solana-easy-swap
  3. After installation, invoke the skill by name or use /solana-easy-swap
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
Fix scanner concerns: add npm install spec in metadata, move prepared swap storage from /tmp to skill-local .cache/, strengthen keypair trust documentation
v1.0.0
Initial release of Solana Easy Swap — swap any Solana token directly from chat. - Swap SOL, USDC, memecoins, and any SPL tokens using simple commands (e.g., "swap 1 SOL for USDC"). - Handles quoting, user confirmation, transaction signing, sending, and status tracking. - No API keys or wallet extensions required; just provide a keypair. - Powered by Jupiter for routing and pricing. - Comprehensive error handling with clear retry guidance. - Output includes transaction summaries for user confirmation and Solscan links for receipts.
Metadata
Slug solana-easy-swap
Version 1.0.1
License
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Solana Easy Swap?

Swap any Solana token from chat. Say 'swap 1 SOL for USDC' and it handles everything — quoting, signing, sending, confirming. No API keys, no wallet extensions, no setup beyond a keypair. Powered by Jupiter. Use when a user wants to swap, trade, exchange, buy, or sell Solana SPL tokens, SOL, USDC, memecoins, or any token pair on Solana. It is an AI Agent Skill for Claude Code / OpenClaw, with 769 downloads so far.

How do I install Solana Easy Swap?

Run "/install solana-easy-swap" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Solana Easy Swap free?

Yes, Solana Easy Swap is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Solana Easy Swap support?

Solana Easy Swap is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Solana Easy Swap?

It is built and maintained by in-liberty420 (@in-liberty420); the current version is v1.0.1.

💬 Comments