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

@veridex/agents-openclaw

v0.1.4

Published

OpenClaw/Pi compatibility bridge for the Veridex Agent Runtime — skill importer, context-file importer, ACP bridge, session/event translator

Readme

@veridex/agents-openclaw

OpenClaw and Pi interoperability layer for the Veridex agent runtime.

Status

@veridex/agents-openclaw is implemented and already supports context-file parsing, skill import, ACP collaboration, and session translation. It is still a young bridge, so the safest mental model is "incremental interoperability," not "perfect emulation of every OpenClaw behavior."

What This Package Does

Use this package when you want to:

  • import OpenClaw workspace context into Veridex
  • parse docs-native SKILL.md files
  • import serialized skill manifests
  • expose or consume ACP-capable collaborators
  • translate OpenClaw/Pi session artifacts into Veridex trace-friendly shapes

Installation

npm install @veridex/agents-openclaw @veridex/agents

Package Surface

| Export group | What it does | |---|---| | parseWorkspaceContextFiles, parseContextFile, compileContextSections | Parse and compile OpenClaw workspace context files | | parseSkillDocument, importSkill, importSkillDocument, importSkillManifest | Convert skills and manifests into Veridex tool contracts | | toACPAgentCard, fromACPCapabilities, createRemoteAgentTool | Bridge ACP-facing collaborators | | translateEvent, translateSession, translateSessions | Map session artifacts into Veridex-friendly trace/event shapes |

Context Files

The bridge understands OpenClaw workspace files such as:

  • AGENTS.md
  • BOOTSTRAP.md
  • HEARTBEAT.md
  • IDENTITY.md
  • MEMORY.md
  • SOUL.md
  • memory logs under memory/YYYY-MM-DD.md

Example:

import {
  parseWorkspaceContextFiles,
  compileContextSections,
} from '@veridex/agents-openclaw';

const files = parseWorkspaceContextFiles([
  {
    filename: 'BOOTSTRAP.md',
    content: '# Startup\nAlways explain the current plan before acting.',
  },
  {
    filename: 'MEMORY.md',
    content: '# Customers\nAcme is on the enterprise plan.',
  },
]);

const compiled = compileContextSections(files);
console.log(compiled);

Importing SKILL.md

import {
  parseSkillDocument,
  importSkillDocument,
} from '@veridex/agents-openclaw';

const document = parseSkillDocument(`
---
name: fetch_account
description: Fetch an account record
tools:
  - id: fetch_account
    name: fetch_account
    description: Fetch an account record by id
    requiresNetwork: true
---

Look up the user account and summarize the important fields.
`);

const { tool, warnings } = importSkillDocument(document);

console.log(tool.name, warnings);

Important behavior

Imported skills default to a fail-closed executor unless you:

  • provide a concrete local executor, or
  • bind the skill to a remote ACP/OpenClaw collaborator

That is deliberate. OpenClaw skills are often instruction bundles, not standalone executable tools.

Binding Imported Skills to a Remote Collaborator

import { importSkillDocument, parseSkillDocument } from '@veridex/agents-openclaw';

const document = parseSkillDocument(rawSkillMarkdown, 'SKILL.md');

const { tool } = importSkillDocument(document, {
  remote: {
    name: 'remote-openclaw-agent',
    description: 'OpenClaw collaborator over ACP',
    endpoint: 'https://agent.example.com/acp',
    auth: {
      type: 'bearer',
      token: process.env.REMOTE_AGENT_TOKEN,
    },
  },
});

ACP Bridge

Use ACP helpers when you want to collaborate with an OpenClaw-like or ACP-facing agent directly.

import { createRemoteAgentTool } from '@veridex/agents-openclaw';

const remoteTool = createRemoteAgentTool({
  name: 'portfolio-analyst',
  description: 'Remote analyst agent',
  endpoint: 'https://agent.example.com/acp',
  auth: {
    type: 'bearer',
    token: process.env.ACP_TOKEN,
  },
});

Session Translation

If you already have OpenClaw or Pi session artifacts, translate them into Veridex-friendly event shapes:

import { translateSession } from '@veridex/agents-openclaw';

const translated = translateSession({
  sessionId: 'sess_123',
  agentId: 'claw-agent',
  events: [
    { type: 'run_started', timestamp: Date.now(), data: { input: 'hello' } },
  ],
});

console.log(translated.traceEvents);

Migration Guidance

The safest way to move an OpenClaw workspace into Veridex is:

  1. import the workspace context
  2. import SKILL.md files and review warnings
  3. bind real executors or remote ACP collaborators
  4. register the resulting tools in a Veridex runtime
  5. move high-control or payment-sensitive flows into Veridex-native policies and approvals

Related Packages

| Package | Use it with | |---|---| | @veridex/agents | Required target runtime for imported skills and tools | | @veridex/agents-react | Useful when you want to surface bridge behavior in a React UI | | @veridex/agents-adapters | Use when the migration source is another framework family rather than OpenClaw/Pi |

Known Rough Edges

  • OpenClaw skills are not automatically executable just because they import cleanly.
  • Some workspace conventions vary, so real-world skill packs may still need manual review.
  • ACP collaboration is only as complete as the remote capability surface you bind to.

Contributions are welcome, especially around broader workspace fixtures, more migration examples, and more live ACP interoperability coverage.