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

@sitegpt/cli

v0.1.4

Published

First-party command line interface for SiteGPT.

Readme

SiteGPT CLI

Official command line interface for SiteGPT. Manage your AI chatbots, knowledge base, conversations, leads, members, and account from the terminal.

Useful for support teams, automation, and AI agents that need to work with your SiteGPT account.

Install

npm install -g @sitegpt/cli

Check the installed version:

sitegpt --version

Login

sitegpt login

The CLI opens a secure SiteGPT approval page in your browser. After approval, the token is saved locally on your machine.

Check your login:

sitegpt whoami

Quick Start

List your chatbots:

sitegpt chatbots list

View chatbot details:

sitegpt chatbots get <chatbot-id>

List knowledge documents:

sitegpt knowledge documents list --chatbot <chatbot-id>

Add knowledge from a file:

sitegpt knowledge files add --chatbot <chatbot-id> ./help-center.pdf

Add knowledge from a website:

sitegpt knowledge website add --chatbot <chatbot-id> https://example.com

Send a test message:

sitegpt messages send --chatbot <chatbot-id> "How do I contact support?"

Common Commands

Chatbots

sitegpt chatbots list
sitegpt chatbots get <chatbot-id>
sitegpt chatbots create "Support Bot"
sitegpt chatbots update <chatbot-id> --title "New Name"

Knowledge

sitegpt knowledge documents list --chatbot <chatbot-id>
sitegpt knowledge documents get --chatbot <chatbot-id> <document-id>
sitegpt knowledge links add --chatbot <chatbot-id> https://example.com/page
sitegpt knowledge sitemap add --chatbot <chatbot-id> https://example.com/sitemap.xml
sitegpt knowledge text update --chatbot <chatbot-id> --name "Policy" "Your text"
sitegpt knowledge custom-responses list --chatbot <chatbot-id>

Conversations

sitegpt conversations list --chatbot <chatbot-id>
sitegpt conversations get --chatbot <chatbot-id> <thread-id>
sitegpt messages list --chatbot <chatbot-id> <thread-id>
sitegpt messages send --chatbot <chatbot-id> <thread-id> "Message"

Settings

sitegpt settings get --chatbot <chatbot-id>
sitegpt settings general get --chatbot <chatbot-id>
sitegpt personas list --chatbot <chatbot-id>
sitegpt instructions list --chatbot <chatbot-id>

Account

sitegpt usage
sitegpt billing subscription
sitegpt billing invoices
sitegpt members list --chatbot <chatbot-id>
sitegpt leads list --chatbot <chatbot-id>

Profiles

Profiles let you use multiple SiteGPT accounts or workspaces from the same machine.

sitegpt login --profile work
sitegpt profiles list
sitegpt profiles use work
sitegpt profiles delete old-profile

Run a command with a specific profile:

sitegpt chatbots list --profile work

JSON Output

Use --json for scripts and AI agents:

sitegpt chatbots list --json
sitegpt knowledge documents list --chatbot <chatbot-id> --json

Authentication and Access

sitegpt login creates a SiteGPT API token through your browser and stores it locally at:

~/.config/sitegpt/config.json

SiteGPT CLI/API tokens look like sgpt_xxxxxxxxx. Scripts should treat the token as opaque and avoid validating against one exact shape.

Use normal login for most cases:

sitegpt login

Request full account access only when you need broad permissions:

sitegpt login --full-access

Request narrower access for a specialized workflow:

sitegpt login --scope account:read --scope chatbots:read --scope knowledge:write

Use an existing token:

sitegpt login --token <sitegpt-api-token>

Environment variables can override the saved profile:

SITEGPT_API_TOKEN=<sitegpt-api-token>
SITEGPT_API_BASE=https://sitegpt.ai
SITEGPT_PROFILE=default

Help

Every command level has contextual help:

sitegpt --help
sitegpt knowledge --help
sitegpt knowledge documents --help
sitegpt settings general --help

Update

npm install -g @sitegpt/cli@latest

Troubleshooting

If login opens the wrong account or environment, check your saved profiles:

sitegpt profiles list
sitegpt profiles use <profile>

If a command says your token does not have the required scope, log in again and approve the requested access:

sitegpt login

For help, visit sitegpt.ai/support.