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

agendex-cli

v0.18.0

Published

Agendex CLI for login, sync, and daemon workflows

Readme

agendex-cli

Node-compatible Agendex CLI for browser login, opening the web app, one-shot sync, daemon supervision, status checks, and daemon cleanup.

Install

npm install -g agendex-cli
pnpm add -g agendex-cli
yarn global add agendex-cli
bun install -g agendex-cli

Commands

agendex login                  # Authenticate via browser OAuth (agendex.dev)
agendex login --url <url>      # Login to a self-hosted instance
agendex open                   # Open the Agendex web app in your default browser
agendex open --url <url>       # Open a self-hosted deployment
agendex logout                 # Clear stored cloud token
agendex configure              # Select which agents/adapters to index
agendex start                  # Start daemon (backgrounds itself)
agendex stop                   # Stop the running daemon
agendex sync                   # One-shot scan + sync to cloud
agendex cleanup                # Interactively remove cloud daemons
agendex cleanup --stale        # Auto-remove all stale daemons
agendex status                 # Show config state, daemon status, uptime & hostname
agendex help                   # Show help message
agendex --version / -v         # Print CLI version

Dev vs prod (config directory)

By default the CLI uses ~/.agendex/ for all on-disk state:

  • config.json — local token, cloud token, Convex URL, device id, enabled adapters
  • daemon.pid — supervisor PID and metadata
  • sync-cache.json — hashes used to skip unchanged plans on sync

To use a separate dev environment (so local cloud / dev login does not overwrite prod credentials), use either:

  • --dev on any command (recommended), or
  • AGENDEX_DEV=1 in the environment

That switches the directory to ~/.agendex-dev/ with the same filenames inside it.

--dev takes precedence when set programmatically; otherwise AGENDEX_DEV=1 is read. When you start the daemon with agendex start --dev, the background supervisor and worker inherit AGENDEX_DEV=1 so they stay on the dev config.

Examples:

agendex --dev login
agendex --dev status
AGENDEX_DEV=1 agendex sync

In dev mode the default OAuth site (when you do not pass --url and do not set AGENDEX_SITE_URL) points at the local EE app URL used for development.

Sync Provenance

agendex sync and the daemon include sync provenance in cloud payload metadata so the web app can show where a plan was synced from. This includes the device ID, hostname, and the host machine's local IP address when one is available.

You can disable local IP address collection from Account settings in the cloud app. Managed or non-interactive environments can also omit the local IP address from sync payloads by setting:

AGENDEX_DISABLE_LOCAL_IP=1 agendex sync

Daemon Cleanup

agendex cleanup manages registered daemon devices in the cloud.

Interactive mode (default) — presents a multiselect prompt listing all daemons with hostname, PID, and alive/stale status. Select which ones to remove.

Auto modeagendex cleanup --stale removes all stale daemons without prompting. Useful for CI or non-TTY environments.

Requires login. In non-TTY environments without --stale, the command exits with an error.

Status Output

agendex status prints a rich overview:

  • Config version, local/cloud token state, Convex URL
  • Enabled adapters
  • Daemon running state with PID
  • Uptime — how long the daemon has been running
  • Hostname — machine the daemon is running on
  • All registered daemons — hostname, PID, uptime, and alive/stale status for every device in the cloud
  • CLI version

Auto-Update Check

Before running start, configure, or sync, the CLI checks for a newer published version. If an update is required the command is blocked and you are prompted to upgrade:

[agendex] update required: v0.1.0 → v0.2.0
[agendex] run: npm i -g agendex-cli

The check is skipped for stop, status, login, logout, open, cleanup, and help.

Supported Runtime

  • Runtime: Node.js 20+
  • Installers: npm, pnpm, yarn, and bun

Self-Hosted Login

The default login target is https://app.agendex.dev.

For self-hosted deployments, pass your site URL explicitly:

agendex login --url https://agendex.yourdomain.com

This opens your deployment's OAuth flow and stores the returned cloudToken and convexUrl in your active config directory (~/.agendex/config.json for prod, ~/.agendex-dev/config.json when using --dev or AGENDEX_DEV=1).

The target can also be set via AGENDEX_SITE_URL env var. For local development against the default dev app URL, use agendex login --dev or set AGENDEX_DEV=1 (see Dev vs prod above).

Open the web app

agendex open launches your default browser to the same base URL as the default login target (https://app.agendex.dev in prod, or the local EE dev URL when using --dev / AGENDEX_DEV=1). Override with agendex open --url <url> or AGENDEX_SITE_URL.

If launching the browser is undesirable (for example in CI), set AGENDEX_DISABLE_BROWSER=1; the CLI still prints the URL to visit.