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

@kirha/cli

v0.1.5

Published

Official command-line interface for the Kirha API. LLM-friendly, JSON-first.

Readme


Kirha CLI

Run Kirha from your terminal.

curl -fsSL https://cli.kirha.com/install.sh | sh

# Login with your api apiKey
kirha auth login

[!TIP] Want your agent to do it? Tell it:

Fetch https://cli.kirha.com/llms.txt and follow it.

It'll install the CLI, set up the Kirha skill in your editor, and help you get an API key. All without leaving your agent session.

Anything you can do with the SDK you can do here: search, run research tasks, preview plans, call individual tools. From your shell, in scripts, or wired into whatever you're building.

Install

The curl command at the top drops a single binary at ~/.kirha/bin/kirha and adds it to your PATH. Prefer something else?

npm install -g @kirha/cli       # via npm
npx @kirha/cli search "..."     # one-off, no install

Once the kirha command is on your PATH, finish setup:

1. Authenticate

Grab a key from app.kirha.com, then save it locally:

kirha auth login --api-key sk-...

Your key lives in ~/.config/kirha/auth.json and only your user can read it. If you'd rather not store it, you can pass --api-key per call or set KIRHA_API_KEY in your env. The CLI checks them in this order: --api-key flag, then the file, then the env var.

2. Install the Kirha skill in your editor (optional)

If you're using Claude Code, Cursor, Codex, Cline, or any other agent with skill support, install the Kirha skill so your agent can query Kirha directly inside your sessions:

kirha skills install                              # auto-detect installed agents
kirha skills install --agent claude-code --yes    # target a specific agent
kirha skills install --agent claude-code,cursor   # several at once

Valid agent ids come from skills.sh. Anything listed there works. This wraps npx skills add kirha-ai/kirha-skill, so you'll need Node.

3. Run your first search

kirha search "What's the largest USDC holder on Base?" --vertical crypto

If you're going to use the same vertical a lot, save it as a default so you don't have to repeat it every time:

kirha config set vertical crypto
kirha search "What's the largest USDC holder on Base?"

What you can do

Everything below assumes you've set a default vertical. If not, add --vertical <id> to the command.

Search:

kirha search "Top 5 ETH validators by stake"

# With a summary instead of just raw data (defaults to kirha-flash)
kirha search "..." --summarize

# Or pick the model explicitly
kirha search "..." --summarize kirha

# Custom summary instructions
kirha search "..." --summarize --instruction "Format as a markdown table"

# Pick a planning runtime (default: fast)
kirha search "..." --runtime standard         # standard | fast | deterministic

The planning runtime controls how Kirha plans your query. fast is the default and is what you want most of the time. Save a different default with kirha config set runtime standard, or set KIRHA_RUNTIME in your env.

Preview a query before running it. plan create shows you the steps Kirha will take and the estimated credit cost. Useful before kicking off something expensive. When you're happy, plan exec runs the exact plan you previewed:

kirha plan create "Compare ETH vs Base trading volume"
# → { "id": "plan_...", "steps": [...], "usage": {...} }

kirha plan exec plan_abc123
# → the final SearchResult

Long-running research tasks. These can take a few minutes. task run creates the task and waits for it; task create kicks it off and returns an id you can poll later:

# One-shot: kick it off and wait
kirha task run "Compare the AI strategies of Google, Microsoft, and Meta"

# Or fire-and-forget, come back later
kirha task create "Compare the AI strategies..."
# → { "id": "tsk_..." }

kirha task status tsk_abc123    # check progress
kirha task wait tsk_abc123      # block until done
kirha task result tsk_abc123    # fetch the final result

Call a single Kirha tool directly, if you know the one you want:

kirha tools list
kirha tools run zerion_getEthereumWalletProfitAndLoss \
  --input '{"currency":"usd","ethereumAddress":"0x..."}'

Browse what Kirha offers: verticals, providers, and the tools they expose. discovery prints markdown straight from discovery.kirha.com, so it's just as useful for you as it is for an LLM piping it around:

kirha discovery home                    # overview
kirha discovery verticals list          # every vertical
kirha discovery verticals get crypto    # details for one
kirha discovery providers list          # every provider
kirha discovery providers get zerion    # details for one

You can pipe queries in too, which is handy in scripts:

echo "What's hot in DeFi today?" | kirha search

Run kirha --help (or kirha <command> --help) to see every flag.

Output

The CLI prints JSON, one line per invocation, so you can pipe it into jq or whatever else:

kirha search "Top 5 ETH validators" | jq '.summary'

Errors come out on stderr in a stable shape:

{ "error": { "code": "AUTH_REQUIRED", "message": "..." } }

Exit codes are predictable: 0 for success, 2 for bad usage, 3 for auth issues, 4 for rate limits, 5 for network errors, 6 for an expired plan.

Wire Kirha into your AI coding tools

Install the Kirha MCP server into Claude Code, Codex, OpenCode, Gemini CLI, or Droid with one command:

kirha mcp install            # interactive picker, pick one or more with space/enter
kirha mcp install --client claudecode
kirha mcp install --client claudecode,codex
kirha mcp install --client all

kirha mcp update --client claudecode         # re-sync your current API key to a client
kirha mcp remove --client claudecode         # remove the server entry
kirha mcp show   --client claudecode         # show the current configuration

Your API key is pulled automatically from kirha auth login. Pass --key <apiKey> if you want to override it for a single command, or --dry-run to see what would change without touching anything.

Upgrade

kirha upgrade           # download and install the latest version
kirha upgrade --check   # just print whether a newer version exists

If you installed via curl, kirha upgrade self-replaces the binary at ~/.kirha/bin/kirha after verifying its SHA256 checksum. If you installed via npm, it prints the right command for you to run (npm install -g @kirha/cli@latest).

Uninstall

If you installed via the curl script:

rm -rf ~/.kirha
rm -rf ~/.config/kirha   # also removes your stored API key and config

If you installed via npm:

npm uninstall -g @kirha/cli
rm -rf ~/.config/kirha

License

MIT