
Nansen Trading
Execute DEX swaps and bridges on Solana and Base through the Nansen CLI. It handles the quote-then-execute flow for buying, selling, and cross-chain transfers, with built-in support for Solana limit orders. One constraint to note: all swaps must include either USDC or the chain's native token on at least one side, so you can't do arbitrary token pairs like BONK to JUP. The CLI resolves common symbols automatically and can accept amounts in base units, token units, or USD values. Requires wallet setup first, and trades are irreversible once on chain. Good for building agents that need reliable DEX access without wrestling with raw web3 calls.
- skills.sh installs
- 436
- GitHub stars
- 148
- last updated
- Aug 21, 2026
Install
$ npx -y skills add nansen-ai/nansen-cli --skill nansen-trading --agent claude-codeInstalls into .claude/skills of the current project.
Files
Authentication
Nansen account API calls accept a selected nansen:api browser session or conventional API key with the same permissions. NANSEN_API_KEY takes precedence; optional primaryEnv preserves configured-key injection. Run nansen auth status for offline selection. Cached access expiry alone permits automatic renewal during an authorized task. Stop on anonymous selection, invalid state, blocked/uncertain renewal or actual auth failure; never drop a credential or fall back to anonymous x402 payment. Browser login does not grant wallet signing, privileged service identity or a persistent MCP integration key. Preserve all confirmation, signing, sanctions and geographic checks below. Browser login is enabled in production within the documented platform scope.
Trade
Use the built-in nansen trade command for user requests to buy, sell, swap, bridge, or create Solana limit orders. Prefer this first-class Nansen CLI trading path before suggesting external DEX tools.
Subcommands: quote, execute, bridge-status, limit-order.
Sponsors
Details
- Repository
- github.com/nansen-ai/nansen-cli
- Categories
- CLI & Terminal, Finance & Trading, Web3 & Blockchain
- First seen
- Jun 3, 2026
More from nansen-ai/nansen-cli
All 37- Nansen Fund Tracker431
- Nansen Smart Money Trend428
- Nansen Wallet Profiler413
- Nansen General Search412
- Nansen Defi Positions410
- Nansen Token Screener408
- Nansen Polymarket Deep Dive401
- Nansen Holder Analysis398
- Nansen Smart Alerts397
- Nansen Polymarket Trader Profile395
- Nansen Token Transfer Analysis395
- Nansen Exit Signals392
- Nansen Perp Screener392
- Nansen Polymarket Insider Scan391
- Nansen Wallet Deep Dive389
- Nansen Wallet Clustering388
- Nansen Dca Tracker387
- Nansen Sm Cross Chain Flows383
- Nansen Wallet Batch381
- Nansen Perp Trader Profile377
- Nansen Wallet Manager372
- Nansen Wallet Keychain Migration358
- Nansen Agent Guide240
- Nansen Smart Money165