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

@egoai/sideclaw

v0.1.5

Published

OpenClaw channel plugin for SideClaw real-time AI voice conversations

Downloads

47

Readme

@egoai/sideclaw

npm License: MIT

An OpenClaw channel plugin that connects an OpenClaw agent to SideClaw for real-time AI voice conversations.

Install

From npm

openclaw plugins install @egoai/sideclaw

From source

git clone https://github.com/egotv/sideclaw-plugin.git
cd sideclaw-plugin
npm install
openclaw plugins install .

Configuration

Add the following to your openclaw.json under channels.sideclaw:

{
  "channels": {
    "sideclaw": {
      "enabled": true,
      "sideClawUrl": "ws://sideclaw-host:19999",
      "pairingToken": "sk_pair_YOUR_TOKEN_HERE"
    }
  }
}

Or use the CLI:

openclaw config set channels.sideclaw.enabled true
openclaw config set channels.sideclaw.sideClawUrl "ws://sideclaw-host:19999"
openclaw config set channels.sideclaw.pairingToken "sk_pair_YOUR_TOKEN_HERE"

Config fields

| Field | Type | Required | Description | |-------|------|----------|-------------| | enabled | boolean | Yes | Enable or disable the channel | | sideClawUrl | string | Yes | WebSocket URL of the SideClaw server (ws:// or wss://) | | pairingToken | string | Yes | Pairing token generated from the SideClaw onboarding UI |

Environment variables

| Variable | Description | |----------|-------------| | OPENCLAW_GATEWAY_TOKEN | Gateway authentication token. Takes priority over any value stored in config. |

Commands

| Command | Description | |---------|-------------| | /sideclaw-pair | Show step-by-step pairing instructions (register on SideClaw, add OpenClaw, get pairing token) | | /sideclaw-status | Show current connection state and configured values (sideClawUrl, pairingToken presence, enabled) | | /sideclaw-reconnect | Skip the pending retry delay and reconnect immediately (no-op if already connected) |

How It Works

OpenClaw gateways typically run on a user's local machine behind NAT, so SideClaw cannot reach the gateway directly. This plugin uses a reverse connection pattern: it dials out from the gateway to SideClaw rather than waiting to be dialed. On startup, the plugin connects to the local gateway WebSocket first and buffers the connect.challenge message before opening a second connection to SideClaw. The buffered challenge is forwarded to SideClaw immediately after the connection opens, which prevents the gateway from timing out while waiting for a handshake response. Once both sides complete the handshake, the plugin becomes a bidirectional frame relay for the lifetime of the session. If either side disconnects, the gateway's ChannelManager restarts startAccount() with backoff.

Workspace file reading

The relay intercepts workspace.read RPC requests from the SideClaw server. Instead of forwarding these to the gateway (which can't serve files back over NAT), the relay reads files directly from the local filesystem using the workspace path from the gateway config (agents.defaults.workspace). A fast string pre-check avoids JSON parsing overhead on non-matching frames.

Security

  • URL validation: Only ws:// and wss:// URLs are accepted for sideClawUrl. Any other scheme is rejected to prevent SSRF.
  • Plaintext token warning: If pairingToken is transmitted over an unencrypted ws:// connection, the plugin logs a security warning. Use wss:// in production.
  • Secret priority: OPENCLAW_GATEWAY_TOKEN in the environment always takes precedence over the value in openclaw.json. Prefer environment variables for secrets rather than storing them in config files.

Development

After cloning and installing (see "From source" above):

npm run type-check   # TypeScript check
npm test             # Run tests (vitest)

The package ships raw TypeScript with no runtime dependencies. TypeScript and vitest are the only dev-time requirements.

File structure

| File | Purpose | |------|---------| | src/index.ts | Plugin entry — register(api) | | src/channel.ts | ChannelPlugin shape — id, meta, capabilities, config | | src/monitor.ts | startAccount() — buffered handshake + relay with workspace.read interception | | src/config.ts | SideClawAccount type, resolveGatewayToken/Url | | src/types.ts | RPC frame types (RpcRequest, RpcResponse, WorkspaceReadParams, FileEntry) | | src/workspace.ts | Local workspace file reading — handleWorkspaceRead(), resolveWorkspace(), collectFiles() | | tests/workspace.test.ts | Workspace module tests (file reading, path traversal, resolution) | | tests/intercept.test.ts | RPC interception flow tests |

License

MIT