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

@neta-art/cohub-cli

v1.5.0

Published

CLI for Cohub — spaces, sessions, and agent collaboration.

Readme

@neta-art/cohub-cli

CLI for Cohub — work with Spaces, Chats, files, Saves, Tasks, scheduled prompts, search, and multimodal generation from your terminal.

Installation

npm install -g @neta-art/cohub-cli
cohub --help

Sign in

For normal use outside Cohub Sandbox, sign in once:

cohub auth login
cohub auth whoami

The CLI will keep you signed in and refresh your session automatically.

Inside Cohub Sandbox or CI, COHUB_EXECUTION_TOKEN can be used as an ephemeral auth override.

Environment

The CLI uses production by default.

Use the development environment with ENV=dev:

ENV=dev cohub auth login
ENV=dev cohub spaces ls

Usage

Use --json when reading output for decisions, extracting IDs, or chaining commands.

For command details:

cohub -h
cohub spaces -h
cohub spaces prompt -h

Terminology

| Product UI | CLI / API | |---|---| | Chat | Session | | Save | Checkpoint | | Tasks | Task runs | | Scheduled prompt | spaces prompt schedule | | Recurring scheduled prompt | Cron job |

Spaces

cohub spaces ls --json
cohub spaces get <spaceId> --json
cohub spaces create --name "<name>" --description "<description>" --json
cohub spaces rename <spaceId> "<new name>"

Many space-scoped commands need a target Space:

cohub -s <spaceId> spaces prompt "message" --json

Chats and prompts

Use spaces prompt for immediate sends, delayed sends, one-time schedules, recurring schedules, new Chats, and existing Chats.

# Send now
cohub -s <spaceId> spaces prompt "message" --json

# Send long content from stdin
cat prompt.md | cohub -s <spaceId> spaces prompt --json

# Send to an existing Chat
cohub -s <spaceId> spaces prompt --session <sessionId> "message" --json

# Create a new Chat and send
cohub -s <spaceId> spaces prompt --title "<chat title>" "message" --json

# Schedule once
cohub -s <spaceId> spaces prompt --at "2026-05-12T09:00:00+08:00" "message" --json

# Schedule recurring
cohub -s <spaceId> spaces prompt \
  --cron "0 9 * * 1-5" \
  --timezone "Asia/Shanghai" \
  --title "Daily reminder" \
  "message" \
  --json

Scheduling rules:

  • Use only one of --delay-ms, --at, or --cron.
  • --cron requires --timezone.

Chats / Sessions

cohub -s <spaceId> spaces sessions ls --json
cohub -s <spaceId> spaces sessions create "<title>" --json
cohub -s <spaceId> spaces sessions get <sessionId> --json
cohub -s <spaceId> spaces sessions rename <sessionId> "<new title>"

Use spaces prompt --session <sessionId> to send to a Chat.

Search

Search Spaces, Chats, and prior turns:

cohub search "query"
cohub search "query" --limit 20 --json

Models and multimodal generation

cohub models ls --json
cohub models ls --model-type multimodal --json

cohub generate "a calm lake at sunrise" \
  --model <model> \
  --output output.png \
  --json

cohub generate "restyle this image" \
  --model <model> \
  --image ./input.png \
  --param size=1024x1024 \
  --json

Supported inputs:

--image <path-or-url>
--video <path-or-url>
--audio <path-or-url>

Pass generation parameters with --param key=value or --parameters '<json>'.

Files

cohub -s <spaceId> spaces files ls [path] --json
cohub -s <spaceId> spaces files cat <path>
cohub -s <spaceId> spaces files write <path> -c "<content>"
cohub -s <spaceId> spaces files upload <files...> --dir <dir>
cohub -s <spaceId> spaces files mv <from> <to>
cohub -s <spaceId> spaces files rm <path>

Confirm before deleting files or directories.

Saves

cohub -s <spaceId> spaces checkpoints ls --json
cohub -s <spaceId> spaces checkpoints get <checkpointId> --json
cohub -s <spaceId> spaces checkpoints create "<description>" --json

Tasks

cohub tasks ls --space <spaceId> --json
cohub tasks get <taskRunId> --json

Create scheduled sends with spaces prompt scheduling flags, not task commands.

Recurring scheduled prompts

Create recurring scheduled prompts with spaces prompt --cron ... --timezone ....

Manage them with cron-jobs:

cohub cron-jobs ls <spaceId> --json
cohub cron-jobs runs <cronJobId> --json
cohub cron-jobs toggle <cronJobId> on
cohub cron-jobs toggle <cronJobId> off
cohub cron-jobs delete <cronJobId>

Confirm before enabling, disabling, or deleting recurring scheduled prompts.

Safety

Confirm before:

  • deleting files or directories
  • creating scheduled or recurring prompts with side effects
  • enabling, disabling, or deleting recurring scheduled prompts
  • changing access policies, member roles, or membership