---
title: "Agent registry"
description: "How an AI agent gets into NHI Security, how to register one by hand, revise it, suspend or retire it, and how to read the AI agents and Agent tools screens."
keywords: ["agent registry", "register an agent", "AI agent inventory", "agent lifecycle", "agent tools", "agent evidence"]
---

An AI agent in NHI Security is an identity of type `ai_agent` with an agent profile attached. Every route and every screen addresses an agent by its **identity id**, the same id the inventory, the graph and the [runtime gate](/nhi-security/runtime-gate) use.

This page covers how an agent gets into the inventory, what you can change about it afterwards, and how to read **Agents** and **Agents → Tools**. Declaring autonomy, tool effects and entitlements is covered in [Agent autonomy](/nhi-security/agent-autonomy).

<Warning>
Two connectors report AI agents, and only when you turn it on: the AWS connector reads Amazon Bedrock agents and the Google Cloud connector reads Vertex AI Agent Engine deployments (see [Connectors](/nhi-security/connectors)). Every other agent exists in your organization only because you registered it on this page, because a connector you built against the discovery contract reported one, or because a demonstration deployment seeded synthetic data. See [Limitations](/nhi-security/limitations).
</Warning>

## Permissions

| Permission | Lets you | Roles that hold it |
|---|---|---|
| `agent:read` | See both screens and every read route on this page | Every role |
| `agent:manage` | Register, revise, suspend, reactivate and retire an agent | Organization Admin, Security Admin |

Inside TRUSTIVAN, `agent:manage` therefore belongs to Owners and Admins only: nobody maps to Security Admin. The **Register an agent** button and the edit controls are not shown to anyone without it.

Routes below are written as `/api/v1/...`. Inside TRUSTIVAN they are served under `/nhi`, for example `https://app.trustivan.com/nhi/api/v1/agents`, and take your TRUSTIVAN session.

## Register an agent

<Steps>
  <Step title="Open the form">
    Go to **Agents** and select **Register an agent**.
  </Step>
  <Step title="Describe the agent">
    Enter a **Name** and **What it is for**. Both are required. Choose a **Risk tier** (the form starts at Medium) and a **Hosting** model (the form starts at Self-hosted). **Framework** and **Model** are optional and stored exactly as typed. For a Bedrock agent or a Vertex AI Agent Engine deployment, put its ARN or resource name in **Provider reference** (see [When a connector later finds it](#when-a-connector-later-finds-it)).
  </Step>
  <Step title="Register">
    Select **Register**. The console opens the new agent's page.
  </Step>
  <Step title="Finish the setup">
    A new agent is unrated, unowned and entitled to nothing. Declare its autonomy and entitle it to tools ([Agent autonomy](/nhi-security/agent-autonomy)), assign an owner ([Ownership](/nhi-security/ownership); the assignment shows everywhere, but today it does not clear the agent's `unowned_agent` finding, see [How ownership feeds findings](/nhi-security/ownership#how-ownership-feeds-findings)), and issue a runtime credential if a runtime will ask the gate on its behalf ([Runtime gate](/nhi-security/runtime-gate#runtime-credentials)).
  </Step>
</Steps>

The same thing through the API:

```http
POST /api/v1/agents
Content-Type: application/json

{
  "displayName": "Release notes bot",
  "purpose": "Drafts release notes from merged pull requests in acme/payments",
  "riskTier": "medium",
  "hosting": "self_hosted",
  "framework": "LangGraph",
  "modelHint": "claude-sonnet"
}
```

| Field | Required | Values |
|---|---|---|
| `displayName` | Yes | Up to 200 characters. Not unique: two agents with the same name are two agents |
| `purpose` | Yes | Up to 2,000 characters. A blank one is refused |
| `riskTier` | Yes | `low`, `medium`, `high`, `critical` |
| `hosting` | Yes | `vendor_hosted`, `self_hosted`, `unknown` |
| `framework`, `modelHint` | No | Up to 200 characters each. Recorded verbatim; nothing reasons about them |
| `environmentId` | No | The id of an environment in your organization. API only; the console form does not offer it |
| `providerRef` | No | Up to 2,048 characters, no spaces. The provider's own identifier for the agent: a Bedrock agent ARN, or a Vertex AI Agent Engine resource name exactly as Google returns it. Becomes the agent's `externalId` |

The answer is `201` with the agent. Use its `identityId` for every later call. A missing field, an unknown tier or hosting, or a property not in this table is `400`. A name or purpose that is only whitespace is `422`. A `providerRef` that an agent already carries, declared or discovered, is `409`: revise that agent instead.

Autonomy is deliberately not a registration field. It has its own route, its own audit record and its own stated reason.

### What a registered agent is

Registration creates an identity and a profile, and marks both as a person's declaration rather than a provider's report.

| | Registered by a person | Reported by a connector |
|---|---|---|
| `registeredAt` | When it was registered | `null` |
| Console badge | **Declared here** | **Discovered** |
| `provider`, `connectorName` | `registry`, "Declared agents" | The connector that reported it |
| `presence` | `unknown`, shown as **Unconfirmed**, permanently | `present`, `absent` or `unknown`, updated by each synchronization |
| `rawProviderType`, `externalId` | `declared`, and your `providerRef` or else `declared:` followed by a random id | The provider's own values |
| `purpose`, `riskTier` | Set at registration | `null` until a person sets them |

- **The `registry` connector is made for you.** The first registration in an organization creates one connector named "Declared agents". It has no capabilities, cannot be synchronized or health-checked, and you cannot create one yourself.
- **Presence never becomes confirmed.** Presence is what a provider confirmed, and no provider will confirm a declared agent. Activity is only what you send through the ingestion endpoints.
- **The risk tier is a label.** It is shown as a badge on the agent's page. No policy and no gate rule reads it, so lowering it silences nothing.
- **The agent starts live.** Its lifecycle state is `active`, its autonomy is `unknown`, and it has no owner and no tool entitlements.
- **There is no delete.** Retiring is the end state, and it leaves the record.

Registration is written to the audit trail as `agent.registered` and appended to the agent's evidence.

### When a connector later finds it

If you registered an agent with a `providerRef`, and a connector later discovers an agent whose own identifier is exactly that string, the two become one agent. On that synchronization the registration moves onto the discovering connector:

- it keeps its identity id, owner, tool entitlements, runtime credentials, purpose, risk tier and `registeredAt`;
- its name, hosting, framework and model become the provider's, and from then on revising them is refused like any connector-reported agent's;
- its presence is confirmed by each synchronization, and it gets the connector's `ASSUMES` edge to the role or service account it runs as;
- the console badge reads **Declared, then discovered**, and the agent's evidence records the merge.

Nothing is matched by name. Without a `providerRef`, or if two registrations name the same reference, the discovered agent arrives as a second agent and both stay visible.

## Revise a registration

On the agent's page select **Edit registration**, or call:

```http
PATCH /api/v1/agents/{identityId}/registration
Content-Type: application/json

{ "riskTier": "high", "purpose": "Drafts and publishes release notes for acme/payments" }
```

Every field is optional and at least one must be present. Sending an empty string for `framework` or `modelHint` clears it.

- On a **registered** agent you can change `displayName`, `purpose`, `riskTier`, `hosting`, `framework` and `modelHint`.
- On a **connector-reported** agent you can change `purpose` and `riskTier` only. Its name, hosting, framework and model are the provider's answers and the next synchronization would overwrite them, so a request that names any of them is refused with `422` rather than written and lost.
- A body with nothing to change is `422`. A name or a purpose cannot be cleared.

Each revision is audited as `agent.registration_updated` with the values before and after.

## Suspend, reactivate or retire

On the agent's page select **Suspend or retire** (or **Return to service** on a suspended agent), choose the action and say why. Through the API:

```http
POST /api/v1/agents/{identityId}/lifecycle
Content-Type: application/json

{ "action": "suspended", "reason": "Wrote to the wrong repository on 12 October; paused pending review" }
```

An agent's lifecycle is its identity's lifecycle state, which the gate reads on every request. Nothing has to propagate.

| `action` | Identity state written | At the runtime gate, from the next request | Audit action |
|---|---|---|---|
| `suspended` | `quarantined` | `principal_quarantined` and `principal_not_live` deny every action | `agent.suspended` |
| `active` | `active` | Those two rules stop denying; every other rule still applies | `agent.reactivated` |
| `retired` | `decommissioned` | `principal_not_live` denies every action, permanently | `agent.retired` |

- `reason` is required, up to 500 characters. An `action` other than the three above is `400`.
- **Retiring is terminal.** Any lifecycle call on a retired agent is `409`. Register a new agent instead.
- Both denying rules are among the five that cannot be switched off, and no access grant lifts them.
- Suspending writes the same state as quarantining the identity, so an agent quarantined from the identity inventory is returned to service here too.
- None of these revokes the agent's runtime credentials or changes anything at a provider. Revoke credentials yourself if the agent should not come back with the same token.

To stop every agent at once, use the organization-wide suspension described in [Runtime gate](/nhi-security/runtime-gate#the-five-rules-you-cannot-switch-off).

## The AI agents screen

**Agents** lists every agent, most autonomous first.

**The four tiles** (`GET /api/v1/agents/summary`): **Agents**, **Autonomy unrated**, **Autonomous** and **Unowned**. Agents a connector has reported as gone are not counted.

The summary also returns `hasDiscovered`, which is true once a connector with identity discovery enabled has completed a synchronization. It is not the same as "there is at least one agent". Until it is true the tiles show no figure, with the reason "No synchronization has discovered anything yet", because a zero there would claim somebody looked. The `registry` connector never synchronizes, so registering agents does not change it: with registered agents and no completed synchronization, the table lists your agents and the tiles stay blank.

**The table** (`GET /api/v1/agents`):

| Column | Shows |
|---|---|
| Agent | Name and provider identifier |
| Autonomy | Unrated, Approves each action, Supervised or Autonomous, with "declared here" when a person set it |
| Accountability | The owner, or that there is none |
| Source | Provider, hosting, and the connector's name |
| Tools | How many tools it is entitled to. Shown only once a tool has been discovered in the organization |
| Status | Lifecycle state, plus **Unconfirmed** or **Gone** when presence is not confirmed |
| Last seen | When a connector last reported it, or when it was registered |

Filter by name or identifier, autonomy, hosting and provider. **Needs attention** offers **Autonomy unrated** and **Nobody accountable**, which is `?attention=unrated` or `?attention=unowned` in the console URL and `unratedOnly=true` or `unownedOnly=true` on the API. Filters live in the URL, so a filtered view is a link you can share.

The API also accepts `connectorId`, `presence`, `sort` (`displayName`, `autonomy`, `lastSeenAt`, `firstDiscoveredAt`), `direction`, `limit` (25 by default, 100 at most) and `offset`. `provider=registry` returns only the agents your organization declared.

### One agent

Selecting a row opens the agent (`GET /api/v1/agents/{identityId}`). The header carries its autonomy, lifecycle state, presence, risk tier and a badge saying where it came from (**Declared here**, **Discovered** or **Declared, then discovered**), then its purpose, owner, who it acts for, hosting, tool count and runtime decision count. Below that:

| Panel | Answers |
|---|---|
| What this agent can reach | The chain from agent to credential, permission, tool, resource and action. A dashed stage is one nothing has collected |
| What it can invoke, and what that reaches | Agent to tool to resource paths that are evidenced |
| What it is permitted to invoke | Declared and observed tool entitlements, and whether anything has said what it may invoke |
| At the runtime boundary | Its allow, challenge and deny counts, recent decisions and runtime credentials |
| Findings, Activity, Credentials | The same records the other screens show, for this identity |
| Why the platform believes this | The evidence trail |
| Governance activity | Audit records about this agent. Needs `audit:read` |

A panel you lack the permission for says "Not visible to your role" rather than appearing empty.

### Agent evidence

`GET /api/v1/agents/{identityId}/evidence` returns the append-only trail behind the profile, newest first: `kind`, `connectorId`, `sourceRef`, `observedAt` and a `description` sentence. Registering, each revision and each lifecycle change append an `operator_action` entry that quotes the purpose, the fields changed or the reason you gave. Entries are never rewritten.

## The Agent tools screen

**Agents → Tools** lists the tools connectors have collected. Of the shipped connectors only MCP collects tools, and there is no route to add one by hand: see [MCP server guardrails](/nhi-security/mcp-server-guardrails#connecting-an-mcp-server).

**The tiles** (`GET /api/v1/tools/summary` and `GET /api/v1/tools/reachability/summary`): **Tools**, **Effect unclassified**, **Change state**, **Reach undiscovered** (tools naming a resource nothing has discovered) and **Complete paths** (identity to tool to resource, every step observed). **Complete paths** shows no figure until something has reported both who may invoke a tool and what a tool acts upon.

**The table** (`GET /api/v1/tools`) shows each tool's name, its effect, the resource it acts upon, how it is reached (`mcp`, `api_operation`, `cloud_action`, `internal_function`, `external_service` or `unknown`), its source and when it was last seen. A **Callers** column appears once something has reported an entitlement. **Needs attention** offers unclassified effects (`unclassifiedOnly=true`) and undiscovered targets (`unresolvedTargetOnly=true`).

Opening a tool (`GET /api/v1/tools/{toolId}`) shows:

- **What invoking this does**: the effect, its basis (`publisher_declared` or `operator_declared`), the stated reason and who classified it. Change it here with `agent:manage`; the rules are in [Agent autonomy](/nhi-security/agent-autonomy#2-declare-what-each-tool-does).
- **What it acts upon**: the target resource, its kind and its impact rating, or that the target has not been discovered.
- **What the publisher says it does**: the description the server published. It is a claim, not a classification.
- **Who is permitted to invoke this** and **Who reaches what through this**: entitlements and evidenced paths (`GET /api/v1/tools/reachability?toolId=...`).
- **Why the platform believes this**: the tool's evidence trail, also at `GET /api/v1/tools/{toolId}/evidence`.

## What this does not do

- It does not find agents. Nothing scans endpoints, network egress or process names, and nothing infers an agent from a name.
- A registration is not coverage. It tells NHI Security the agent exists; it does not make a provider watch it.
- It does not compare what you declared with what was observed on these screens. That comparison is the drift report, which is API only: see [Delegation, certification and drift](/nhi-security/delegation-and-certification#the-drift-report).

## Next steps

- [Agent autonomy](/nhi-security/agent-autonomy): rate the agent, classify its tools and entitle it.
- [Runtime gate](/nhi-security/runtime-gate): issue a runtime credential and get to a first allow.
- [Delegation, certification and drift](/nhi-security/delegation-and-certification): whose authority an agent exercises, and the API-only governance records.
- [Governance and audit](/nhi-security/governance-and-audit): where every action on this page is recorded.
