nansen-cli 2.5.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,53 +0,0 @@
1
- ---
2
- name: nansen-web-fetcher
3
- description: Fetch and analyze content from one or more URLs using AI (Gemini 2.5 Flash). Use when you have specific URLs and need to extract or summarize their content. Pairs well with `nansen web search` results.
4
- metadata:
5
- openclaw:
6
- requires:
7
- bins:
8
- - nansen
9
- primaryEnv: NANSEN_API_KEY
10
- install:
11
- - kind: node
12
- package: nansen-cli
13
- bins: [nansen]
14
- allowed-tools: Bash(nansen:*)
15
- ---
16
- ## Authentication
17
-
18
- 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](https://github.com/nansen-ai/nansen-cli/blob/main/docs/browser-login.md#preview-platform-scope).
19
-
20
-
21
-
22
- # Web Fetch
23
-
24
- Fetch and analyze content from one or more URLs using Gemini 2.5 Flash with URL context.
25
-
26
- ```bash
27
- nansen web fetch https://nansen.ai --question "What products does Nansen offer?"
28
- nansen web fetch --url https://example.com --url https://other.com --question "Compare these two sites"
29
- nansen web fetch https://docs.uniswap.org/contracts/v4/overview --question "What changed in v4?"
30
- ```
31
-
32
- Positional args and `--url` flags can be combined — all become URLs to fetch.
33
-
34
- | Flag | Values | Default | Purpose |
35
- |------|--------|---------|---------|
36
- | `--url` | URL | — | URL to fetch (repeatable for multiple URLs, up to 20) |
37
- | `--question` | string | **required** | Question to answer about the URL content |
38
- | `--pretty` | flag | off | Human-readable JSON |
39
-
40
- Returns:
41
- - `analysis` — AI-generated answer to your question
42
- - `retrieved_urls` — URLs successfully fetched
43
- - `failed_urls` — URLs that could not be retrieved
44
-
45
- **Tip:** Combine with `web search` — search first to find relevant URLs, then fetch to get full content.
46
-
47
- ```bash
48
- # Find and analyze in two steps
49
- nansen web search "uniswap v4 launch" --num-results 3 --fields link
50
- nansen web fetch https://blog.uniswap.org/... --question "What are the key changes?"
51
- ```
52
-
53
- **Note:** 30s timeout. Paywalled or bot-blocked pages may appear in `failed_urls`.