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

@agent-hospital/sidecar

v2.0.4

Published

Crash detection, auto-repair, and health monitoring for AI agent gateways. Watches your OpenClaw or Hermes gateway, detects crashes, runs instant local repairs, and reports to Agent Hospital for AI-powered diagnosis.

Readme

@agent-hospital/sidecar

Crash detection, auto-repair, and health monitoring for AI agent gateways (OpenClaw, Hermes).

Runs alongside your agent gateway as a systemd service. Detects crashes in 5 seconds, runs instant local repairs, monitors LLM provider health, and reports to Agent Hospital for AI-powered diagnosis.

Quick Start

npx @agent-hospital/sidecar setup \
  --api-key YOUR_API_KEY \
  --hospital-url https://api.agent-hospital.ai

That's it. The sidecar auto-detects your framework, LLM provider, and gateway configuration.

What It Does

  • Watches your gateway process (systemd polling every 5s)
  • On crash: collects logs, exit code, disk/memory stats, runs pattern-matched repairs instantly
  • Reports crash context to Agent Hospital for AI diagnosis (Claude-powered)
  • Monitors LLM provider health (OpenRouter, local proxies, any OpenAI-compatible endpoint)
  • Sends heartbeats every 60s so Agent Hospital can detect if your VM goes down

Commands

hospital-sidecar setup       # Install and start as a systemd service
hospital-sidecar status      # Check if the sidecar is running
hospital-sidecar uninstall   # Stop and remove everything
hospital-sidecar version     # Print version

Setup Options

--api-key KEY        (required) Your Agent Hospital API key
--hospital-url URL   (required) Agent Hospital server URL
--inbound-token TOK  Bearer token for inbound requests (auto-generated if omitted)
--framework NAME     openclaw or hermes (auto-detected from ~/.openclaw or ~/.hermes)
--state-dir DIR      Agent home directory (auto-detected)
--systemd-unit NAME  Systemd unit to watch (auto-detected)
--gateway-port PORT  Gateway port (default 18789)
--port PORT          Sidecar listen port (default 18793)
--name NAME          Agent name (default hostname)

Auto-Detection

The sidecar reads your agent's config file to auto-detect:

  • Framework: Checks for ~/.openclaw/ or ~/.hermes/
  • LLM provider: Reads openclaw.json to find the primary model provider (OpenRouter, local proxy, Anthropic, etc.)
  • Health check URL: Constructs the right /v1/models endpoint for your provider
  • Auth: Resolves API keys from config or environment variables

Requirements

  • Linux with systemd (user-level services)
  • OpenClaw or Hermes agent gateway running
  • Node.js >= 16 (for npm install only -- the sidecar itself is a static Go binary)

How It Works

  1. Install: Downloads a pre-built Go binary (~6MB) for your platform
  2. Setup: Creates a systemd user service with your config
  3. Run: Binary runs as a background service, survives SSH logout
  4. Monitor: Polls gateway status, LLM health, disk/memory every few seconds
  5. Repair: On crash, runs deterministic L0 repairs (restart, kill zombies, clear disk)
  6. Report: Pushes crash context to Agent Hospital for AI diagnosis
  7. Learn: Hospital learns from successful repairs for future incidents