npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@privy-io/agent-wallet-cli

v0.2.1

Published

CLI for AI agents to create Privy wallets and transact

Readme

@privy-io/agent-wallet-cli

CLI for AI agents to create Privy wallets and transact.

Installation

pnpm add -g @privy-io/agent-wallet-cli

Usage

privy-agent-wallet login                  # Log in and provision a wallet
privy-agent-wallet logout                 # Log out and clear local session
privy-agent-wallet list-wallets           # List your wallets
privy-agent-wallet rpc --json '<body>'    # Send a wallet RPC request
privy-agent-wallet fund                   # Fund a wallet via onramp

Authentication

The CLI authenticates via a browser-based Privy login flow. Run privy-agent-wallet login to open a browser window, sign in, and paste the credentials blob back into the CLI. The session is stored in the system keychain (macOS/Linux) or ~/.privy/session.json.

privy-agent-wallet login
# Opens browser → sign in → paste credentials → session saved

Wallet operations

After logging in, the CLI can manage wallets and send transactions:

# List your wallets
privy-agent-wallet list-wallets

# Send a transaction (Ethereum)
privy-agent-wallet rpc --json '{"method": "eth_sendTransaction", "params": {"transaction": {"to": "0x...", "value": 1000000000000000, "chainId": 8453}}}'

# Sign a message
privy-agent-wallet rpc --json '{"method": "personal_sign", "params": {"message": "hello"}}'

# Fund a wallet
privy-agent-wallet fund

Global options

| Flag | Description | | ----------------- | ----------------------------- | | --api-url <url> | Override the agent server URL | | -V, --version | Print version | | -h, --help | Print help |

The agent server URL can also be set via the PRIVY_AGENT_URL environment variable.

Local development

Build the CLI

# From the repo root
pnpm turbo run build --filter=@privy-io/agent-wallet-cli

Run against a local agent server

Start the agent server (see apps/agent-server/SETUP.md), then use the --local flag:

node dist/index.js --local login
node dist/index.js --local list-wallets

Or use the convenience script:

pnpm dev:local -- list-wallets

Watch mode

Rebuild on file changes during development:

pnpm dev

Type checking

pnpm check-types

Session storage

The CLI stores its session in the system keychain (macOS/Linux) with a file fallback at ~/.privy/session.json (0600 permissions). The session contains the signing keypair, wallet IDs, and addresses.

Run privy-agent-wallet logout to clear the session from both keychain and file.

Agent detection

The CLI automatically detects the calling environment (Cursor, Claude Code, terminal, etc.) and sends a privy-cli-client header to the agent server for analytics. This is based on environment variable sniffing and requires no configuration.