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

@dircha/cursor-acp

v1.8.13

Published

ACP adapter for Cursor Agent CLI — use Cursor in any ACP-compatible client including OpenClaw Discord threads

Readme

cursor-acp

An ACP (Agent Client Protocol) adapter for Cursor Agent CLI. Makes Cursor a first-class ACP agent inside OpenClaw — enabling persistent, streaming Cursor sessions bound to Discord threads, with automatic file sharing.


What it does

You (Discord message)
        │
        ▼
  OpenClaw + acpx
        │  JSON-RPC over stdio
        ▼
  cursor-acp  (this adapter)
        │  cursor agent --print --output-format stream-json --trust --resume ...
        ▼
  Cursor Agent CLI → Cursor cloud (your LLM)
        │
        ▼
  Streaming response + files → back to Discord thread
  • Persistent sessions — Cursor conversation context survives across messages via --resume
  • Real-time streaming — responses stream chunk by chunk as Cursor generates them
  • Automatic file sharing — when Cursor creates a file, it's sent to the Discord thread as an attachment automatically
  • Audio/PDF/image attachments — inbound Discord attachments are transcribed or passed to Cursor
  • Per-session working directory — each thread is scoped to a project folder

Requirements

  • OpenClaw with Discord configured
  • Cursor installed and authenticated (cursor agent status)
  • Node.js 18+
  • OpenClaw bot must have Manage Webhooks permission in any Discord channel where you use /cursor

Installation

npm install -g @dircha/cursor-acp

Setup

After installing, run the interactive setup:

cursor-acp setup

This walks you through all configuration steps:

  1. Checks Cursor CLI is authenticated
  2. Updates OpenClaw config to point to the bundled acpx fork
  3. Optionally restarts the gateway
  4. Creates ~/.cursor-acp/config.json with your project mappings
  5. Installs the /cursor shortcut skill (also auto-installed by postinstall)

Manual setup

1. Point OpenClaw at the bundled acpx fork

Edit ~/.openclaw/openclaw.json:

"plugins": {
  "entries": {
    "acpx": {
      "enabled": true,
      "config": {
        "command": "/opt/homebrew/lib/node_modules/@dircha/cursor-acp/acpx-fork/acpx"
      }
    }
  }
}

Adjust the path if your npm global prefix differs — check with npm prefix -g.

2. Restart OpenClaw

openclaw gateway restart

3. Configure your projects

Edit ~/.cursor-acp/config.json:

{
  "baseDir": "/home/user/projects",
  "default": "my-api",
  "channels": {
    "<channelId>": {
      "default": "work-repo",
      "baseDir": "/home/user/work/work-repo"
    }
  },
  "projects": {
    "my-api": "/home/user/projects/my-api",
    "work-repo": "/home/user/work/some-repo"
  }
}

| Field | Purpose | |---|---| | baseDir | Base path for underscore-style resolution | | default | Fallback project when no name matches (or no name given) | | channels | Per-channel defaults — each channel can have its own default and baseDir | | projects | Named project shortcuts → absolute paths |


Usage

Spawn a session in Discord

Use the /cursor shortcut (reads from your config):

/cursor                         # spawns in default project (or channel default)
/cursor my-api                  # spawns in named project
/cursor my-api --n My Feature   # spawns with a custom thread label
/cursor --new new-repo          # creates directory if it doesn't exist, then spawns
/cursor --resume                # reattach to an existing thread's Cursor session

⚠️ Type /cursor from the target project channel — the thread is created in whichever channel you invoke the command from.

Once the thread is created, every message (including images) goes directly to Cursor.

File sharing

When Cursor creates a file, it automatically appears in the Discord thread as an attachment. No manual steps needed.

To opt out: set CURSOR_ACP_AUTO_ATTACH=false.


CLI Commands

cursor-acp setup                        Interactive setup
cursor-acp update                       Update to the latest version from npm
cursor-acp resolve <project>            Resolve a project name to its absolute path
cursor-acp thread-get <threadId>        Get the cwd bound to a Discord thread
cursor-acp thread-set <threadId> <cwd>  Bind a Discord thread to a project cwd
cursor-acp --version                    Print version
cursor-acp --help                       Show help

How it works

For a full technical breakdown — architecture, session flow, file attachment pipeline, acpx fork details, release process — see ARCHITECTURE.md.


Development

git clone https://github.com/ZBot-Workspace/cursor-acp.git
cd cursor-acp
npm install
npm run build

After making changes to src/, run npm run build. Install locally with npm install -g ..


License

MIT