Skip to main content
skill CX Codex

nansen-smart-alerts — Claude Code skill for Nansen alerts

This skill lets your agent manage Nansen smart alerts: create a rule, list existing ones, edit, toggle or delete it. Handy when you want token flow and smart money alerts without leaving the terminal.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add nansen-ai/nansen-cli --skill nansen-smart-alerts -a claude-code
Open on GitHub

What nansen-smart-alerts does

The skill wraps the nansen CLI and restricts the agent to that binary. It documents three alert types. sm-token-flows watches aggregated smart money inflow and outflow, common-token-transfer catches transfer events, and smart-contract-call fires on contract calls. Each type comes with its own flags: USD thresholds over 1h, 1d and 7d windows, plus filters for tokens, sectors, token age and market cap.

Notification channels are set at creation time. Telegram takes a chat ID, Slack and Discord take webhook URLs, and --webhook points at any HTTP endpoint. That endpoint has to be publicly reachable and answer with a 2xx code, since Nansen posts the alert payload to it. Fields without a named flag go through --data '<json>', which merges raw JSON on top of the other options.

You need the nansen binary and a NANSEN_API_KEY. Without the key nothing runs: browser login via the nansen:api session exists only in CLI 2.0.0 and only in the macOS arm64 preview build. Run nansen auth status to see which credential is selected.

What it helps with

  • create an alert on smart money inflow above a USD threshold
  • list active alerts as a table
  • toggle an existing rule off
  • delete an alert by id
  • route notifications to Telegram, Slack or a custom webhook

Example prompts for the agent

  • List my alerts as a table with nansen alerts list --table
  • Create a smart money inflow alert for ETH above 5M per hour and send it to Telegram
  • Disable the alert with id 42

How to install nansen-smart-alerts

1Skills CLI (Vercel)

npx skills add nansen-ai/nansen-cli --skill nansen-smart-alerts -a claude-code

2Manually: put the files in place

~/.claude/skills/nansen-smart-alerts/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/nansen-smart-alerts/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about nansen-smart-alerts

How do I install nansen-smart-alerts in Claude Code?

Run npx skills add nansen-ai/nansen-cli --skill nansen-smart-alerts -a claude-code. The skill file lands at ~/.claude/skills/nansen-smart-alerts/SKILL.md.

What does nansen-smart-alerts do?

It manages Nansen smart alerts through the CLI: creating, listing, updating, toggling and deleting rules for smart money flows, token transfers and contract calls.

What does the skill need to run?

The nansen binary and a NANSEN_API_KEY. Browser login instead of a key works only in CLI 2.0.0 in the macOS arm64 preview build.

Source text

SKILL.md · MIT
---
name: nansen-smart-alerts
description: Manage smart alerts — list, create, update, toggle, delete. Use when setting up or managing token flow alerts, smart money alerts, or notification rules.
metadata:
  openclaw:
    requires:
      bins:
        - nansen
    primaryEnv: NANSEN_API_KEY
    install:
      - kind: node
        package: nansen-cli
        bins: [nansen]
allowed-tools: Bash(nansen:*)
---
## 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](https://github.com/nansen-ai/nansen-cli/blob/main/docs/browser-login.md#preview-platform-scope).



# Smart Alerts

CRUD management for smart alerts. Browser sessions and API keys use the same account and endpoint checks; privileged or internal service identity is not granted by login.

## Quick Reference

```bash
nansen alerts list --table
nansen alerts create --name <name> --type <type> --chains <chains> --telegram <chatId>
nansen alerts update <id> [--name <name>] [--chains <chains>]
nansen alerts toggle <id> --enabled|--disabled
nansen alerts delete <id>
```

## Options Reference

| Flag | Create | Update | Toggle | Delete |
|------|--------|--------|--------|--------|
| `<id>` (positional) | | required | required | required |
| `--name` | required | optional | | |
| `--type` | required | required with type-specific flags | | |
| `--chains` | recommended | optional | | |
| `--telegram` | chat ID | optional | | |
| `--slack` | webhook URL | optional | | |
| `--discord` | webhook URL | optional | | |
| `--webhook` | endpoint URL | optional | optional | |
| `--webhook-secret` | optional (webhook only) | optional | | |
| `--description` | optional | optional | | |
| `--enabled` | | flag | flag | |
| `--disabled` | flag | flag | flag | |
| `--data` | optional (JSON escape hatch) | optional | | |

## Alert Types

### 1. `sm-token-flows` — Smart Money Token Flows

Track aggregated SM inflow/outflow. At least one flow threshold should be specified.

**Type-specific flags:**
- `--inflow-1h-min/max`, `--inflow-1d-min/max`, `--inflow-7d-min/max` (USD thresholds)
- `--outflow-1h-min/max`, `--outflow-1d-min/max`, `--outflow-7d-min/max`
- `--netflow-1h-min/max`, `--netflow-1d-min/max`, `--netflow-7d-min/max`
- `--token <address:chain>` (repeatable) — include specific tokens
- `--exclude-token <address:chain>` (repeatable)
- `--token-sector <name>` / `--exclude-token-sector <name>` (repeatable)
- `--token-age-max <days>`
- `--market-cap-min/max <usd>`, `--fdv-min/max <usd>`

**Example:**
```bash
nansen alerts create \
  --name 'SM ETH Inflow >5M' \
  --type sm-token-flows \
  --chains ethereum \
  --telegram 5238612255 \
  --inflow-1h-min 5000000 \
  --token 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:ethereum
```

### 2. `common-token-transfer` — Token Transfer Events

Track real-time transfer events matching specified criteria.

**Subject types:** `address`, `entity`, `label`, `custom-label`
Format: `--subject type:value` (e.g. `--subject label:"Centralized Exchange"`)

**Type-specific flags:**
- `--events <buy,sell,swap,send,receive>` (comma-separated)
- `--usd-min/max <usd>`, `--token-amount-min/max <n>`
- `--subject <type:value>` (repeatable) — addresses/entities/labels to track
- `--counterparty <type:value>` (repeatable) — requires `--subject`
- `--token <address:chain>` / `--exclude-token <address:chain>` (repeatable)
- `--token-sector <name>` / `--exclude-token-sector <name>` (repeatable)
- `--token-age-min/max <days>`, `--market-cap-min/max <usd>`
- `--exclude-from <type:value>` / `--exclude-to <type:value>` (repeatable)

**Event direction notes:**
- `buy` for counterparties = `sell` for subjects
- `send` for counterparties = `receive` for subjects
- To track "any address sending to CEX": use `--subject` with `receive`, not `--counterparty` with `send`

**Example:**
```bash
nansen alerts create \
  --name 'Large USDC Transfers' \
  --type common-token-transfer \
  --chains ethereum \
  --telegram 123456789 \
  --events send,receive \
  --usd-min 1000000 \
  --token 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48:ethereum
```

### 3. `smart-contract-call` — Smart Contract Interactions

Track contract calls matching specified criteria.

**Type-specific flags:**
- `--usd-min/max <usd>`
- `--signature-hash <hash>` (repeatable, e.g. `0x095ea7b3` for `approve`)
- `--caller <type:value>` / `--exclude-caller <type:value>` (repeatable)
- `--contract <type:value>` / `--exclude-contract <type:value>` (repeatable)

**Example:**
```bash
nansen alerts create \
  --name 'Uniswap V3 Large Swaps' \
  --type smart-contract-call \
  --chains ethereum \
  --telegram 123456789 \
  --usd-min 1000000 \
  --contract entity:"Uniswap V3"
```

## Notes

- Chain aliases: Hyperliquid = `hyperevm`, BSC = `bnb`.
- Multiple channels can be combined: `--telegram 123 --slack https://... --webhook https://...`
- `--webhook <url>` sends a POST request with the alert payload to any HTTP/HTTPS endpoint. Useful for server deployments, Zapier, n8n, or custom integrations. The endpoint must be publicly reachable and return a 2xx response.
- `--data '<json>'` merges raw JSON on top of named flags (escape hatch for fields without named flags).
- Alert endpoints retain their normal ownership, plan and quota checks for both selected credentials.
- Use single quotes for names with `$` or special characters: `--name 'SM >$1M'`

Browser login uses `nansen:api` with the same account API permissions as an API key, subject to existing plan/account/endpoint checks. Trading still requires a separately configured wallet and its signing authorization. Hosted simulation uses the selected credential only on the matching trusted Nansen API origin; arbitrary RPC endpoints never receive Nansen credentials.

© nansen-ai · MIT · nansen-ai/nansen-cli

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set13

nansen-trading Executes DEX swaps on Solana and Base, handles cross-chain bridges, and manages limit orders through nansen-cli. Helps agents price and sign crypto trades. CX Codex +1 430installs nansen-wallet-profiler A skill that profiles a crypto wallet: balance, PnL, labels, transactions, counterparties. Useful when you need to dig into one address or compare two. CX Codex +1 407installs nansen-general-search This skill looks up tokens and entities by name through the Nansen CLI and returns the address, ticker and chain. Handy when all you have is a token name. CX Codex +1 406installs nansen-defi-positions Breaks a wallet's DeFi positions down by protocol and chain: assets, debts, rewards. Useful when you need to see what the address actually holds. CX Codex +1 404installs nansen-wallet-deep-dive The skill runs a wallet through labels, balance, PnL, transactions, perp positions and counterparties via the Nansen CLI. Useful when you need to know who is behind an address. CX Codex +1 383installs nansen-wallet-clustering A Claude skill that traces related wallets through the Nansen CLI: funding chains, shared signers, exchange deposit patterns. CX Codex +1 381installs nansen-wallet-batch A skill for Claude Code and other coding agents to batch-profile crypto addresses in Nansen. It filters lists for smart money and funds in a single CLI call. CX Codex +1 375installs nansen-wallet-manager A skill for managing crypto wallets through the nansen CLI: create, list, show, send tokens, export. Useful when an agent needs to handle a wallet from the terminal. CX Codex +1 366installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor