nansen-trading

nansen-trading is a skill for Claude Code from nansen-ai/nansen-cli. It costs 54 tokens per session (3,513 once invoked), scanned A, original, MIT.

A trading tool for swapping and bridging crypto on Solana or Base, and for trading perpetual futures on Hyperliquid. A bridge moves assets between blockchain networks; perpetuals are futures contracts without a fixed expiry.

In plain words
What is it for?
Use it to get swap quotes, execute supported swaps, check bridge status, create Solana limit orders, and open, close, or manage Hyperliquid perpetual positions.
Why use it?
It provides a quote-before-execution workflow for supported trades, helping you review a transaction before submitting it on-chain.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: built for openclaw.

not rated 139repo changed 23d ago A scan Socket: warnSnyk: warnSkillSpector: warn 54 tokens original MIT

Good fit Use it to get swap quotes, execute supported swaps, check bridge status, create Solana limit orders, and open, close, or manage Hyperliquid perpetual positions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nansen-ai/nansen-cli/nansen-trading
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nansen-ai/nansen-cli --skill nansen-trading
Clone the repo
git clone --depth 1 https://github.com/nansen-ai/nansen-cli

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nansen-trading

README.md
[![agentmods](https://agentmods.dev/badge/skills/nansen-ai/nansen-cli/nansen-trading/github.svg)](https://agentmods.dev/skills/nansen-ai/nansen-cli/nansen-trading)
Your own site
<a href="https://agentmods.dev/skills/nansen-ai/nansen-cli/nansen-trading"><img src="https://agentmods.dev/badge/skills/nansen-ai/nansen-cli/nansen-trading/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nansen-trading

Your own site · 80×15
<a href="https://agentmods.dev/skills/nansen-ai/nansen-cli/nansen-trading"><img src="https://agentmods.dev/badge/skills/nansen-ai/nansen-cli/nansen-trading.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,513 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket warn 24 Sept 2026
  • Snyk warn 24 Sept 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 183
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.03513
Opus 5.5 $0.00022 $0.01405
Sonnet 5.5 $0.00011 $0.00703
Haiku 4.5 $0.00005 $0.00351

Measured 23d ago against content hash 3bcb546b1049, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nansen-trading scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 23d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/nansen-trading/SKILL.md · 273 lines

How it starts

The opening of the file, as written. The whole thing — 273 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 available in CLI 2.0.0 within the macOS arm64 preview 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.

Two-step flow: quote then execute. Trades are irreversible once on-chain.

Prerequisite: You need a wallet first. Run nansen wallet create before trading.

Quote

nansen trade quote \
  --chain solana \
  --from SOL \
  --to USDC \
  --amount 1000000000

Symbols resolve automatically: SOL, ETH, USDC, USDT, WETH. Raw addresses also work. Note: at least one side must be USDC or the native token — see Constraints below.

Constraints

Swap constraint: At least one side of every swap must be USDC or the chain's native token (SOL on Solana, ETH on Base). Arbitrary token-to-token swaps (e.g. WETH→USDT, BONK→JUP) are rejected.

  • USDC (Solana): EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
  • USDC (Base): 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
  • Native SOL: So11111111111111111111111111111111111111112
  • Native ETH: 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

Read the full file on GitHub · 273 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 23d ago Changed 3bcb546b1049
  2. 27d ago Changed · +6 lines 4c67f9d89387
  3. 1mo ago Changed · +19 lines 908f9ee26200
  4. 1mo ago First seen · 248 lines · 54 tokens per session scan A e9244469dc33

Subscribe to this mod's changes

nansen-trading is a skill published in the GitHub repository nansen-ai/nansen-cli (139 stars, last pushed today), licensed MIT. It adds 54 tokens to every session and 3,513 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.