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

@switchbot/openclaw-skill

v0.1.2

Published

OpenClaw plugin that bootstraps and delegates to `switchbot mcp serve`, exposing the full SwitchBot MCP tool surface through @switchbot/openapi-cli >= 3.7.1.

Downloads

277

Readme

@switchbot/openclaw-skill

SwitchBot smart-home skill for OpenClaw — bootstraps the local SwitchBot CLI and delegates to switchbot mcp serve, so AI agents get the full MCP tool surface exposed by the installed @switchbot/openapi-cli.

Prerequisites

  • Node.js 18+
  • SwitchBot API credentials (switchbot config set-token) — the CLI itself is auto-installed on first launch

Installation

# Via OpenClaw plugin manager (recommended)
openclaw plugins install @switchbot/openclaw-skill

# Or global npm
npm install -g @switchbot/openclaw-skill

# Either way, then bootstrap the underlying CLI + credentials:
switchbot-openclaw setup

switchbot-openclaw setup verifies @switchbot/openapi-cli is installed, at >=3.7.1, and authenticated. Safe to re-run.

MCP Tools

This plugin does not maintain its own hand-written tool subset. OpenClaw launches bin/start.js, and that wrapper hands off to switchbot mcp serve, so the exact tool list stays aligned with the installed CLI version. Key groups include:

| Tool | Description | |---|---| | devices_list | List all devices in the account | | devices_status | Get current status of a device | | devices_describe | List supported commands for a device type | | devices_command | Send a command (turnOn, turnOff, setBrightness, …) | | scenes_list | List all saved scenes | | scenes_run | Execute a scene by ID | | rules_list | List automation rules | | rules_suggest | Ask AI to suggest a new rule based on intent | | rules_explain | Explain why a rule fired or was blocked (with trace) | | rules_simulate | Replay rule against historical events before enabling | | daemon_start / daemon_stop / daemon_status | Control the automation rule engine | | audit_query | Query the audit log for device/rule history |

Full tool reference: switchbot mcp tools

Usage

The server communicates over stdio (MCP protocol). OpenClaw launches the MCP server via .mcp.json — stdio launcher (node ${pluginDir}/bin/start.js).

First launch auto-setup: if @switchbot/openapi-cli is not installed, bin/start.js installs it automatically. If credentials are missing, it outputs a setupRequired prompt asking you to run switchbot config set-token. Once configured, the plugin stays out of the way and delegates every launch to the CLI-owned MCP server.

To start manually (for debugging):

switchbot-openclaw

Policy editor

A local browser-based editor for ~/.config/openclaw/switchbot/policy.yaml:

switchbot-policy-edit
# Opens http://localhost:18799

Configuration

Edit ~/.config/openclaw/switchbot/policy.yaml to set device aliases, quiet hours, and confirmation rules. See the Policy section of the CLI README.

License

MIT