← All plugin manuals

Ned AI

Alpha manual
Plugin version: 0.4.1-alpha Manual version: 0.3.1 Last updated: 2 September 2026

Ned AI (local_nedai) is the shared AI platform for Ned Tools plugins and the foundation for the optional Ned assistant in Moodle. It connects directly to Ned Cloud through the licence configured in Ned Hub.

Development preview: the persistent Ned launcher and chat panel are available to eligible logged-in users when enabled. Credit purchases, automatic top-up, attachments, and server-side conversation history are not active yet.

Requirements

Install and configure

  1. Install local_nedai in Moodle's local/nedai directory and complete the Moodle upgrade process.
  2. Open Site administration → Plugins → Local plugins → Ned AI.
  3. Enable Ned AI platform to allow Ned Tools plugins to use the shared service when the licence and credit checks pass.
  4. Enable Ned assistant to show the persistent launcher to logged-in users with the local/nedai:useassistant capability.

Settings

SettingPurpose
Enable the Ned AI platformAllows registered Ned Tools plugins to request Ned Cloud AI services when the site has a valid Ned Hub licence and sufficient credits.
Enable the Ned assistantShows the persistent green Ned launcher and chat panel independently of platform requests from other plugins.

The licence key and Ned Cloud URL remain controlled in Ned Hub. Moodle AI Manager and a separate Moodle AI provider plugin are not required.

Test the OpenAI connection

  1. Ask the Ned Cloud operator to configure the OpenAI API key privately on the server.
  2. Enable Ned AI platform.
  3. Open Site administration → Plugins → Local plugins → Test AI connection.
  4. Enter a short prompt and send it. A successful response displays the provider, model, token usage, and Ned AI credits charged.

The OpenAI key is never stored in Moodle or committed to GitHub. Test prompts are sent from Moodle to Ned Cloud and then to OpenAI.

Use the Ned assistant

Credit status

Open Site administration → Plugins → Local plugins → Ned AI credits to see the licence plan, credit period, included credits, purchased credits, used credits, and remaining credits. Access requires the local/nedai:configure capability.

The current ledger is a development preview. Included allowances default to zero until commercial licence packages are approved. Purchasing and automatic top-up are not yet available.

Privacy and data sharing

Processing locationWhat happens in the current preview
Processed locally in MoodleFeature settings, capability checks, page context preparation, and session-only browser chat history.
Sent to Ned CloudNed Hub licence credentials, assistant messages, recent session history, course name, page title, and page path. Ned Cloud authenticates, meters, and forwards the request.
Sent to third-party AI providersAssistant messages, recent conversation context, and limited page context are sent by Ned Cloud to OpenAI. The OpenAI API key remains on Ned Cloud, and Moodle user IDs are not included.

Troubleshooting

Current alpha limits

This release provides the persistent Ned assistant and administrator connection test through Ned Cloud. It does not yet provide attachments, server-side conversation history, teacher-managed shortcuts, human-support escalation, credit purchases, or automatic top-ups.

Change history

Summary of merged commits that established or changed this plugin.

  1. 05a2b38Migrated the assistant to Moodle 4.5’s output hook and fixed the late-stylesheet coding error in version 0.4.1-alpha.
  2. 3614f1cAdded the persistent Ned launcher, responsive session-based chat, page context, starter prompts, accessibility controls, and administrator used/available token display for version 0.4.0-alpha.
  3. 5434552Added the centrally managed OpenAI connection, token-to-credit metering, and administrator test page for Ned AI 0.3.0-alpha.
  4. 59cd56cAdded the Ned Cloud credit-status preview and licence-linked development credit ledger.
  5. d32780bEstablished the shared Ned AI plugin architecture, feature controls, and development roadmap.
  6. 7f82c2fCreated the Ned AI repository.