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

openclaw-mfa-gate

v2.0.1

Published

Mist channel adapter — routes OpenClaw approvals through AirVaults mobile app

Readme

Mist Channel — AirVaults MFA for OpenClaw

Routes OpenClaw approval requests through the AirVaults mobile app. When OpenClaw's built-in approval engine flags a risky action, the approval request flows through the mist channel to your phone — you tap approve or deny, and the decision is injected back into OpenClaw.

How It Works

User runs risky command in OpenClaw
  -> OpenClaw approval engine detects risk
  -> Sends approval request to mist channel (outbound.sendText)
  -> mist-channel.js parses approval ID
  -> Creates challenge: POST /api/v2/mfa_vaults/:uid/challenge (PENDING)
  -> Polls: GET /api/v2/mfa_vaults/:uid/challenge/:id
  -> Mobile app sees pending challenge, user taps approve/deny
  -> Mobile app: POST /api/v2/mfa_vaults/:uid/challenge/:id/respond
  -> Poll returns decision
  -> mist-channel.js injects /approve or /deny back into OpenClaw
  -> OpenClaw executes or blocks the action

Installation

openclaw plugins install openclaw-mfa-gate
openclaw gateway restart

Or run the setup wizard standalone via npx:

npx openclaw-mfa-gate

Verify:

openclaw plugins list
# Should show: Mist Channel (AirVaults MFA) — loaded — v2.0.0

Managing the plugin

openclaw plugins info openclaw-mfa-gate   # Show details
openclaw plugins disable openclaw-mfa-gate # Disable (keeps files)
openclaw plugins enable openclaw-mfa-gate  # Re-enable

Setup (QR Onboarding)

  1. Generate QR code:

    openclaw mfa

    Or in chat: use the mfa_setup tool.

  2. Scan QR with AirVaults mobile app — the app creates an MFA vault.

  3. Copy the binding key the app shows (mfa:bind:vault_uid:access_token).

  4. Bind — send the key via the mfa_bind tool or paste it in any OpenClaw channel.

  5. Restart the gateway. The mist channel is now active.

Configuration

Config is stored in config/mfa-config.json (auto-saved by mfa_bind):

{
	"enabled": true,
	"instanceId": "oc_abc123...",
	"vaultUid": "v12345...",
	"accessToken": "abc123...",
	"apiBaseUrl": "http://localhost:3000",
	"pollIntervalMs": 500,
	"pollTimeoutMs": 120000
}

Or configure via openclaw.json under plugins.entries.openclaw-mfa-gate.

Tools

| Tool | Description | | ------------ | ---------------------------------------- | | mfa_setup | Generate QR code for mobile app binding | | mfa_bind | Bind vault with key from mobile app | | mfa_status | Check vault status and recent challenges |

CLI

Via OpenClaw:

openclaw mfa                  # Setup wizard with QR code
openclaw mfa --api-url URL    # Custom API URL
openclaw mfa --name NAME      # Custom instance name

Standalone via npx:

npx openclaw-mfa-gate              # Setup wizard (default)
npx openclaw-mfa-gate status       # Check vault status
npx openclaw-mfa-gate bind <key>   # Manual bind
npx openclaw-mfa-gate --help       # Help

API Endpoints

| Method | Endpoint | Description | | ------ | ----------------------------------------------- | -------------------------- | | POST | /api/v2/mfa_vaults | Create MFA vault | | POST | /api/v2/mfa_vaults/:uid/bind | Bind instance | | POST | /api/v2/mfa_vaults/:uid/challenge | Create challenge (pending) | | GET | /api/v2/mfa_vaults/:uid/challenge/:id | Poll challenge status | | POST | /api/v2/mfa_vaults/:uid/challenge/:id/respond | Approve/deny challenge | | GET | /api/v2/mfa_vaults/:uid/pending_challenges | List pending challenges | | GET | /api/v2/mfa_vaults/:uid/status | Vault status |

Architecture

This plugin is a pure channel adapter. It does not detect risky actions — that's OpenClaw's job. The plugin only:

  1. Receives approval requests from OpenClaw's approval engine
  2. Creates challenges in the AirVaults API
  3. Polls until the mobile app user responds
  4. Injects /approve or /deny back into OpenClaw

No WebSocket, no hooks, no risk classification. Just HTTP polling.

License

MIT