# Allow the AI assistant in a project

> Add an AI provider (a cloud service or a model on your own network), allow it in the project where the assistant may be used, give the assistant the project's context, and know what plant data leaves the site and what the server refuses.

Product: eaxScada · Type: How-to guide · Editions: Pro, Enterprise
Source: https://eaxware.com/docs/eaxscada/how-to/use-the-ai-assistant/
Status: migrated page, not yet verified against the current code.

## Goal

The studio's AI assistant answers questions about the plant and drafts screens, using a model your company approved, in the projects where you allowed it, and only there. Plant data goes only to the providers a project allows.

The assistant is in Pro and Enterprise (and in Free for evaluation). External assistants such as Claude Code connect differently: see [Connect Claude or another MCP client](/docs/eaxscada/how-to/connect-an-mcp-client/).

## How it is decided

| Step | Who | Where |
|---|---|---|
| Add a provider (a service, its model, its key, cloud or local) | Administrator | AI assistant settings → **AI providers** |
| Allow a provider in a project, and write the project's context | Lead_Engineer or Administrator | **This project** in the same dialog, or **Allow in this project** in the chat |
| Chat | any role that may use the assistant | the assistant panel |

A provider set up for the server is used in a project **only once the project allows it**. Until then the chat stays off in that project. The server enforces it: a chat to a provider the project does not allow is refused (`403`) and nothing is sent, even in the middle of a conversation.

## 1. Add a provider (administrator)

1. Open the assistant panel (the sparkle button in the top bar) and its **Settings**.
2. **Add provider**: a name, the type of service, the model, the address for a model on your network, the key for a cloud service, and its **location**: **cloud** (data leaves the site) or **local** (on your network).
3. **Test** sends a short request; **Test picture** checks that it accepts pictures.

The key is stored encrypted and never shown again.

## 2. Allow it in the project

The chat says what is missing and offers the step:

- an engineer sees the enabled providers with **Allow in this project**. The confirmation names the provider and model and says where plant data goes: "leaves the site" for a cloud provider, "on your network" for a local one;
- an operator reads "Ask an engineer to allow an AI provider for this project.";
- with no provider at all, an administrator is offered **Add a provider**.

Or in the settings dialog, under **This project**, tick the providers the project may use and write the **Project context**: what the project is, its areas and equipment, its tag naming. The chat starts working without a reload.
[Image: AI assistant settings, This project: the local provider allowed in the project, and the project context given to the assistant.]
[Image: AI assistant settings, This project: the local provider allowed in the project, and the project context given to the assistant.]

A local model allowed in the Docs plant project.
**Plant-wide context** (administrator) is given to the assistant in every project: naming conventions, standards, safety rules. **Attachments** sets what users may attach: see [Attach pictures and documents](/docs/eaxscada/how-to/attach-files-to-the-ai-assistant/).

Every change is recorded in the audit trail with the provider and its location (`AI_PROVIDER_SAVED`, `AI_PROJECT_POLICY_SAVED`).

## What the assistant may do

- Read what the signed-in user may read: the project, its displays and other objects, tags with their values and quality, active alarms, and the PLC's program and variables.
- Propose a change to one object at a time (a display, a page, an alarm definition, a driver channel, device or tag, an eaxTag or script, a UDT): you see the change, and it is saved only when you apply it, through the normal save with your rights. Kinds that need an electronic signature ask for yours.
- It never writes a tag, signs, deploys, controls the PLC or reads server files.

## Switch it off

`assistant.enabled: false` in `config.yaml` (or `EAX_ASSISTANT_ENABLED=false`) switches the assistant off for the whole server. Removing a project's last allowed provider switches it off in that project.

## Related

- [Attach pictures and documents in the AI assistant](/docs/eaxscada/how-to/attach-files-to-the-ai-assistant/)
- [MCP AI gateway](/docs/eaxscada/explanation/mcp-ai-gateway/)
- [Let the AI assistant check a deploy](/docs/eaxscada/how-to/let-the-assistant-check-a-deploy/): an advisory review before people approve.
- [Translate your project](/docs/eaxscada/how-to/translate-your-project/): **Draft with AI** uses the project's provider.
