n8n-nodes-openclaw-dqh
v0.1.1
Published
n8n community nodes for OpenClaw
Downloads
183
Maintainers
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:3000or another private address directly
Typical Base URL examples:
http://127.0.0.1:3000http://openclaw:3000http://192.168.1.25:3000
Important:
127.0.0.1only 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.comhttps://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:3000in 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:
responsesessionIdmodelraw(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.contentarrays 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 buildInstall 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
- Set Connection Mode to n8n and OpenClaw on the Same Machine
- Enter a directly reachable Base URL such as
http://127.0.0.1:3000 - Keep Chat Path as
/api/chatunless your adapter uses a different route - Add API Token if your endpoint requires it
- Click Test Connection in the credential
- Run the node
Hosted n8n to hosted OpenClaw
- Set Connection Mode to Hosted n8n to Hosted OpenClaw
- Enter your public HTTPS Base URL
- Confirm the endpoint is reachable externally
- Add API Token if required
- Click Test Connection in the credential
- Run the node
Hosted n8n to local OpenClaw via tunnel
- Expose your local OpenClaw server through a tunnel or reverse proxy
- Confirm the tunnel forwards requests to your local OpenClaw port
- Set Connection Mode to Hosted n8n to Local OpenClaw via Tunnel
- Paste the public tunnel URL into Base URL
- Add API Token if required
- Click Test Connection in the credential
- Run the node
Publish
npm login
npm publish --access publicNotes before publishing
- Confirm the npm package name
n8n-nodes-openclaw-dqhis available - Update
author,homepage, andrepositoryinpackage.jsonif needed - Build once locally before publishing
- If you want better marketplace trust, add a real GitHub repo and screenshots in the next revision
