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

@anyray/openclaw-plugin

v0.2.0

Published

OpenClaw provider plugin for the Anyray gateway — per-session identity, content-free attribution, and cache-safe defaults on every model call.

Readme

@anyray/openclaw-plugin

Route OpenClaw's model calls through an Anyray gateway.

Anyray sits on the path of your LLM traffic and serves each request as cheaply as it can — prompt-cache stabilisation, context trimming, tool-schema compression — while attributing spend per user and team. This plugin is the OpenClaw side of that: it registers an anyray provider so anyray/* models route to your gateway with the metadata the optimizer needs.

What it adds

Pointing models.providers at a gateway URL already works in OpenClaw. This plugin exists for what that cannot express:

  • Per-conversation optimizer sessions. The gateway derives its session from a _session_<uuid> suffix on metadata.user_id. Without it, concurrent conversations that open identically collapse into one session — and a single fail-open then pauses optimization for all of them. The plugin injects a stable, opaque id per OpenClaw session.
  • Cache retention on every call. OpenClaw only auto-seeds prompt caching on api.anthropic.com/Vertex, so on a custom host it emits no cache_control at all — a cold provider cache on every warm turn.
  • The whole provider entry from one config block — base URL, API kind, per-model limits, attribution headers.

Install

npm install @anyray/openclaw-plugin

Then register it in ~/.openclaw/openclaw.json:

{
  "plugins": {
    "load": { "paths": ["<path to the installed package>"] },
    "entries": {
      "anyray": {
        "enabled": true,
        "config": {
          "gatewayUrl": "https://gateway.example.anyray.ai",
          "apiKey": "ark_…",
          "user": "[email protected]",
          "team": "platform"
        }
      }
    }
  },
  "env": { "ANYRAY_CLIENT_KEY": "ark_…" }
}

Restart the gateway once, then select a model:

/model anyray/claude-sonnet-4-5

anyray-connect performs this whole setup automatically, including key rotation — see the integration guide.

Configuration

| Key | Required | Meaning | | --- | --- | --- | | gatewayUrl | yes | Gateway origin, no /v1 suffix — the Anthropic transport appends the path | | apiKey | no | Personal ark_… key. Falls back to $ANYRAY_CLIENT_KEY | | user | no | Attribution identity (content-free) | | team | no | Attribution grouping (content-free) |

Set ANYRAY_CLIENT_KEY in config env: as well as config.apiKey — the catalog-contributed key alone does not satisfy auth in every launch path.

Compatibility

Requires OpenClaw ≥ 2026.7.1, which is where plugin-sdk/provider-entry and defineSingleProviderPluginEntry landed. On older builds the plugin's first import fails.

Privacy

The plugin is content-free by construction. It sends no prompt or response content anywhere:

  • metadata.user_id is a UUID-shaped SHA-256 of an opaque session key — never user data.
  • Attribution carries only the user/team you configure, plus the tool name.
  • There is no logging of any kind in this package, and no network call of its own.

Development

npm install
npm test     # node --test
npm run build

Zero runtime dependencies.

License

MIT — see LICENSE.