# FlowFuse Assistant using self hosted endpoint

**URL:** https://discourse.nodered.org/t/flowfuse-assistant-using-self-hosted-endpoint/98957
**Category:** Share Your Nodes
**Created:** [4 September 2025 20:24 UTC](https://discourse.nodered.org/t/flowfuse-assistant-using-self-hosted-endpoint/98957 "2025-09-04T20:24:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sjoerd1](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@sjoerd1](https://discourse.nodered.org/u/sjoerd1)
#### Post date: [4 September 2025 20:24 UTC](https://discourse.nodered.org/t/flowfuse-assistant-using-self-hosted-endpoint/98957/1 "2025-09-04T20:24:11Z")

</div>

Earlier today I tried out the `@flowfuse/nr-assistant` plugin and it looked really promising. Since I self-host my Node-RED instances, it normally wouldn’t work for me because the assistant expects a FlowFuse-hosted environment.

While looking through the code, I noticed the `settings.js` option where you can specify the URL of the FlowFuse AI service. Instead of pointing it to FlowFuse, I directed it to my own localhost and implemented just one of the required API endpoints.

This is just an experiment — definitely not something to rely on in a production setup — but if you’d like to play around with it too, you can get started by following these steps:

1. Install the [@flowfuse/nr-assistant](https://flows.nodered.org/node/@flowfuse/nr-assistant) plugin.

2. Edit `settings.js` and append this code to the bottom of the file:

3. Restart your instance.

4. Import this flow:

5. Open the details of the `nr-assistant-self-hosted` group, open the **Environmental Variables** tab, and provide values for `NODERED_URL`, `NODERED_USER`, `NODERED_PASS`, and `OPENAI_APIKEY`.

This will now let you use the Function Builder and “Ask the FlowFuse Assistant” functionality to generate nodes and function code.

---

<div class="post-metadata">

### Author: ![XueSheng-RED](https://avatars.discourse-cdn.com/v4/letter/x/ed655f/32.png) [@XueSheng-RED](https://discourse.nodered.org/u/XueSheng-RED)
#### Post date: [13 June 2026 07:53 UTC](https://discourse.nodered.org/t/flowfuse-assistant-using-self-hosted-endpoint/98957/2 "2026-06-13T07:53:03Z")

</div>

@sjoerd1 Thanks for providing these instructions to get nr-assistant running. I've stumbled over the topic after seeing the latest announcement about FlowFuse, Node-RED 5 and AI.  
Is your approach still working?
