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

pi-ssh

v0.3.2

Published

pi extension for local-model plus remote SSH workspace tool execution

Readme

pi-ssh

Run pi locally, work on files remotely over SSH.

pi-ssh is a pi extension that gives you a Cursor-like remote SSH workflow:

  • pi runs on your local machine
  • model access, API keys, and billing stay local
  • read, write, edit, and bash run on a remote host via SSH

Why

This is useful when:

  • your code/checkouts live on a VM
  • your model/tooling access is easier locally
  • you want one local account to drive many remote workspaces

Features

  • --ssh user@host or --ssh user@host:/remote/path
  • optional port: --ssh-port 2222 (alias: -p 2222, default: 22)
  • Remote tool delegation for:
    • read
    • write
    • edit
    • bash
  • SSH connection multiplexing (ControlMaster/ControlPersist) for faster repeated tool calls
  • Persistent remote shell session for bash commands
    • uses your remote account's configured login shell (for example zsh)
    • environment persists across commands (for example export TEST=123)
    • Ctrl-C interrupts the current remote command but keeps the SSH session alive
  • Remote execution for user ! commands
  • Status indicator in the pi UI when SSH mode is active
  • System prompt cwd rewrite to reflect remote cwd

Requirements

  • SSH client installed locally
  • Passwordless SSH auth recommended (keys/agent)
  • Remote host with:
    • a standard login shell (for example zsh or bash)
    • cat, test, mkdir, pwd
    • optional: file (for image mime detection)

Install

Option A: project-local extension

mkdir -p .pi/extensions
cp /path/to/pi-ssh/index.ts .pi/extensions/pi-ssh.ts

Then start pi in your project and pass --ssh.

Option B: global extension

mkdir -p ~/.pi/agent/extensions
cp /path/to/pi-ssh/index.ts ~/.pi/agent/extensions/pi-ssh.ts

Usage

Use remote host default cwd

pi --ssh user@my-vm
# same, explicit default
pi --ssh user@my-vm --ssh-port 22

Use explicit remote workspace path

pi --ssh user@my-vm:/home/user/chromium/src
# custom port
pi --ssh user@my-vm:/home/user/chromium/src -p 2222

You should see a status line similar to:

SSH user@my-vm:/home/user/chromium/src (port 22)

Typical workflow

  1. Start pi locally with --ssh ...
  2. Ask pi to inspect/edit files as usual
  3. All tool operations run remotely
  4. Keep local model switching, auth, and limits as usual

Notes

  • Absolute paths are strongly recommended for the remote path.
  • Paths under local $HOME are mapped to remote $HOME in SSH mode (for example ~/.config/...).
  • If --ssh is not set, extension falls back to local tool behavior.
  • Current version focuses on core coding tools (read/write/edit/bash).

Troubleshooting

"pi-ssh failed to connect"

Check:

ssh user@host
ssh user@host 'pwd'

Commands work locally but not remotely

Verify remote shell tools exist:

ssh user@host 'which cat test mkdir pwd'

Slow tool calls

bash/! and most read/write/edit operations use a shared persistent SSH session. Very large writes fall back to one-shot SSH streaming for reliability.

Development

  • Spec: extension-spec.md
  • Extension entry: index.ts

License

MIT