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

@transmitt0r/openclaw-plugin-onepassword

v0.1.5

Published

OpenClaw plugin — 1Password secret provider integration

Readme

openclaw-plugin-onepassword

CI License: MIT

An OpenClaw plugin that provides a 1Password secret provider integration — batch-resolution of secrets from your vaults via the op CLI.

Instead of defining a separate exec provider for every 1Password secret (6+ cold op starts at startup), this plugin registers one batched provider that resolves complete op:// references. OpenClaw sends all ids in one stdin request, the resolver calls op read for each in sequence, and returns all resolved values in one stdout response.

Install

openclaw plugins install clawhub:@transmitt0r/openclaw-plugin-onepassword

Or for local development, point OpenClaw at a built copy of this repo.

Prerequisites

  • 1Password CLI (op) installed on the gateway host
  • Service account auth: OP_SERVICE_ACCOUNT_TOKEN set in the gateway environment
  • Or desktop app integration: the 1Password desktop app running with CLI integration enabled

Verify with op whoami from the gateway host.

Configure

  1. Register the plugin and provider — no plugin config needed:
{
  plugins: {
    entries: {
      onepassword: { enabled: true },
    },
  },
  secrets: {
    providers: {
      onepassword: {
        source: "exec",
        pluginIntegration: {
          pluginId: "onepassword",
          integrationId: "secret-store",
        },
      },
    },
    defaults: {
      exec: "onepassword",
    },
  },
}

secrets.defaults.exec: "onepassword" makes onepassword the default provider for source: "exec" refs (see SecretRef docs for how source/provider/defaults interact). To name it explicitly instead: { source: "exec", provider: "onepassword", id: "..." }.

  1. Replace your inline op read providers with SecretRefs whose id is a complete 1Password reference:

Before (6 exec providers):

{
  "op-openai": {
    source: "exec",
    command: "/home/openclaw/.local/bin/op-exec",
    args: ["read", "op://Openclaw/OpenAI API/credential"],
    passEnv: ["OP_SERVICE_ACCOUNT_TOKEN"],
    jsonOnly: false,
    timeoutMs: 5000,
  },
  // ... 5 more identical blocks
}

After (one provider, clean refs):

{
  models: {
    providers: {
      openai: {
        apiKey: { source: "exec", id: "op://Openclaw/a1b2c3d4e5f6g7h8i9j0k1l2m3/credential" },
      },
      google: {
        apiKey: { source: "exec", id: "op://Openclaw/n4o5p6q7r8s9t0u1v2w3x4y5z6/credential" },
      },
      // etc.
    },
  },
  channels: {
    telegram: {
      accounts: {
        default: {
          botToken: { source: "exec", id: "op://Openclaw/aabbccddeeffgghh11223344mm/credential" },
        },
      },
    },
  },
}

id must match OpenClaw's SecretRef id pattern (letters, digits, ._:/#-, no spaces). A plain op://<vault name>/<item name>/<field> reference usually violates that, since item (and sometimes vault) names contain spaces — so use 1Password's item ID instead of its display name for whichever segment needs it. Item IDs are plain alphanumeric strings, always valid. List them with:

op item list --vault Openclaw --format=json | jq -r '.[] | "\(.id)  \(.title)"'

There's no plugin-level config (no vault/field/items to set up): OpenClaw doesn't give a secretProviderIntegration process any channel to receive a plugin's own config (plugins.entries.<id>.config) at all — only static, manifest-authored env/passEnv reach it. Folding vault/item/field into the id itself sidesteps needing one.

How it works

OpenClaw's exec provider protocol supports batching. The resolver:

  1. Receives a JSON request on stdin with all requested ids
  2. Passes each id straight to op read --no-newline (sequential — op has no batch-read)
  3. Returns a JSON response on stdout with all resolved values
// stdin
{"protocolVersion":1,"provider":"onepassword","ids":["op://Openclaw/a1b2c3d4e5f6g7h8i9j0k1l2m3/credential"]}

// stdout
{"protocolVersion":1,"values":{"op://Openclaw/a1b2c3d4e5f6g7h8i9j0k1l2m3/credential":"sk-..."}}

Per-id errors (including an id that isn't a complete op:// reference) are returned as errors entries without aborting the whole batch.

Development

See CONTRIBUTING.md for dev setup, commit conventions, and how releases work.