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

praes-connect

v0.4.4

Published

One-command observability for OpenClaw agents — track activity, costs, tools, soul & memory

Readme

praes-connect

One-command observability for OpenClaw agents. Zero code changes needed.

Install

npx praes-connect --key <your-key>

Or install globally:

npm i -g praes-connect
praes-connect --key <your-key>

What it does

praes-connect hooks into your OpenClaw agent and automatically forwards everything to the Praes dashboard:

  • Activity — every conversation across all channels
  • Costs — tokens, model usage, and spend per run
  • Tools — every tool call your agent makes
  • Soul — syncs SOUL.md from your workspace
  • Memory — syncs MEMORY.md from your workspace

Getting your key

  1. Open the Praes dashboard
  2. Go to your agent's Console tab
  3. Click Connect and copy the key

Options

| Flag | Description | Default | |------|-------------|---------| | --key <key> | Your Praes agent key (required) | — | | --url <url> | Praes server URL | https://praes.app | | --channel <name> | Force a specific channel for all runs | auto-detected |

You can also set PRAES_URL as an environment variable instead of passing --url.

Connecting agents & agent naming

praes-connect auto-selects the OpenClaw agent directory for your Praes agent key. It matches using the Praes slug and name against OpenClaw agent IDs and directory aliases.

Matching order:

  1. Exact/normalized match against OpenClaw agents.list metadata (id, name, slug, agentDir) in ~/.openclaw/openclaw.json
  2. Exact/normalized match against directory names under ~/.openclaw/agents/
  3. Fallback to main (then first available directory)
~/.openclaw/agents/
  my-agent/          ← OpenClaw agent directory name
    sessions/
    ...

Example: if your OpenClaw agent ID/folder is clawdius and your Praes slug is clawdius, the connector auto-binds to ~/.openclaw/agents/clawdius/sessions/ even when multiple agents exist.

Running multiple agents

Each agent in Praes gets its own key. Run a separate praes-connect process per agent:

# Terminal 1 — telegram bot
npx praes-connect --key pk_bot1_xxx

# Terminal 2 — rabbit r1 agent
npx praes-connect --key pk_r1_xxx --channel "rabbit r1"

For best auto-matching, keep each Praes agent slug aligned with the OpenClaw agentId (directory name).

Forcing a channel

If your agent's sessions don't carry platform metadata (common with Rabbit R1, iMessage, and local setups), use --channel to pin it:

npx praes-connect --key pk_xxx --channel "rabbit r1"
npx praes-connect --key pk_xxx --channel telegram
npx praes-connect --key pk_xxx --channel imessage

Supported channel values: telegram, whatsapp, discord, slack, signal, webchat, imessage, rabbit r1, local, api, schedule.

Auto-detection order

When --channel is not set, the channel is resolved in this order:

  1. Explicit channel / platform / source field on the JSONL entry
  2. Nested metadata or context fields on the entry or message
  3. sessions.json hints (channel, origin, Provider) keyed by sessionId
  4. OpenClaw canonical session-key patterns (agent:<agentId>:<channel>:..., cron:..., hook:..., node-...)
  5. Session ID prefix (e.g. tg_, discord_, r1_, wa_)
  6. Content markers in the message (e.g. [voice], [scheduled], rabbit r1, Telegram topic markers)
  7. Entry type field (schedule, webhook, cron, etc.)
  8. gateway field in ~/.openclaw/openclaw.json
  9. Falls back to api

How it works

  1. Verifies your key against the Praes API
  2. Locates your OpenClaw workspace (~/.openclaw/workspace)
  3. Syncs SOUL.md and MEMORY.md to the dashboard
  4. Watches ~/.openclaw/agents/<name>/sessions/ for new activity
  5. Forwards conversations, tool calls, and cost data in real time
  6. Sends heartbeats so the dashboard knows your agent is online

Requirements

  • Node.js 18+
  • An OpenClaw agent running locally
  • A Praes account with an agent key

License

MIT