Skip to content
nansen-ai avatar

Nansen Wallet Keychain Migration

Migration guide that moves a nansen-cli wallet from plaintext password files to OS keychain storage.

CCM score
60 of 100
skills.sh installs
366
GitHub stars
151
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers four migration paths: password in ~/.nansen/.env, password in .credentials, password only in NANSEN_WALLET_PASSWORD, and a lost-password recovery path
  • Includes state detection via nansen auth status --pretty and nansen doctor --offline, plus post-migration decryption checks
  • Enforces exit-code-only verification so private keys from nansen wallet export --reveal never reach transcripts or logs
  • Designed for agents helping users who created a wallet before the keychain update and need to secure their password

Install

$ npx -y skills add nansen-ai/nansen-cli --skill nansen-wallet-keychain-migration -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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.

Wallet Migration — Old Flow to Secure Keychain

Use this skill when a user already has a nansen-cli wallet set up with the old password storage method and wants to migrate to the new secure flow.

When to use

Details

Repository
github.com/nansen-ai/nansen-cli
Categories
Web3 & Crypto, Security
First seen
Jun 3, 2026

Questions

What does the nansen-wallet-keychain-migration skill do?

The nansen-wallet-keychain-migration skill moves an existing nansen-cli wallet from insecure password storage, such as ~/.nansen/.env or the .credentials file, into the new keychain-backed flow. It checks where the password is stored and then verifies that the keychain password can decrypt the wallet.

Who should use the nansen-wallet-keychain-migration skill?

The nansen-wallet-keychain-migration skill is for users who created a nansen-cli wallet with the old password storage method. It also fits users who see the warning that the password was loaded from an insecure .credentials file or who ask to migrate to keychain.

How do I install the nansen-wallet-keychain-migration skill?

Run npx -y skills add nansen-ai/nansen-cli --skill nansen-wallet-keychain-migration -y in your project. After that, the agent can use the nansen-wallet-keychain-migration skill to move your stored wallet password into the keychain.

What does the nansen-wallet-keychain-migration skill need to run?

The nansen-wallet-keychain-migration skill needs the nansen CLI binary, which it installs from the nansen-cli package. It also uses NANSEN_API_KEY as its primary environment variable and needs your wallet password, which the agent must ask you for rather than generate.

Where does the nansen-wallet-keychain-migration skill sit in its category?

The nansen-wallet-keychain-migration skill is listed in the Web3 & Crypto category next to solana-dev and binance-agentic-wallet. Its own focus is narrow: it migrates an existing nansen-cli wallet password into the OS keychain rather than trading or market data.

More from nansen-ai/nansen-cli

All 33

Similar to Nansen Wallet Keychain Migration

More Web3 & Crypto