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

@cavos/cli

v0.1.1

Published

Node.js SDK + CLI for AI agents to control Cavos wallets on Starknet

Readme

@cavos/cli

Cavos CLI is the ultimate toolkit for AI Agents to interact with Starknet (Mainnet). It provides a session-key based wallet interface designed for both human manual use and autonomous agent execution.

Features

  • Session Management: Securely import and manage session keys.
  • Wallet Operations: Transfer tones, check balances, approve spenders.
  • Contract Interaction: Call view functions, execute transactions, and simulate execution.
  • AI-Native Tools:
    • Introspection: Fetch contract ABIs (cavos contract get-abi) so agents know how to call functions.
    • Monitoring: distinct transaction status checks (cavos tx status).
    • Events: Listen to on-chain events (cavos events list).
  • structured JSON Output: All commands support --json for easy parsing by LLMs.

Installation

For Humans (Global Install)

npm install -g @cavos/cli

For Agents / Scripts (On the fly)

npx @cavos/cli <command>

Setup

Before acting, you need a session token. You can generate one from your Cavos Dashboard.

  1. Import Session:

    cavos session import "eyJhbG..."
  2. Verify Status:

    cavos whoami

Usage

Basic Commands

Check Balance:

cavos balance
# OR specific token
cavos balance --token STRK

Transfer Funds:

# Send 10 STRK
cavos transfer --to 0xRecipient --amount 10 --token STRK

Approve Spender:

# Approve a DEX to spend 100 STRK
cavos approve --spender 0xRouter --amount 100 --token STRK

Advanced Contract Interaction

Read-Only Call:

cavos call --contract 0xContract --entrypoint balance_of --calldata "0xUser"

Execute Transaction:

cavos execute --contract 0xSwap --entrypoint swap --calldata "100,0"

Simulate Execution (Dry Run):

cavos simulate --contract 0xSwap --entrypoint swap --calldata "100,0"

AI Agent Features (Phase 2)

These commands are designed to help AI agents understand the environment and debug their own actions.

1. Introspection (Get ABI): Agents can discover available functions on any contract.

cavos contract get-abi --address 0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d

Returns a clean JSON ABI.

2. Transaction Monitoring: Check why a transaction failed or if it's confirmed.

cavos tx status --hash 0xTxHash

Returns execution status, finality, and revert reason if failed.

3. Event Listening: Monitor the chain for specific events (e.g., "Transfer").

cavos events list --contract 0xToken --keys 0xEventHash

Integration with LLMs

You can feed the output of cavos tools list directly to OpenAI's function calling API to give your agent full control over the CLI.

cavos tools list

All commands output structured JSON when using the --json flag:

cavos whoami --json

Output:

{
  "status": "ok",
  "mode": "disk",
  "address": "0x123...",
  "deployed": true,
  "session": {
    "registered": true,
    "expired": false,
    "can_renew": true
  }
}

License

MIT