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

nexotao-cli

v0.1.0

Published

Interactive command-line client for every Nexotao AI model

Readme

nexotao-cli

Interactive terminal access to every live Nexotao AI model using one API key.

Install

Requires Node.js 20 or newer.

npm install --global nexotao-cli
nexotao-cli login
nexotao-cli

Authentication

nexotao-cli login prompts for the API key without echoing it, validates it against Nexotao, then writes it to ~/.config/nexotao/config.json with file mode 0600. Authentication is resolved in this order:

  1. NEXOTAO_API_KEY
  2. the saved config
  3. --api-key for an explicit one-off test

Do not place --api-key in shell history for normal use. Set NEXOTAO_BASE_URL or pass --base-url only when testing another Nexotao API deployment.

Commands

nexotao-cli                         # interactive chat
nexotao-cli login                   # validate and save an API key
nexotao-cli logout                  # remove the saved API key
nexotao-cli models list             # fetch the live model catalog
nexotao-cli models select           # interactively save a default model
nexotao-cli models select gpt-5-mini
nexotao-cli chat "Explain RAG briefly"
nexotao-cli chat -m claude-opus-4-8 "Review this idea"
nexotao-cli doctor
nexotao-cli --json doctor
nexotao-cli --json request get /v1/models

Inside interactive chat:

  • /model switches models and saves the new default.
  • /clear clears conversation context.
  • /help shows interactive commands.
  • /exit exits.

Prompts can also be piped:

printf 'Summarize this in one line' | nexotao-cli chat -m gpt-5-mini

JSON contract

Use the global --json option for automation. JSON mode writes exactly one JSON document to stdout and does not stream chat deltas.

Successful commands use this envelope:

{ "ok": true, "data": { "models": [], "selected": null } }

Errors exit non-zero and use this credential-safe envelope:

{
  "ok": false,
  "error": {
    "code": "auth.api_key_missing",
    "message": "No API key found. Run: nexotao-cli login",
    "status": 401
  }
}

Command-family examples:

nexotao-cli --json models list
nexotao-cli --json chat -m gpt-5-mini "Say hello"
nexotao-cli --json request get /v1/models

request get is intentionally read-only. It applies configured authentication, client headers, API error handling, and output redaction. Add a named high-level command before adding recurring workflows to the raw escape hatch.

Development and publishing

npm install
npm run check
npm pack --dry-run
npm publish

Publishing requires npm access to the nexotao-cli package. prepublishOnly runs formatting, type checks, tests, and a production build.