OpenSwap CLI: Crosschain Swaps in Your Terminal
Your terminal is now a crosschain DEX. Swap BTC, ETH, SOL, and 30+ chains without a wallet extension, an account, or custody. Built for humans, AI agents, and bots.
Run it instantly: npx openswap@latest
Open source (MIT) by LeoDex, powered by the LeoKit API.
The Founding 100: 0.01% fees for life
The first 100 people to claim a founding key swap at 0.01% platform fee forever — a tenth of the standard 0.10% rate. Claim with just an email at leokit.dev/cli, then run npx openswap@latest auth login and paste your key. One key per email.
Why OpenSwap
- Noncustodial: no seed phrases, no private keys — OpenSwap mints a deposit address and you pay from any wallet you already trust, by QR or copy-paste
- Honest fees: every route streams in with full fees shown; 0.10% standard, 0.01% with a founding key, stablecoin pairs floored at 0.01% for everyone
- Built for agents and bots: TSV output when piped, durable receipts, bundled SKILL.md and AGENTS.md, and a full test-mode sandbox
- Live route streaming across THORChain, Chainflip, Maya, NEAR Intents, Relay, Rango, and more
How OpenSwap fees compare (July 2026)
Vendor-added fee on a $10,000 crosschain swap, verified against each platform's own published disclosures: MetaMask 0.875% ($87.50) · Phantom 0.85% on select pairs ($85) · ShapeShift 0.60% ($60) · THORSwap 0.50% ($50) · LI.FI API 0.25% ($25) · Rabby 0.25% ($25) · Rango API 0.15% ($15) · SwapKit API 0.10–0.15% ($10–15) · LeoKit API 0.10% ($10) · OpenSwap community key 0.10% ($10) · OpenSwap founding key 0.01% ($1). Network and protocol costs apply on every platform. OpenSwap/LeoKit integrators keep 100% of their affiliate fees.
Commands
openswap— interactive menu: pick a pair, watch routes stream in liveopenswap tour— practice a full swap in 2 minutes; nothing real movesopenswap swap --amount 25000 --from arb:USDC --to btc:BTC— quote, lock a route, get a deposit address and QRopenswap quote— compare every route; TSV output when pipedopenswap status --watch— follow a swap from deposit to deliveryopenswap resume— pick any in-flight swap back up from its receiptopenswap history— browse every receipt in an interactive ledgeropenswap test on— sandbox the whole CLI against a simulated exchange
Frequently Asked Questions
Is OpenSwap safe to use?
OpenSwap is noncustodial and open source (MIT). It never asks for a seed phrase or private key — it mints a deposit address for the route you choose, and you pay from any wallet you already trust.
What does it cost?
$0 upfront — no integration or setup cost. You only pay when a swap executes: 0.10% of the swap (10 basis points), the industry floor. Founding keys drop that to 0.01% for life, and stablecoin-to-stablecoin pairs are 0.01% for everyone.
Which chains and tokens are supported?
30+ blockchains and 20,000+ tokens, including BTC, ETH, SOL, and most major L1s and L2s, aggregated live across THORChain, Chainflip, Maya, NEAR Intents, Relay, Rango, and more.
Do I need an account or API key?
No. npx openswap@latest works immediately on a built-in community key at the standard 0.10% rate. A founding key is a limited-seat optional upgrade — one of only 100 — that drops the fee to 0.01% for life.
Can AI agents and trading bots use it?
Yes — bots and agents are first-class users. Every command can output clean machine-readable data, every swap leaves a saved receipt an agent can pick back up, the package ships with instructions AI agents understand out of the box, and test mode gives bots a full practice exchange before real money is involved. There is also an MCP server at leokit.dev/mcp for conversational AI.