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

@klavy/local-bridge

v0.1.5

Published

Klavy Remote Local Bridge agent for Claude Code, Codex CLI, and Gemini CLI.

Downloads

69

Readme

@klavy/local-bridge

Node CLI agent for the Klavy Remote Local Bridge. It connects to the Klavy ActionCable WebSocket with a bearer token, reports local Claude/Codex/Gemini health, receives invoke jobs, runs local provider CLIs, and sends job lifecycle messages back over the cable.

Install

npx @klavy/local-bridge install-service --server https://klavy.app --token <token>

Or install the command globally:

npm install -g @klavy/local-bridge

For local development in this repository:

cd packages/local-bridge-agent
npm install
npm test

Commands

npx @klavy/local-bridge install-service --server https://klavy.app --token <token>
npx @klavy/local-bridge connect --server https://klavy.app --token <token>
klavy-local-bridge connect --server https://klavy.app --token <token>
klavy-local-bridge status
klavy-local-bridge service-status
klavy-local-bridge disconnect
klavy-local-bridge uninstall-service

install-service is the recommended macOS setup. It writes the token to ~/.config/klavy-local-bridge/config.json with 0600 permissions and installs a LaunchAgent at ~/Library/LaunchAgents/app.klavy.local-bridge.plist. The plist runs the bridge with --config and does not contain the token.

connect also reads these environment variables:

| Variable | Purpose | | --- | --- | | KLAVY_CABLE_URL | Full ActionCable WebSocket URL. | | KLAVY_CABLE_ORIGIN | WebSocket Origin header; inferred from the cable URL by default. | | KLAVY_URL | Base app URL; /cable is inferred. | | KLAVY_BRIDGE_TOKEN | Bearer token sent as Authorization: Bearer .... | | KLAVY_LOCAL_BRIDGE_CHANNEL | ActionCable channel, default LocalBridgeChannel. | | KLAVY_CLAUDE_BIN | Claude Code binary, default claude. | | KLAVY_CODEX_BIN | Codex CLI binary, default codex. | | KLAVY_GEMINI_BIN | Gemini CLI binary, default gemini. | | KLAVY_CODEX_MODEL | Default Codex model, default gpt-5.4. |

Use --url wss://.../cable only when you need to pass a full ActionCable URL directly.

Wire Protocol

The agent subscribes to LocalBridgeChannel by default. Server frames with message.type, message.event, or message.action equal to invoke are treated as jobs.

An invoke job should include:

{
  "type": "invoke",
  "job": {
    "id": "job_123",
    "provider": "claude",
    "request": {
      "system": "You are helpful.",
      "messages": [{ "role": "user", "content": "Hello" }],
      "model": "gpt-5.4"
    }
  }
}

The agent performs channel actions named:

  • heartbeat
  • accepted
  • chunk
  • completed
  • failed

The bridge supports claude, openai, and gemini. codex is accepted as an alias for openai.