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

n8n-nodes-ai-cli

v0.2.0

Published

n8n community node that runs your locally-installed, already-logged-in Claude Code and OpenAI Codex CLIs — use your existing Claude Pro/Max or ChatGPT subscription from a workflow without an API key.

Readme

n8n-nodes-ai-cli

An n8n community node that runs your locally-installed, already-logged-in AI coding CLIs from inside a workflow:

  • Claude Code (claude -p) — uses your Claude Pro/Max subscription
  • OpenAI Codex (codex exec) — uses your ChatGPT subscription

Because it drives the official first-party CLIs (which you log into with your normal account), it uses your existing subscription quota — no API key and no separate per-token billing. This only works on a machine where the CLI is installed and you've already run its login flow.

⚠️ Security: this node executes the CLI as the same OS user running n8n. With Skip Permission Prompts enabled the model can run commands and edit files on that machine. Only use it in workflows you trust, and never expose the n8n instance to the internet without authentication.

Prerequisites

Installation

Community Nodes (recommended): Settings → Community Nodes → Install → n8n-nodes-ai-cli.

Local development (this repo):

npm install
npm run build
# link into n8n's custom extensions dir
npm link
mkdir -p ~/.n8n/custom && cd ~/.n8n/custom && npm link n8n-nodes-ai-cli
# restart n8n

Node: AI CLI

| Field | Description | |---|---| | Provider | Claude Code or OpenAI Codex | | Prompt | The prompt sent to the CLI | | Model | Optional model override (e.g. claude-sonnet-4-5, gpt-5-codex) | | Binary Path | Optional absolute path to the CLI; auto-resolved from PATH otherwise | | Working Directory | Directory to run in (for file-aware tasks) | | System Prompt | Claude: --append-system-prompt; Codex: prepended to the prompt | | JSON Output | Request structured JSON and parse it into data | | Skip Permission Prompts | Let the CLI run tools/edit files unattended (trusted workflows only) | | Extra Arguments | Raw extra flags (space-split) | | Timeout (ms) | Kill the CLI after N ms (default 300000) |

Output

{
  "provider": "claude",
  "model": "default",
  "stdout": "…model response…",
  "stderr": "",
  "exitCode": 0
}

License

MIT