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-openclaw-dqh

v0.1.1

Published

n8n community nodes for OpenClaw

Downloads

183

Readme

n8n-nodes-openclaw-dqh

Community nodes for connecting n8n to OpenClaw-compatible HTTP endpoints.

Current status

This package currently includes one node:

  • OpenClaw Chat — send a prompt to an OpenClaw-compatible HTTP endpoint and get text back.

Supported connection layouts

This package now makes the connection model explicit in the credential so users can choose the right setup.

1) n8n and OpenClaw on the same machine

Use this when:

  • n8n and OpenClaw run on the same computer, container network, or private LAN
  • your n8n process can reach http://127.0.0.1:3000 or another private address directly

Typical Base URL examples:

  • http://127.0.0.1:3000
  • http://openclaw:3000
  • http://192.168.1.25:3000

Important:

  • 127.0.0.1 only works if it is localhost from the n8n process itself
  • if your n8n is hosted somewhere else, do not use localhost here

2) Hosted n8n to hosted OpenClaw

Use this when:

  • your n8n runs on n8n Cloud or a VPS
  • your OpenClaw-compatible API is also hosted on a VPS/domain and exposed publicly

Typical Base URL examples:

  • https://openclaw.example.com
  • https://ai.example.net

Checklist:

  • endpoint must be reachable from the internet or at least from the hosted n8n environment
  • use HTTPS
  • protect the endpoint with a bearer token or another auth layer if exposed publicly

3) Hosted n8n to local OpenClaw via tunnel

Use this when:

  • n8n is hosted remotely
  • OpenClaw runs on a local laptop, desktop, or home server
  • you expose OpenClaw through a tunnel or reverse proxy

Typical tunnel examples:

  • Cloudflare Tunnel
  • Tailscale Funnel
  • reverse proxy on a public server

Typical Base URL example:

  • https://my-openclaw-tunnel.example.com

Important:

  • do not use http://127.0.0.1:3000 in this mode
  • the tunnel URL must be reachable from your hosted n8n instance
  • if you use self-signed TLS in a lab environment, enable Ignore SSL Issues only when you understand the risk

Included credentials

OpenClaw API

Fields:

  • Connection Mode — choose the actual network layout
  • Base URL — the OpenClaw URL that your n8n instance can reach
  • API Token — optional bearer token
  • Chat Path — defaults to /api/chat
  • Ignore SSL Issues — optional, useful for self-signed local certs

The credential UI includes setup guidance for the selected connection mode. It also includes a built-in Test Connection action that sends a small POST request to the configured chat endpoint.

Included nodes

OpenClaw Chat

Inputs:

  • Message
  • System Prompt (optional)
  • Session ID (optional)
  • Model (optional)
  • Temperature (optional)
  • Max Tokens (optional)
  • Include Raw Response

Outputs:

  • response
  • sessionId
  • model
  • raw (optional)

The node also shows a reminder that hosted n8n cannot reach localhost on a user laptop unless OpenClaw is exposed through a tunnel or hosted remotely.

Expected HTTP contract

This node expects an endpoint like:

POST {baseUrl}{chatPath}

Example request:

{
  "message": "Hello",
  "systemPrompt": "You are a helpful assistant",
  "sessionId": "optional-session-id",
  "model": "optional-model",
  "temperature": 0.7,
  "maxTokens": 1024
}

Supported response shape A:

{
  "response": "Hi there",
  "sessionId": "abc",
  "model": "openai-codex/gpt-5.4"
}

Supported response shape B:

{
  "choices": [
    {
      "message": {
        "content": "Hi there"
      }
    }
  ]
}

Also supported:

  • { "text": "Hi there" }
  • { "content": "Hi there" }
  • OpenAI-style choices[0].message.content arrays containing text parts

If the endpoint returns JSON but none of those fields exist, the node throws a clear error instead of returning a raw JSON string silently.

Install for development

npm install
npm run build

Install in n8n

After publishing, install it as a community node in n8n or add it to your custom nodes setup.

Quick setup guide for users

Same machine / private network

  1. Set Connection Mode to n8n and OpenClaw on the Same Machine
  2. Enter a directly reachable Base URL such as http://127.0.0.1:3000
  3. Keep Chat Path as /api/chat unless your adapter uses a different route
  4. Add API Token if your endpoint requires it
  5. Click Test Connection in the credential
  6. Run the node

Hosted n8n to hosted OpenClaw

  1. Set Connection Mode to Hosted n8n to Hosted OpenClaw
  2. Enter your public HTTPS Base URL
  3. Confirm the endpoint is reachable externally
  4. Add API Token if required
  5. Click Test Connection in the credential
  6. Run the node

Hosted n8n to local OpenClaw via tunnel

  1. Expose your local OpenClaw server through a tunnel or reverse proxy
  2. Confirm the tunnel forwards requests to your local OpenClaw port
  3. Set Connection Mode to Hosted n8n to Local OpenClaw via Tunnel
  4. Paste the public tunnel URL into Base URL
  5. Add API Token if required
  6. Click Test Connection in the credential
  7. Run the node

Publish

npm login
npm publish --access public

Notes before publishing

  • Confirm the npm package name n8n-nodes-openclaw-dqh is available
  • Update author, homepage, and repository in package.json if needed
  • Build once locally before publishing
  • If you want better marketplace trust, add a real GitHub repo and screenshots in the next revision