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

cxntion

v0.1.0

Published

Connect your self-hosted AI agent to managed SMS.

Readme

cxntion CLI

Connect a self-hosted AI agent to cxntion managed SMS.

Canonical project rules, launch evidence, and blockers live in ../CLAUDE.md. The root README.md is the public overview; this file stays focused on CLI usage.

Usage

Public beta access is invite-reviewed. Once your email is invited, sign in to the dashboard, create or select an agent, and run the CLI from the same machine that can reach the agent endpoint.

npx cxntion init
npx cxntion doctor
npx cxntion connect

init saves your cxntion API key, agent ID, target endpoint, adapter, and optional endpoint API key in ~/.cxntion/config.json. Public launch is in a request-access phase, so dashboard/API-key access is invite-reviewed until SMS, billing, and promotion gates are green. doctor is mandatory before connect: it proves cxntion API auth, tunnel reachability, local endpoint reachability, adapter/model/auth, latency, and cxntion metadata support before any production number is attached. cxntion API keys are shown only when created or rotated; store the new key in your process manager or local config when you generate it.

cxntion public launch uses managed Twilio SMS. Users bring the agent endpoint, not provider API keys.

Agent prompt

Paste this into your agent's system or developer instructions before connecting it to cxntion:

You are connected to cxntion, a managed SMS bridge for this agent.

When a cxntion message arrives:
- Treat it as a text message from a real human.
- Reply with only the exact SMS text that should be sent back.
- Keep replies concise, clear, and useful. Avoid long paragraphs, markdown tables, and JSON unless the user explicitly asks for them.
- Use cxntion metadata when available: channel, caller number, timestamp, requestId, session, and recent context.
- Keep caller context isolated by caller number. Never leak information from one caller to another.
- Do not ask for or expose API keys, auth tokens, provider credentials, or internal system details.
- If the user asks for a high-impact action, confirm before doing it.
- If you are unsure, ask one brief clarifying question.
- If a request cannot be completed by SMS, explain the next step briefly.

If your integration exposes a cxntion request ID, preserve it in your internal protocol response exactly as received. Do not show request IDs to the SMS user.

Tune the agent's business policy, tool permissions, and escalation rules for your own use case. cxntion transports messages; your agent remains responsible for its own behavior.

Non-interactive setup

Use init --yes for droplets, PM2, systemd, CI smoke fixtures, and other scripted installs. It writes the same ~/.cxntion/config.json as the wizard, so doctor and connect stay unchanged.

Hermes:

npx cxntion init --yes \
  --key "$CXNTION_API_KEY" \
  --agent "$CXNTION_AGENT_ID" \
  --adapter hermes \
  --target http://localhost:8642/v1/chat/completions \
  --model hermes-agent \
  --api-key-env API_SERVER_KEY
npx cxntion doctor
npx cxntion connect

OpenClaw:

npx cxntion init --yes \
  --key "$CXNTION_API_KEY" \
  --agent "$CXNTION_AGENT_ID" \
  --adapter openclaw \
  --target ws://localhost:18789
npx cxntion doctor
npx cxntion connect

Hermes

Hermes works through its OpenAI-compatible API server:

npx cxntion connect \
  --adapter openai \
  --target http://localhost:8642/v1/chat/completions \
  --model hermes-agent \
  --api-key "$API_SERVER_KEY"

The CLI adds stable Hermes session headers for cxntion traffic so SMS threads enter Hermes through the API-server platform path without patching the Hermes agent itself.

OpenClaw

npx cxntion connect \
  --adapter openclaw \
  --target ws://localhost:18789

OpenClaw receives cxntion messages as user_message frames with source: "cxntion" and metadata for channel, session, caller, context, timestamp, and requestId. Private voice-alpha frames may also include callId.

Diagnostics

npx cxntion doctor

doctor should pass before attaching a production number. It checks cxntion API auth, tunnel reachability, local endpoint reachability, adapter/model/auth, latency, and whether the adapter can receive cxntion channel metadata.

For OpenAI-compatible endpoints:

npx cxntion doctor \
  --adapter openai \
  --target http://localhost:8642/v1/chat/completions \
  --model hermes-agent \
  --api-key "$API_SERVER_KEY"

doctor also prints the effective agent response timeouts. Defaults are 30s for SMS and 30s for the private voice alpha path; override with --sms-timeout-ms, --voice-timeout-ms, CXNTION_SMS_AGENT_TIMEOUT_MS, or CXNTION_VOICE_AGENT_TIMEOUT_MS when testing unusually slow agents.

The public package installs the cxntion CLI. Dashboard/API-key access and managed SMS number activation remain invite-reviewed during beta.