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

botanary

v0.6.1

Published

Botanary from your terminal - a guided CLI over the same wallet and agent lanes botanary-mcp exposes to a coding agent.

Readme

botanary

Botanary from your terminal - a guided CLI over the same wallet and agent lanes botanary-mcp exposes to a coding agent. Shares its identity and session storage (~/.botanary-mcp, override with BOTANARY_MCP_HOME): log in once, from either surface, and both see it.

Renamed in 0.2.0

agent whoami used to print this machine's local key readout. It now asks the backend what Botanary actually says about this agent (claimed? live? which account? which grant?), which is what the name means everywhere else. The local readout moved to agent identity, unchanged.

New in 0.4.0

This release closes the gap between what the web app can write and what this CLI could reach: solana (send, swap, and Botanary Mandates Program grant/freeze/revoke), mandates grant|freeze|unfreeze|revoke|confirm|pause|resume|cancel, signers guardian set, signers policy set|remove, signers condition-set, signers migrate, rules update, agentwallet deposit and approvals announce. test/sign-kind-parity.spec.ts is the durable guard behind this: it asserts every registered, available sign-kind the backend serves is reachable from a command here, so this gap cannot silently reopen. See "What this CLI cannot do" below for the two real, remaining exceptions.

Install

npx botanary          # zero-install, always latest
npm i -g botanary     # resident on PATH

Use

Run botanary with no arguments for a guided REPL, or run any command directly:

botanary login
botanary balance
botanary send --amount 25 --token 0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913 --recipient 0xAb12...9F3 --chain-id 8453
botanary agent whoami
botanary mcp config claude

Every command works both ways: answer prompts interactively, or pass flags and add --json for scripts and CI. --json also auto-enables whenever stdout is piped or redirected.

Commands

Every command below is real and registered - test/help-format.spec.ts fails the build if one is missing a description or help metadata, and test/sign-kind-parity.spec.ts fails it if a mutating command's own backend counterpart (a "sign-kind") exists but nothing here reaches it. Run botanary <command> --help for a command's own flags, or botanary prompt for every command, every flag, and worked examples in one place.

| Command | Description | |---------|-------------| | Wallet | | | login | Log in as the account owner, in your browser | | logout | Revoke and clear the stored owner session | | status | Owner session and this machine's agent binding, side by side | | whoami | Who Botanary says you are, in both lanes | | chains | Every chain this backend serves, and what each can do | | gas [options] | Gas methods available for this account on a chain | | balance | What this account holds, across every chain | | tokens [options] [query] | Every token held on a chain, with the address send needs | | send [options] | Send tokens from an account you own | | swap [options] | Swap tokens in an account you own | | activity | Recent sends, swaps and yield transactions | | markets | Public market data: prices and symbols | | yield | Yield pools, a shortlist, and this account's positions | | yield deposit [options] | Deposit into a yield pool | | yield withdraw [options] | Withdraw from a yield pool | | yield claim [options] | Claim accrued rewards from a yield pool | | solana | Send, swap and manage Botanary Mandates on Solana - key-keyed, not chainId-keyed | | solana send [options] | Send tokens on Solana (raw base-unit amount) | | solana swap [options] | Swap tokens on Solana (human-scale amount) | | solana mandate | Grant, freeze/unfreeze and revoke Botanary Mandates Program delegations on Solana | | solana mandate grant [options] | Grant a bounded Solana mandate | | solana mandate freeze [options] | Freeze (or --unfreeze) every Solana mandate for this owner at once | | solana mandate revoke <id> [options] | Revoke a Solana mandate | | mandates | What the agent lane may spend unattended (testnet only) - reads both delegations and mandates | | mandates suggest | Suggest a bounded mandate for each agent that has none | | mandates propose [options] | Compile a parsed rule/mandate intent against the capability matrix (a pure read) | | mandates grant [options] | Grant bounded access to a delegatee agent (a Smart Session, the classic delegation lane) | | mandates freeze <delegationId> | Freeze a delegation (reversible) | | mandates unfreeze <delegationId> | Unfreeze a delegation | | mandates revoke <delegationId> | Revoke a delegation (permanent) | | mandates confirm [options] | Confirm and enable proposed mandates or rules, from mandates propose | | mandates pause <mandateId> | Pause a mandate (reversible) | | mandates resume <mandateId> | Resume a paused mandate | | mandates cancel <mandateId> | Revoke a mandate (permanent) - named cancel, not revoke, to stay distinct from mandates revoke, which targets a delegation, a different id space | | agents | Connected agents and any pending approval requests | | agents approve <id> | Approve an agent's request - the owner signs, the agent can never approve its own request | | agents deny <id> | Read-only. There is no deny route on the backend - reads the request back and explains why | | agents claim <code> [options] | Claim a pending pairing and bind that agent to this account | | agents revoke <id> | Disconnect an agent from this account | | account | Deploy, set up, fund, freeze/unfreeze and migrate this account | | account deploy | Mint a new account with its own address (always the next CREATE2 index) | | account setup [options] | Install every account module this chain is missing | | account fund [options] | Mint testnet USDC into this account (testnet faucet top-up) | | account freeze [options] | Freeze this account (kill-switch) | | account unfreeze [options] | Unfreeze this account | | account migrate [options] | Migrate this account to today's address | | account rename [accountId] [options] | Rename (and/or hide/unhide) an account - off-chain metadata only | | recovery | Social recovery: guardians and the emergency signer-set replacement | | recovery status | The live guardian set on this account | | recovery install [options] | Install social recovery with a guardian set and an M-of-N threshold | | recovery guardian add [options] | Add a recovery guardian | | recovery guardian remove <guardianId> [options] | Remove a recovery guardian | | recovery recover [options] | Replace this account's whole signer set (the emergency lane) | | signers | This account's enrolled signers (the v1 authority core, BotanaryPolicyValidator) | | signers list | Every enrolled signer, by index | | signers add [options] | Enrol a new ECDSA signer on this chain | | signers remove [options] | Remove a signer from this chain, by index | | signers threshold [options] | Set the account-wide signer approval threshold | | signers trust-anchor [options] | Mirror an issuer's currently-active signing key onto this account | | signers guardian set [options] | Set the policy-validator guardian threshold over a subset of signer indexes (not recovery guardian - a different contract) | | signers policy set [options] | Write (or overwrite) the conditional signing policy at a slot | | signers policy remove [options] | Remove the conditional signing policy at a slot | | signers condition-set [options] | Add or remove a condition-set member | | signers migrate [options] | Upgrade this account's authority core onto BotanaryPolicyValidator (step 1 of 2) | | devices | Co-signer devices on this account's OwnableValidator root | | devices list | The live device set and its M-of-N threshold | | devices add [options] | Add a device as a co-signer | | devices remove [options] | Remove a device from the co-signer set | | devices threshold [options] | Set the M-of-N device signing threshold | | panic | The panic freeze lane: any one listed device can freeze the account, gas-abstractedly | | panic install [options] | Install the panic freeze lane | | panic freeze [options] | Freeze the account via the panic lane | | rules | Owner-lane caps and allowlist on this account's AgentGuard hook | | rules update [options] | Update account caps and/or the contract/recipient allowlist, from JSON files | | notifications [options] | Alerts - blocked actions, depeg warnings, and the like | | notifications read <id> | Mark one notification as read | | notifications read-all | Mark every notification as read | | paysh | pay.sh: the x402 spending balance and its guardrails | | paysh accounts | This account's recorded pay.sh accounts (read-only - creation is Privy-client-side) | | paysh topup [options] | Top up the pay.sh balance | | paysh withdraw [options] | Withdraw from a pay.sh account's custodial Solana USDC balance | | paysh allowlist <accountId> | Read-only. The trusted pay.sh domains for this account | | paysh settings <accountId> | Read-only. This account's persisted default copilot pay.sh mode | | marketplace | Hire an ACP agent under a bounded mandate, and run its jobs | | marketplace hire [options] | Hire an ACP agent under a bounded mandate | | marketplace deposit [options] | Deposit into a Virtuals-custodied wallet | | marketplace jobs create [options] | Create an ACP job under a mandate (op 1 of a hire) | | marketplace jobs fund [options] | Fund an ACP job under a mandate (op 2 of a hire) | | apis | The x402 paid-API catalog, and the on-chain spending budget backing it | | apis budget <chainId> <agentId> | Read the current API budget and its state | | apis budget commit [options] | Commit a three-transaction atomic API spending budget | | apis providers [options] | Ranked, searchable catalog of x402 API providers | | onramp [options] | Start a fiat-to-crypto Buy checkout session - no UserOp, no signature | | onramp methods | Chains currently buyable through the wired onramp provider | | agentwallet | Deposit into a Virtuals agent wallet | | agentwallet deposit [options] | Deposit into a Virtuals agent wallet (distinct from marketplace deposit) | | approvals | Announce a collected off-chain approval | | approvals announce <digest> [options] | Announce a collected approval, by its digest | | open [target] | Open Botanary in your browser | | accounts | Manage which owner account subsequent commands use | | accounts list | Every account this login can see | | accounts use <accountId> | Switch the active account | | api [options] [path] | Read any documented GET endpoint as the owner | | sign | Owner-authorized writes: park a typed intent and wait for your browser to sign it - the ONE write path underneath every command above | | sign list | Sign requests this machine parked and is still waiting on | | sign show <id> | Read one sign request by id, with its op status | | sign resume <handle> | Rejoin an interrupted wait on a sign request this machine parked | | watch | Tail live events in the foreground: agent requests, balance changes, sign-request status | | Agent | | | agent | This machine's own agent identity, grant, and spend under it | | agent identity | This machine's local agent key: address, public key, fingerprint | | agent whoami | What Botanary says about this agent: claimed, live, which account | | agent account [options] | The one account this agent is bound to | | agent balance | The bound account's balance, read as this agent | | agent request [options] | Ask the owner to approve something this grant cannot cover | | agent pair [options] | Show (or rotate) the pairing code and register it with Botanary | | agent grant | This agent's current grant, rendered in plain terms | | agent requests | Every approval request this agent has filed, and the owner's verdict on each | | agent spend [options] | Spend under this agent's own grant, unattended | | agent swap [options] | Swap under this agent's own grant, unattended | | agent status <opId> | Check on a pending action this agent relayed | | agent apis [options] | Paid (x402) API endpoints this agent may call, with live price and remaining budget | | agent pay [options] <endpointId> | Call a paid API endpoint and pay for it inside the owner-committed budget | | agent budget [options] | Remaining authorizations, per-call max, expiry and epoch for this agent on a chain | | agent forget | Step 1 of 2: preview what forgetting the local identity would destroy | | agent confirm-forget <token> | Step 2 of 2: actually delete the agent key from this machine | | Connect | | | mcp | Connect a coding agent to Botanary via botanary-mcp | | mcp config | Print the install snippet for a client | | mcp install | Install botanary-mcp using that client's own CLI | | mcp serve | Run the botanary-mcp server on stdio | | System | | | diagnose | Start here when anything is unclear or an action failed | | doctor | The same readiness check as diagnose | | config | Where identity and session live, and this machine's CLI defaults | | config list | Every setting, its value, and where that value came from | | config get | Print one stored config value | | config set | Store a default for one setting | | config unset | Remove one stored default | | Utilities | | | version | Print the installed botanary CLI version | | docs [topic] | Open the Botanary documentation in your browser | | completion <shell> | Print a shell completion script (bash, zsh, fish, powershell) | | prompt | Print the full operating manual for an automation driving this CLI | | update-check | Check whether a newer botanary is published | | update | Update botanary to the latest published version |

What this CLI cannot do

Terminal-first parity is not total parity. Two genuine gaps remain, both by design rather than oversight:

  • agents deny does not exist as a write. The backend (AgentsController) has no deny, decline or reject route for an agent's request at all - only requests/{id}/approve. An owner can approve an agent's request from the terminal but cannot deny one; a request is either approved or left to expire on its own. agents deny <id> ships as a read-only command that explains this rather than failing with an opaque "unknown command".
  • paysh allowlist and paysh settings are refused as writes for any CLI session. The backend's own CliSessionForbidden gate 403s them because pay.sh and agent-wallet writes move value with no owner signature anywhere in the loop - a CLI session (kind: 'cli', minted by botanary login) is read-only there by design. Both ship as reads only; make the change in the web app.

Separately, solana.send/solana.swap cover Solana; Stellar sends and swaps are not reachable from anywhere - not this CLI, not botanary-mcp, not the web app. Review panels exist on the backend's own sign-kind registry, but there is no client-side Stellar signing infrastructure anywhere in this workspace (no @stellar/stellar-sdk, no Stellar signer in the auth store), so nothing can actually sign a Stellar operation yet. This is a signing-infrastructure gap, not a CLI gap.

test/sign-kind-parity.spec.ts is what proves these are the only gaps: it walks the backend's sign-kind registry and fails the build if any AVAILABLE kind (i.e. not one of the two Stellar kinds above, which the registry itself marks unavailable) has no reachable command.

Non-interactive use

Use --json to get machine-readable output, --yes to skip the review step on money commands, and --dry-run to preflight without sending. The failure contract is strict: on success, stdout is the response payload (or a plain string); on failure, stdout carries an error object.

Global options

  • -v, --version - Print the installed botanary CLI version
  • -h, --help - Display help for command
  • --chain <id|key> - Default chain: an EVM chain id (8453) or a chain key (solana)
  • --account <accountId> - Owner account to act as
  • --api-url <url> - Botanary API base URL
  • --home <dir> - Directory holding identity, session and CLI config
  • --json - Force JSON output (auto-enabled when piped)
  • --raw - Print the full raw JSON payload instead of a table
  • -q, --quiet - Suppress non-essential output
  • --verbose - Show detail an ordinary run leaves out
  • --no-color - Disable color output
  • --reveal - Show redacted values in plain text
  • --no-interactive - Disable prompts and the REPL
  • --timeout <ms> - Abort any single request after this many milliseconds
  • --debug - Log one redacted line per HTTP request to stderr
  • -y, --yes - Skip the review step on a command that moves funds
  • --dry-run - Preflight only: never create a sign request, never relay

Failure envelope

On failure with --json, stdout carries a single JSON line. The error object always has code and message. The hint field is optional and must not be assumed to exist.

Example:

{"ok":false,"error":{"code":"declined","message":"...","hint":"..."}}

Branch on the exit code first and on error.code second. Never string-match a message.

Exit codes

| Code | Meaning | |------|---------| | 0 | Success | | 1 | Error | | 2 | Invalid arguments | | 3 | Not logged in, or not paired | | 4 | Declined (policy, bounds, or chain tier) | | 5 | Pending: relayed, settlement unknown | | 6 | Upstream unavailable (network, RPC, bundler) | | 130 | Interrupted (SIGINT) |

Configuration

Configuration lives in ~/.botanary-mcp/cli-config.json (override the directory with BOTANARY_MCP_HOME). Six config keys control defaults:

  • chainId - Default chain for commands that ask: an EVM chain id (e.g. 8453) or a chain key (e.g. solana)
  • accountId - Owner account to act as by default
  • apiUrl - Botanary API base URL
  • output - auto (intelligent), json, or raw
  • color - auto (intelligent) or never
  • confirm - always (require confirmation) or never (auto-confirm). Set to never to skip review prompts by default, though --dry-run is always available

Precedence: flag, then environment variable, then stored config, then built-in default. Run botanary config list to see every setting's current value and where it came from. Relevant environment variables:

  • BOTANARY_CHAIN_ID - Default chain
  • BOTANARY_ACCOUNT_ID - Default account
  • BOTANARY_API_URL - API base URL
  • BOTANARY_JSON - Force JSON output
  • BOTANARY_TIMEOUT_MS - Request timeout in milliseconds
  • NO_COLOR - Disable color (any value)
  • BOTANARY_MCP_HOME - Override identity and config storage directory
  • BOTANARY_AGENT_PROFILE - Which agent identity to act as (same as --profile)

Shell completion

Install the completion script your shell uses:

# zsh
botanary completion zsh > ~/.zsh/completions/_botanary
# or add to ~/.zshrc:
eval "$(botanary completion zsh)"

# bash
botanary completion bash >> ~/.bashrc
# then reload:
source ~/.bashrc

# fish
botanary completion fish | source

# PowerShell
botanary completion powershell | Out-String | Invoke-Expression

Driving it from an agent

To run botanary non-interactively from a script or agent:

  1. Use --json on every command to get machine-readable output.
  2. Use --yes on any command that moves funds (send, agent spend, agent swap, etc.) to skip the review step.
  3. Use --dry-run first to preflight a payment without sending it.
  4. Exit code 5 means the operation was relayed but settlement is unknown. For an owner-lane send, poll botanary api /userops/<opId> --json instead of retrying. For an agent spend, poll botanary agent status <opId> --json.

See botanary prompt for the full operating manual, including every command, every flag, and examples for every lane.

Development

pnpm install
pnpm build
pnpm test
pnpm dev     # run bin/botanary.ts directly, watching for changes

Why send requires a token address, not a symbol

The send command requires a contract address or CAIP-19 asset ref, never a symbol. This is by design: a symbol is a label a contract picks for itself, and two contracts on one chain can legally share the same symbol. The product will not guess which one you meant. Use botanary tokens --chain-id <id> [query] to list every token this account holds on a chain, each with the contract address --token needs.

--profile

Which agent identity to act as. botanary-mcp gives every coding tool its own keypair, derived from the MCP clientInfo.name the client sends at initialize - but the CLI is not an MCP client and reports no such name, so it stays on the machine's default identity unless told otherwise. On a machine that paired before profiles existed, that is the same agent it already had.

--profile trading addresses the bare profile trading, not cli.trading. That is deliberate: attributing an identity to a tool that never reported itself would be inventing provenance, and this lane exists to inspect and manage identities a coding tool created, not to claim a namespace of its own.

Both --profile and --home land in the environment before anything resolves a path, so they apply to the identity keystore, the session store and the config file alike.

BOTANARY_MCP_HOME and BOTANARY_API_URL behave exactly as documented in botanary-mcp's own README - this package depends on that one as its engine and adds no storage or network logic of its own.

Release note

botanary depends on botanary-mcp as its engine, so the two publish in a fixed order:

  1. [email protected] is published to npm. Done - it carries the optional login and send progress callbacks this CLI needs to print a login code and an approval URL before its poll loop, rather than after it.
  2. tools/botanary-cli/package.json depends on ^0.6.0 from the registry. Done - the suite and the mcp serve smoke check both pass against the published package, not a local link.
  3. [email protected] publishes.

Repeat that order for any future release where the CLI needs a change in the engine: a botanary published against an unpublished botanary-mcp installs broken.

See docs/superpowers/specs/2026-08-19-botanary-cli-completion-design.md section 5 for the rationale.

0.4.0 (the terminal-first sign-kind parity release)

Same fixed order, and it matters for the same reason: npm's caret on a 0.x version is restrictive, so "botanary-mcp": "^0.7.0" means >=0.7.0 <0.8.0 and would never resolve to 0.8.0 on its own.

  1. [email protected] publishes to npm first.
  2. tools/botanary-cli/package.json's botanary-mcp dependency bumps from ^0.7.0 to ^0.8.0, alongside botanary's own bump to 0.4.0. Both version numbers are already bumped in this repo - the CLI's actual dependency resolution (a real pnpm install against the published 0.8.0) happens in the publish task, not here, since 0.8.0 does not exist on the registry until step 1 runs.
  3. [email protected] publishes.