Nansen smart alerts

From nansen-ai/nansen-cli · View interactive version

Nansen smart alerts is an AI agent skill from the GitHub repository nansen-ai/nansen-cli. Manage smart alerts — list, create, update, toggle, delete. Use when setting up or managing token flow alerts, smart money alerts, or notification rules.

How to use this skill

Skill file

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.

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

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-stdin | optional (webhook only) | optional | | |

| --webhook-secret | optional (webhook only; prefer --webhook-secret-stdin) | 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:

Example:

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:

Event direction notes:

Example:

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

Notes

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.