# Identity for AI

> Give every AI agent an identity of its own, keep it to what its owner and its users allow, check every call it makes, and keep the record of what it did.

Identity for AI extends what your realm already does for users to the AI agents that act in your organization. An
agent gets an identity of its own, with an owner and a risk class, and no secret to leak. It acts for a user only
within limits the user and you set, asks its owner before anything sensitive, and every call it makes to your APIs
and MCP servers is decided in the call's path. When it misbehaves you stop it with one change, and the realm keeps
the record of everything it was given and refused.

This page walks through the products that do it, in the order you'd set them up: agent identity, agent security,
the gateway, detection, and audit.

## Agent identity

Treat each agent as a managed identity, not a shared secret in a config file. Register it with an owner, a risk
class and a status; let it prove who it is with its platform's own workload identity rather than a key you hand it;
and accept the AI tools and MCP clients you never registered by the document they publish about themselves.

<CardGrid>
  <LinkCard title="AI agents" description="Workforce Identity: an agent's own identity, with an owner, a risk class and a status, and one change that stops it." href="../../workforce-identity/agents/ai-agents/" />
  <LinkCard title="Register an agent" description="Workforce Identity guide: register an agent and its client, with no secret to leak." href="../../workforce-identity/guides/agents/register-an-agent/" />
  <LinkCard title="Workload identity" description="Workforce Identity: agents prove who they are with their platform's SPIFFE identity." href="../../workforce-identity/agents/workload-identity/" />
  <LinkCard title="Accept apps identified by a URL" description="Workforce Identity guide: MCP clients and AI tools you never registered sign your users in." href="../../workforce-identity/guides/partners/apps-identified-by-url/" />
</CardGrid>

## Agent security

Decide what an agent may do once it has signed in. An agent acts for a user by delegation, not impersonation: its
tokens name both the user and the agent, and carry no more than both of you allow. A sensitive action waits for its
owner's approval, and the approval can be one exact action, such as one payment of a fixed amount. Riskier agents
get shorter-lived tokens and fewer scopes.

<CardGrid>
  <LinkCard title="Agents acting for users" description="Workforce Identity: which agents may act for which users, until when, and with which scopes at most." href="../../workforce-identity/agents/acting-for-users/" />
  <LinkCard title="Let an agent act for a user" description="Workforce Identity guide: tokens that name both the user and the agent, within limits." href="../../workforce-identity/guides/agents/agent-acts-for-a-person/" />
  <LinkCard title="Bounded approvals" description="Workforce Identity: the owner approves one exact action, and the agent's token allows nothing wider." href="../../workforce-identity/agents/bounded-approvals/" />
  <LinkCard title="Have an agent ask its owner" description="Workforce Identity guide: sensitive actions wait for the owner's approval on their Approvals page." href="../../workforce-identity/guides/agents/agent-asks-its-owner/" />
  <LinkCard title="Agent guardrails" description="Gateway: shorter-lived tokens for riskier agents, and scopes held until the owner approves." href="../../gateway/guardrails/agent-guardrails/" />
  <LinkCard title="Let users remove agents" description="Workforce Identity guide: each user's AI agents page, and removing one ends its access at once." href="../../workforce-identity/guides/agents/people-remove-agents/" />
</CardGrid>

## Agent gateway

Protect the APIs and MCP servers agents call, at the moment they call them. The gateway stands in front of them,
checks each call against the realm's policies, allows or refuses each MCP tool, resource and prompt by name, and
calls your server with a fresh token meant for it alone, never the agent's. Your server needs no change.

<CardGrid>
  <LinkCard title="Protect an MCP server" description="Gateway guide: allow or refuse each tool, resource and prompt by name, for each agent or user." href="../../gateway/guides/protect-an-mcp-server/" />
  <LinkCard title="MCP tool calls" description="Gateway: per-tool decisions on a server that knows nothing about your policies." href="../../gateway/mcp-servers/mcp-tool-calls/" />
  <LinkCard title="Token swap" description="Gateway: each API or MCP server gets a fresh token for it alone, exchanged at the realm." href="../../gateway/protect-apis/token-swap/" />
  <LinkCard title="Bound tokens at the gateway" description="Gateway: a token bound to a key is taken only with a fresh proof from that key." href="../../gateway/protect-apis/bound-tokens/" />
  <LinkCard title="Ask the realm" description="Gateway: your own API or gateway asks the realm's policies for a decision." href="../../gateway/decisions/ask-the-realm/" />
</CardGrid>

## Agent detection

Find the AI you didn't know about, and act the moment something goes wrong. The device client finds the AI tools,
local models, MCP servers and skills on every enrolled device. When your workforce identity provider disables a
user, their agents can be quarantined with them; when an agent is stopped or a session ends, the systems that rely on your realm
are told at once.

<CardGrid>
  <LinkCard title="Get started with AI Governance" description="Which AI tools, MCP servers, skills and local models each device has." href="../../ai-governance/get-started/" />
  <LinkCard title="MCP servers and skills" description="AI Governance: each AI tool's MCP servers and skills, listed by name, without their arguments, environment or headers." href="../../ai-governance/discovery/mcp-and-skills/" />
  <LinkCard title="Receive signals" description="Workforce Identity: end access here the moment your workforce provider disables a user." href="../../workforce-identity/signals/receive-signals/" />
  <LinkCard title="Send signals" description="Workforce Identity: tell relying systems the moment an agent is stopped or a session ends." href="../../workforce-identity/signals/shared-signals/" />
</CardGrid>

## Stop an agent

One change stops an agent at its next token request: pause it, or stop it and every agent under it for good. Each
user can also remove an agent from acting for them. Revoking reaches the gateway, and how fast depends on how your
API checks tokens.

<CardGrid>
  <LinkCard title="Stop an agent" description="Workforce Identity guide: pause it, or stop it and every agent under it." href="../../workforce-identity/guides/agents/stop-an-agent/" />
  <LinkCard title="How fast revocation takes effect" description="Gateway: how soon each kind of API stops accepting what you revoked." href="../../gateway/revocation/how-fast/" />
</CardGrid>

## Audit

Keep the record. Every token an agent was issued or refused, every exchange it made for a user, every policy
decision and every change to its status is on the realm's audit trail, read per agent or per user.

<CardGrid>
  <LinkCard title="Follow what an agent did" description="Workforce Identity guide: every token, exchange and decision, per agent or per user." href="../../workforce-identity/guides/agents/follow-what-an-agent-did/" />
  <LinkCard title="Read a user's or agent's trail" description="Audit & Reports: one principal's record, newest first, in one call." href="/audit-reports/audit-trail/read-a-trail/" />
</CardGrid>

## Planned

These are not available yet. Each page says what to use until it arrives.

| Planned | Where it's described |
|---|---|
| AI tools reach their models through the realm, with usage counted by user, device and tool | [What's next for models](../../ai-governance/models/whats-next/) |
| One policy for every AI tool's settings, written on every device | [What's next for configuration](../../ai-governance/configuration/whats-next/) |
| AI tools found in your clusters as well as on your devices | [What's next for discovery](../../ai-governance/discovery/whats-next/) |
| Rate limits, and checks on prompts and responses | [What's next for guardrails](../../gateway/guardrails/whats-next/) |
| Agent-to-agent calls, decided like any other | [What's next for protecting APIs](../../gateway/protect-apis/whats-next/) |
| The gateway's own decisions on the audit trail | [What's next for audit and reports](../../audit-reports/audit-trail/whats-next/) |

## Related

- [Apps and agents](../../develop/apps-and-agents/): the endpoints an agent calls for its tokens.
- [Workforce](../workforce/): the same realm, for your employees.
