Ask AI answers questions about your organization’s own data inside the console: why a finding matters here and how to fix it, why an asset has the grade it has, what a compliance control asks for and where you stand, what a check detects. It is off until an admin turns it on. You will find it as an Ask AI button on a finding (its page and its side panel), on an asset (Why this grade), beside each compliance control and beside a cloud or Kubernetes check on a finding. Ctrl+J (⌘J on a Mac), or typing a question into the command palette, opens it for anything else. The NHI Security console has an Ask AI button in its top bar too: it is the same assistant, asked with the same sign-in, so it answers from the same tools and spends the same credits. When NHI Security is signed in on its own rather than through the console, the button says Ask AI is not available there.

What it can read, and as whom

The assistant answers as you. Its only tools are the read tools of the MCP server: search and get findings, explain a risk score, list and get assets, posture, compliance status, and the check catalogue. Every lookup goes into the API with your own session, so it sees exactly what you can see in the organization you are signed in to, under your role, and nothing else. A lookup that would reach another organization is refused. It changes nothing. The write tools (suppress a finding, set an asset’s owner, open a fix pull request) are not available to it. When an action clearly follows, it can suggest one; the suggestion is a link to the page where you review it and confirm it yourself, through the same screens and permission checks as always. A suggested code change is shown as a diff you can copy, or take into the fix pull request flow from the finding’s Fix section. Every answer lists the findings, assets and checks it read as links, and is marked AI-generated: verify before acting. Answers can be wrong.

What is sent to Anthropic, and what is not

The model is Anthropic’s Claude, through the Anthropic API: Claude Opus 5.5 on paid plans and Claude Haiku 5.5 on Free, using TRUSTIVAN’s API key, or your organization’s own key if an admin added one (below). For each question, Anthropic receives:
  • your question, and what you were looking at (a finding, asset, control or check id);
  • the fixed instructions the assistant runs under;
  • the results of the lookups it makes to answer, which are the same fields the MCP server returns: for example a finding’s identifier, title, description, severity, status, package and location, an asset’s name and open-finding counts, posture counts and compliance status.
It does not receive: your session or any credential; API keys, registry, cloud or webhook secrets; a secret finding’s value or excerpt (the tools never carry one, and anything shaped like a known credential in other text is replaced with [redacted] before it is sent); members, the audit trail, billing, or any organization’s data other than yours. Text that came from scanned code, images, cloud accounts or advisories is passed to the model labelled as untrusted data, and the assistant is told never to follow instructions in it. Even if it did, it has no tool that changes anything. A dynamic scan report written with AI sends the scan’s records instead of a question: counts, coverage and finding titles, locations and fixes, but no evidence or request and response excerpts. Anthropic’s handling of API data is governed by the operator’s agreement with Anthropic. If your organization cannot send this data to a model provider, leave Ask AI off.

Turning it on

Three things must all be true:
  1. The deployment has a key. The operator sets ANTHROPIC_API_KEY (see Environment). Without one, every Ask AI button is disabled and says so; nothing is ever sent.
  2. Your plan includes it. The ai_assistant plan feature.
  3. An admin turns it on for the organization, in Settings → Organization → AI assistant. Turning it on or off is recorded in the audit trail as assistant.settings_updated.
When any of these is missing, the buttons stay visible but disabled, with the reason.

The audit trail

Every question is recorded as assistant.asked, with who asked, what it was about, which tools were used, how many tokens it cost and whether it finished. By default the question itself is kept only as a SHA-256 digest and its first 80 characters. An admin can choose to keep each question whole (the second switch in the settings card).

AI credits

On TRUSTIVAN’s key, each question spends AI credits from your plan’s monthly allowance: Free 300, Team 3,000, Business 12,000, Enterprise 50,000 (more by agreement). One credit is US$0.01 of the model’s list price, and a question is priced from the tokens it actually used, each kind at its own price (fresh input, cached input read, cached input written, output), so a short question costs a few credits and a long investigation more. The allowance is per calendar month in UTC, resets on the 1st and does not roll over.
  • Alerts. The organization’s owners are emailed at 80% and at 100%, and the Ask AI panel and Settings > Billing and usage show the same warning.
  • At 100% Ask AI stops until the 1st. A question already running finishes.
  • Overage (Team and above): an admin can let questions continue past the allowance at US$0.02 a credit, up to a monthly cap in credits they set (twice the allowance by default). At the cap Ask AI stops again. Overage credits are billed in arrears: on a Stripe deployment they are reported to Stripe every hour and appear on the next invoice. Only credits spent with overage switched on count, and never more than the cap: the question that crosses the allowance while overage is off, or crosses the cap, finishes without its excess being billed.
Settings > Billing and usage shows the month’s credits, the overage cap, spend by day and the latest questions with their model, tokens, list cost and credits.

Your own Anthropic key (BYOK)

On every paid plan (Team, Business and Enterprise, and the standalone Certificates and Exposure plans; not Free) an owner or admin can add the organization’s own Anthropic API key under Settings > Organization > AI assistant. There is no TRUSTIVAN fee for this, and questions on your key spend no AI credits: Anthropic bills you directly. Each question is still recorded in the usage ledger, marked as your key, so you can reconcile it with your Anthropic invoice.
  • Checked before it is saved. One read-only Anthropic call; a key Anthropic refuses is not stored.
  • Encrypted at rest with a key derived for this purpose only, and bound to your organization: copied to another organization it does not open.
  • Write-only. No page, API response, log, audit entry or support tool ever shows it again; you see sk-ant-… with the last four characters and when it was checked and last used. To change it, paste a new one.
  • Audited as assistant.byok.set, .replaced, .revoked and .verify_failed, by fingerprint, never the key.
  • No silent fallback. If Anthropic refuses your key later, the question fails with “Anthropic refused your organization’s own API key”, and is never answered with TRUSTIVAN’s key instead. If your plan stops including BYOK, Ask AI answers 402 naming the plans that include it, until an admin revokes the key.
  • Revoking deletes the encrypted key; the next question uses your plan’s credits. Revoke it at Anthropic too if it may have leaked.
  • The API address stays the operator’s: BYOK cannot point TRUSTIVAN at another host.

Limits

  • A per-person rate (ASSISTANT_REQUESTS_PER_MINUTE, 10 unless changed), on either key.
  • One answer is bounded: at most 2,000 characters of question, six rounds of lookups, and ten minutes.
  • A deployment safety ceiling (ASSISTANT_MONTHLY_TOKENS, per organization per month, every token kind, TRUSTIVAN’s key only). 0 turns Ask AI off on TRUSTIVAN’s key for every organization; -1 removes it. A self-hosted install without plans relies on this alone.
  • Only a person signed in to the console can ask. An API key cannot; machines use the MCP server instead, which spends no AI credits.

Ask AI on the docs site

docs.trustivan.com has its own Ask AI, beside the search box (and in the search dialog on a phone). It is separate from the console’s assistant: nobody signs in, it reads no organization’s data, and it answers only from the published documentation.
  • How it picks its sources. The docs’ own search runs on your question and its top five pages are sent to the API as paths, never as text. The API fetches each page’s Markdown copy from the docs site itself (up to 32 KB a page, 96 KB in all, no redirects followed) and gives the model only those pages and your question.
  • What it answers. Claude Haiku 4.5 is told to use only those pages, cite each claim as [1], [2], and to say the docs do not answer when they do not, which the widget shows with a link to support. It refuses questions that are not about TRUSTIVAN. An answer that cites none of its pages is treated as “not in the docs”. Answers are AI-generated and can be wrong; check the cited page.
  • What goes to Anthropic. Your question (at most 500 characters) and the text of those public pages. Nothing else: no cookie, account or address.
  • Limits. 10 questions per client address per hour and 500 a day for the whole deployment, both changeable on the staff console’s setup page without a restart. An answer is at most 700 output tokens. A refused question gets 429 with Retry-After.
  • Key. It uses the platform Anthropic key (ANTHROPIC_API_KEY). With none set the widget does not appear.
The endpoint is POST /api/v1/docs/ask (API reference, under System); its CORS allows only the docs origin (DOCS_URL) and no credentials.

Not yet available

In the NHI Security console the assistant reads what its tools read; it has no tools for NHI Security’s own identities and findings yet.