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

@lykhoyda/pi-cursor-subscription

v1.5.1

Published

Cursor provider for Pi Coding Agent. Fork of @rahularya01/pi-cursor with privileged native exec off by default.

Readme

@lykhoyda/pi-cursor-subscription

Use your Cursor subscription models (Composer, Claude, GPT, Grok, and others) inside the Pi Coding Agent. This package registers a cursor provider that talks to Cursor's agent backend over HTTP/2 (Connect + Protobuf). No separate API key and no Cursor CLI subprocess per turn.

Fork of @rahularya01/pi-cursor 1.5.0 (based on upstream 1.4.34). Version bumps go through Changesets; a matching v* tag publishes @lykhoyda/pi-cursor-subscription to npm.

Unofficial. Not affiliated with Cursor / Anysphere. Community reverse-engineered wire details; Cursor can change protocols anytime. Use only on accounts you are allowed to access, and review the source before /login cursor.

Requirements

| | | | --------------------------- | ------------------------------------------------ | | Pi Coding Agent / Pi AI | >= 0.80.0 | | Bun | >= 1.4.0 (only supported runtime) | | Cursor account | Signed in via app, CLI, or /login cursor below |

Install

pi install git:github.com/Lykhoyda/pi-cursor-subscription

Restart Pi or run /reload. To update:

pi update git:github.com/Lykhoyda/pi-cursor-subscription

Quick start

  1. Sign in — if the Cursor app or CLI (cursor / agent) is already logged in on this machine, credentials are picked up automatically. Otherwise:

    /login cursor
  2. Choose a model (examples; your account may differ):

    /model cursor/composer-2.5

    Run /cursor.models for the live catalog.

  3. Chat. If something fails, run /cursor.doctor first (token source, endpoint, last error).

Privileged native exec (default: off)

On the open Run RPC, this fork rejects Cursor-native shell, fetch, write, and delete execs unless you opt in. The model should use Pi MCP tools instead (with Pi's confirmation UI). Read, ls, and grep still run on the native exec channel.

Restore upstream 1.4.31+ behaviour only if you accept that risk:

export PI_CURSOR_NATIVE_EXEC=1

See SECURITY.md for credential handling and URL allowlisting.

Authentication

Credentials resolve in order:

  1. CURSOR_ACCESS_TOKEN
  2. Pi OAuth store (~/.pi/agent/auth.json from /login cursor)
  3. Cursor CLI Keychain (cursor-access-token / cursor-refresh-token)
  4. Cursor IDE globalStorage/state.vscdb (macOS, Linux, Windows, or WSL — current Windows user only on WSL)

/login cursor wins over harvested CLI/IDE tokens so another Cursor login on the machine does not silently override yours.

Opt out of Keychain / IDE / WSL harvest:

export PI_CURSOR_SYSTEM_CREDENTIALS=0

Commands

| Command | Description | | -------------------- | ------------------------------------------------- | | /login cursor | Browser PKCE sign-in; refreshes the model catalog | | /model cursor/<id> | Select a Cursor model | | /cursor.models | List models, context windows, thinking levels | | /cursor.models all | Include internal tab/chat variants | | /cursor.usage | Usage quota TUI | | /cursor.doctor | Sanitized diagnostics |

Reasoning effort (offmax) maps to Cursor's model variants. Restrict the picker in ~/.pi/agent/settings.json with enabledModels.

Troubleshooting

  • No API provider registered for api: cursor-native: pi update git:github.com/Lykhoyda/pi-cursor-subscription and /reload.
  • 401 / not logged in: /login cursor or check /cursor.doctor (tokenSource).
  • Hung stream / wire errors: /cursor.doctor (clientVersion, wireDrift); see AGENTS.md for env tuning (PI_CURSOR_CLIENT_VERSION, timeouts, debug flags).
  • Stale model list: Open /model to refresh, or clear PI_CURSOR_CACHE_DIR (default under ~/.cache/pi-cursor).

Development

bun install
bun run check

Architecture, module layout, and the full environment variable list live in AGENTS.md.

Attributions

Wire patterns from opencode-cursor and @pi-stef/cursor. Upstream: Rahularya01/pi-cursor.

License

MIT