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

@agenthifive/agenthifive

v0.4.6

Published

OpenClaw plugin for [AgentHiFive](https://agenthifive.com) vault integration. Gives AI agents secure, policy-governed access to user accounts through vault-managed credentials and a brokered API proxy.

Downloads

870

Readme

@agenthifive/openclaw

OpenClaw plugin for AgentHiFive vault integration. Gives AI agents secure, policy-governed access to user accounts through vault-managed credentials and a brokered API proxy.

What It Does

  • 5 agent tools for executing API calls through the vault (Model B brokered proxy)
  • Native channel plugins for Telegram and Slack
  • Step-up approval flow for sensitive actions (user approves via dashboard)
  • Prompt injection with chunked API reference docs for connected services
  • ES256 JWT auth with automatic background token refresh
  • Setup wizard (ah5-setup) for bootstrapping agent auth

Quick Start

1. Install the plugin

openclaw plugins install /path/to/agenthifive-agenthifive-0.4.5.tgz

2. Install the setup CLI

npm install -g /path/to/agenthifive-openclaw-setup-0.2.17.tgz

3. Run setup

Run the setup wizard to bootstrap agent auth, discover connected services, write config, and apply the credential proxying patch:

ah5-setup

Or non-interactively:

ah5-setup --base-url https://app.agenthifive.com --bootstrap-secret ah5b_...

The wizard automatically:

  • Writes canonical AgentHiFive config to ~/.openclaw/openclaw.json
  • Applies the credential proxying patch to your OpenClaw installation

After setup:

  • Changing models from the OpenClaw TUI /models picker is fine
  • Avoid re-running OpenClaw onboard or models auth for vault-managed providers, because those flows expect local provider keys/tokens

Additional flags:

  • --config-path <path> — explicit config file path
  • --openclaw-dir <path> — explicit OpenClaw installation directory
  • --mode remove — remove channels.agenthifive cleanly, then uninstall the plugin

4. Connect Services

Add OAuth connections (Google, Microsoft, Slack, Telegram, etc.) and configure policies in the AgentHiFive dashboard.

Tools

| Tool | Description | |------|-------------| | agenthifive_execute | Execute an HTTP request through the vault proxy (Model B) | | agenthifive_approval_request | Create a step-up approval request for sensitive actions | | agenthifive_approval_commit | Wait for an approval to be resolved | | agenthifive_connections_list | List available connections and their status | | agenthifive_connection_revoke | Revoke a connection immediately |

Configuration

Canonical config lives under channels.agenthifive in your openclaw.json.

Minimal example:

{
  "channels": {
    "agenthifive": {
      "accounts": {
        "default": {
          "enabled": true,
          "baseUrl": "https://app.agenthifive.com",
          "auth": {
            "mode": "agent",
            "agentId": "agent_...",
            "privateKey": "base64-encoded-jwk"
          },
          "providers": {
            "telegram": {
              "enabled": true,
              "dmPolicy": "balanced",
              "allowFrom": []
            },
            "slack": {
              "enabled": true
            }
          }
        }
      }
    }
  },
  "plugins": {
    "enabled": true,
    "allow": ["agenthifive"],
    "entries": {
      "agenthifive": {
        "enabled": true
      }
    }
  }
}

AgentHiFive's generic plugin layer derives its runtime config from that channel section, so plugins.entries.agenthifive remains intentionally minimal.

Important keys under channels.agenthifive.accounts.<id>:

| Key | Type | Description | |-----|------|-------------| | baseUrl | string | AgentHiFive API base URL | | auth.mode | "agent" | "bearer" | Authentication mode | | auth.agentId | string | Agent ID (agent mode) | | auth.privateKey | string | Base64-encoded ES256 JWK (agent mode) | | auth.token | string | Bearer token (bearer mode) | | auth.tokenAudience | string | Token audience override (optional) | | pollTimeoutMs | number | Approval poll timeout (default: 300000) | | pollIntervalMs | number | Approval poll interval (default: 3000) | | providers.telegram.* | object | Telegram channel settings | | providers.slack.* | object | Slack channel settings |

LLM Credential Proxying

The setup wizard automatically patches OpenClaw's resolveApiKeyForProvider() to route LLM API calls through the vault, so agents don't need local API keys.

The patch is applied during ah5-setup and:

  • Works with both npm installs (dist/ chunks) and source installs (src/)
  • Creates a .bak backup of the patched file
  • Is idempotent (safe to run multiple times)
  • Uses dynamic imports — no-op when the plugin is not installed

To re-apply manually (for example after an OpenClaw upgrade), re-run the setup wizard or see patches/README.md.

Removing AgentHiFive

Use the setup CLI rather than uninstalling the plugin first:

ah5-setup --mode remove

That removes channels.agenthifive from config and then uninstalls the plugin cleanly.

Programmatic Usage

The package also exports classes for use outside the plugin system:

import { VaultClient, VaultTokenManager, VaultActionProxy } from "@agenthifive/openclaw";

// Direct API client
const client = new VaultClient({
  baseUrl: "https://app.agenthifive.com",
  auth: { mode: "bearer", token: "ah5t_..." },
});

// ES256 JWT token management
const tokenManager = new VaultTokenManager({
  baseUrl: "https://app.agenthifive.com",
  agentId: "agent_...",
  privateKey: jwk,
});
await tokenManager.init();

License

MIT