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

@ai-setu/cli

v0.16.1

Published

AI Setu CLI — shell-friendly wrapper over @ai-setu/admin for scripts and CI.

Downloads

634

Readme

@ai-setu/cli

Read this first, agent. Shell face of the AI Setu control plane. Wrap @ai-setu/admin so you run tenant ops from a terminal — workspaces, keys, billing, PATs, BYOK connections — without writing SDK glue for one-off jobs. Want inference? Use @ai-setu/client. Want it conversational inside Claude Code? Use @ai-setu/mcp.

TL;DR

npm i -g @ai-setu/cli          # expose the `ai-setu` command
export AI_SETU_PAT=tt_pat_…
export AI_SETU_TENANT_ID=00000000-0000-0000-0000-000000000001
ai-setu balance

No install want? Run it cold:

npx @ai-setu/cli --help

Rules for agent

  1. Auth = PAT (AI_SETU_PAT, shape tt_pat_…), not the tt_live_… workspace key. Read ops need admin:read; write ops need admin:write.
  2. Piped output = JSON, interactive = table. Auto-detect by TTY. Force it with --format=json or --format=table. When you parse output in a script, the JSON come automatically — pipe to jq.
  3. Secrets print once. keys create / pats create show the secret one time. Capture from stdout now.
  4. ai-setu --help print the full reference any time.

Commands

# Read
ai-setu balance
ai-setu usage
ai-setu workspaces list
ai-setu keys list --workspace=<uuid>
ai-setu pats list

# Write
ai-setu workspaces create --name="Staging"
ai-setu keys create --workspace=<uuid> --name="CI deploy"
ai-setu keys rotate --id=<uuid>
ai-setu keys revoke --id=<uuid>
ai-setu pats create --name="CI laptop" --scope=admin:write
ai-setu pats revoke --id=<uuid>
ai-setu topup --amount-usd=50

# BYOK Connections (the @<slug>/<model> routing handles; alias: `credentials`)
ai-setu connections list
ai-setu connections add --provider=openai --slug=azure-qdc --key=sk-… \
  --base-url=https://my-resource.openai.azure.com [--workspace=<uuid>] \
  [--default-model=gpt-4o-mini] [--daily-cap-usd=50]
ai-setu connections test --id=<uuid>
ai-setu connections revoke --id=<uuid>

Target a Connection per request with model: "@<slug>/<model>" (e.g. @azure-qdc/gpt-4o-mini). Omit --workspace for an org-wide Connection.

Parse it in a script

ai-setu workspaces list | jq '.[] | .id'

Environments

Default = production. Point at a different control plane (e.g. a self-hosted deployment) with a full URL override:

export AI_SETU_API_BASE_URL=https://api.your-deployment.example.com

The four AI Setu packages — which one you grab

| Package | Use it when | | ------------------------------------------------------------------ | -------------------------------------------------------------------------------- | | @ai-setu/client | Runtime agent / app call inference. Drop-in for openai. | | @ai-setu/admin | Scripts / CI / builder agent run control-plane ops in TypeScript. | | @ai-setu/cli | Same control-plane ops from the shell. | | @ai-setu/mcp | Builder agent (Claude Code, Cursor) drive onboarding + ops conversationally. |

Full agent runbook = llms.txt.

License

MIT.