Goldnat Plugins
← Back to NodeBB

NodeBB AI Connect — Installation & Setup Guide

Install and connect nodebb-plugin-ai-connect (Servio Protocol) to your NodeBB forum. 7 free read tools + Pro upgrade for write actions.

📅 Updated: 2026-07-07 🎬 Video: nodebb-install-connect

Overview

Goldnat AI Connect for NodeBB turns your NodeBB forum into a Servio Protocol tool server. NodeBB is built on Node.js + Redis/PostgreSQL/MongoDB, and our plugin runs inside the NodeBB process itself.

What you get:

  • 7 free toolsgetCategories, getTopics, getTopic, getPost, searchTopics, getUserProfile, getRecentTopics
  • Pro upgradecreateTopic, replyToTopic, editPost, sendMessage, followTopic
  • Separate Pro extension: nodebb-admin-ai-connect (Moderation + Groups + Analytics)

Prerequisites

  • NodeBB 3.x
  • Node.js 18+
  • DB backend — Redis / PostgreSQL / MongoDB (whatever NodeBB uses)
  • HTTPS recommended
  • Administrator permission

Installation

cd /path/to/nodebb
npm install nodebb-plugin-ai-connect
./nodebb build
./nodebb restart

Via the Admin UI

  1. Admin → Extend → Plugins → search for nodebb-plugin-ai-connect.
  2. InstallActivate.
  3. Admin → Restart NodeBB (required!).
  4. After restart: Admin → Extend → Plugins — the plugin should be “Active”.

Connecting to an AI Agent

  1. User Menu → AI Connect Tokens (or /user/username/ai-connect).
  2. Generate Prompt — a ready-to-paste block appears.
  3. Paste it into your agent → OAuth PKCE runs → approve.

First Test

  • “What categories exist on this forum?” → nodebb.getCategories
  • “Show 5 recent topics” → nodebb.getRecentTopics with limit=5
  • “Search for topics about React” → nodebb.searchTopics with q=React

With Pro:

  • “Create a new topic in ‘General’ with title X” → nodebb.createTopic
  • “Reply to topic #42” → nodebb.replyToTopic

Reconnecting

Tokens valid for 30 days. Refresh:

  1. AI Connect Tokens → Revoke the old.
  2. Generate Prompt again.

Token Management

/user/{username}/ai-connect page with filters: Active / Renewable / Unused / Inactive / Revoked / All. Bulk revoke available.

Uninstalling the Plugin

1. Revoke all tokens

  • AI Connect Tokens → Revoke All — kills every active session.

2. Deactivate the plugin

  • Admin → Extend → Plugins → find nodebb-plugin-ai-connectDeactivate.

3. Uninstall via NPM

cd /path/to/nodebb
npm uninstall nodebb-plugin-ai-connect
./nodebb build
./nodebb restart

4. Reset the plugin data (fresh reinstall only)

./nodebb reset -p nodebb-plugin-ai-connect

Warning: Deletes all token history and audit logs.

Common Troubleshooting

ErrorCauseFix
Plugin not found after installRebuild didn’t run./nodebb build && ./nodebb restart
Manifest 404Routes not loaded./nodebb reset -p nodebb-plugin-ai-connect
WebSocket disconnectProxy doesn’t support WSEnsure nginx/apache sets Upgrade: websocket
Bearer token invalidToken expired/revokedReconnect

Support

Need help? Contact us and we’ll get back to you.

Video Tutorial (Coming Soon)

Segments: (A) Goldnat AI Connect on the Servio Protocol, (B) installing via admin UI + rebuild + restart, (C) connecting to an AI agent, (D) live usage — 3 requests.

Screenshots

NodeBB admin - Extend/Plugins
Navigate to Extend → Plugins
Enable the plugin
Activate + rebuild + restart
Token management page
Generate prompt for AI agent connection

🎬 Video Tutorial — Coming Soon

A 3-5 minute video covering: intro → install → connect → demo.

Tag: nodebb-install-connect

Status: Awaiting production

Pro

NodeBB AI Connect Pro — Moderator Tools

New here? Start with the basic setup guide above.

What Pro adds

The free NodeBB plugin gives AI agents read-only access (browse categories, topics, posts, search). Pro adds the write tools, so an agent can create topics, reply, edit content, message members and follow topics.

Pro ships as a separate package (nodebb-admin-ai-connect) that installs alongside the free plugin. The core plugin holds the tool infrastructure; the Pro package holds the Pro tools and registers them into the same manifest — they never appear unless the edition is Pro.

Pro tools

ToolScopeWhat it does
createTopicwriteCreate a new topic in a category
replyToTopicwritePost a reply to an existing topic
editPostwriteEdit an existing post
sendMessagewriteSend a private chat message to a user
followTopicwriteFollow or unfollow a topic for notifications

Enabling Pro

  1. Install the free NodeBB plugin first (see the basic guide above).
  2. Install the nodebb-admin-ai-connect package alongside it.
  3. Set the edition to Pro: AICONNECT_EDITION=pro in the plugin’s .env, then restart NodeBB (./nodebb restart).
  4. Regenerate your connection prompt — the five Pro tools now appear in the manifest.

Scope note

All Pro tools require the write scope. Every action runs as the token owner, so it is limited to what that user may do in NodeBB — the scope is the ceiling, the user’s permissions are the floor.

This guide is informational and non-binding. Steps and behavior can vary between platforms and plugin versions. For the binding terms, see the Terms & Conditions.

Tools

Available tool calls.

32 tools exposed via the Servio protocol. Pro tools are marked.

nodebb

  • nodebb.banUser Ban a user. Provide optional reason and until (Unix timestamp; omit for permanent).
  • nodebb.bookmarkPost Bookmark a post for the acting user. Provide bookmark:false to remove.
  • nodebb.createTopic Create a new topic in a category
  • nodebb.createUser Create a new user account. Returns the new uid.
  • nodebb.deletePost Soft-delete a post (hidden but recoverable). Use purgePost to hard-delete.
  • nodebb.deleteTopic Soft-delete a topic (hides from lists; can be restored). Use purgeTopic to hard-delete.
  • nodebb.deleteUserAccount DELETE a user account. Destructive. Provide keepPosts=true to preserve their posts.
  • nodebb.downvotePost Downvote a post as the acting user.
  • nodebb.editPost Edit an existing post
  • nodebb.followTopic Follow or unfollow a topic for notifications
  • nodebb.lockTopic Lock a topic (prevents new replies).
  • nodebb.moveTopic Move a topic to a different category.
  • nodebb.pinTopic Pin a topic to the top of its category.
  • nodebb.purgePost HARD-DELETE a post. Destructive and irreversible.
  • nodebb.purgeTopic HARD-DELETE a topic and all its posts. Destructive and irreversible.
  • nodebb.replyToTopic Post a reply to an existing topic
  • nodebb.sendMessage Send a private chat message to a user
  • nodebb.unbanUser Lift a ban on a user.
  • nodebb.unlockTopic Unlock a previously locked topic.
  • nodebb.unpinTopic Unpin a previously pinned topic.
  • nodebb.updateUserAvatar Set a user avatar to an external image URL.
  • nodebb.updateUserProfile Update a user profile (fullname, email, website, location, aboutme, etc).
  • nodebb.upvotePost Upvote a post as the acting user.
  • nodebb.getCategories List all forum categories
  • nodebb.getCurrentUser Get the profile of the user the bearer token belongs to. Use this first to know who you are authenticated as.
  • nodebb.getForumStats Return community stats — currently `unanswered_count`. Definition: topic with postcount == 1 (only the OP, no replies) AND not deleted/locked/scheduled. The from/to/timezone params are accepted for uniform brief-collector shape but the count is a live snapshot at query time.
  • nodebb.getPost Get a single post by ID
  • nodebb.getRecentTopics Get recently active topics
  • nodebb.getTopic Get a topic with all its posts
  • nodebb.getTopics List topics in a category
  • nodebb.getUserProfile Get a user profile by UID or username
  • nodebb.searchTopics Search topics by keyword