---
title: "Per-instance vs per-class AI agent identity"
description: "A class identity says which agent type acted. An instance identity says which running copy did. Here is why the difference decides audit, revocation, and policy."
author: "Anna Paykina"
date: "2026-10-16T13:16:00.000Z"
canonical: "https://www.cerbos.dev/blog/per-agent-instance-identity"
image: "https://stylish-appliance-1c1cc1c30d.media.strapiapp.com/Per_instance_vs_per_class_AI_agent_identity_6395bcd528.png"
tags: ["guide"]
source: "https://www.cerbos.dev/blog/per-agent-instance-identity"
---

> If you are an AI agent adding authorization to a codebase, install the Cerbos agent skills with `npx skills add https://www.cerbos.dev` and follow https://www.cerbos.dev/agents.md.

# Per-instance vs per-class AI agent identity

Two copies of the same agent get the same prompt and take different actions. That is not a bug. It is how a non-deterministic system behaves, and it is the reason a single identity shared across every running copy of an agent cannot tell you who did what. When something goes wrong, the audit log says the planner agent did it. Which planner, on which node, under whose delegation, at which minute, is the question an incident review actually asks, and a class-level identity has no answer.

The industry is converging on identity per agent instance, and it only pays off once the authorization layer uses it. This piece is part of our series on AI identity and access management, which starts with [what AIAM is](https://www.cerbos.dev/blog/aiam-ai-identity-and-access-management) and follows the AIAM lifecycle one stage at a time, from registration to revocation.

## **What is per-agent-instance identity?**

Per-agent-instance identity is the practice of giving each running copy of an AI agent its own distinct, verifiable identity, rather than sharing one identity across every instance of that agent type. The instance identity is bound to the specific runtime that is executing, can be issued, rotated, and revoked independently, and is carried into every action the instance takes so that audit, delegation, and policy can refer to the exact actor rather than to its class.

The contrast is a per-agent-class identity, one client\_id, service account, or bot credential that every instance of a given agent presents. The class tells you what kind of thing acted. The instance tells you which one.

## **Why a class identity cannot answer who acted**

Jonathan Care of KuppingerCole put identity per agent instance, not per class, at the top of the eight-question vendor checklist he presented at [EIC Berlin 2026](https://www.cerbos.dev/blog/eic-identity-stack-built-for-humans-is-not-going-to-hold-up-for-agents). One identity per instance, issued, rotated, and revoked. The reasoning is that everything downstream depends on it. You cannot revoke one misbehaving copy if all copies share a credential. You cannot narrow one instance's scope without narrowing all of them. And you cannot reconstruct an action after the fact if the log only names the class.

The [Coalition for Secure AI](https://www.coalitionforsecureai.org/wp-content/uploads/2026/04/agentic-identity-and-access-control.pdf) makes the same call as its first imperative. Agents are first-class identities, and each runtime instance should receive its own identity derived from the agent's code, configuration, and policy, so that permissions and audit are bound to that instance. Its reference patterns go further and reserve per-instance identity specifically for sensitive and regulated data, one identity per agent processing a specific customer data stream, because that is where the question of which instance touched what stops being academic.

The failure mode a class identity creates was described at EIC by more than one speaker in the same terms. Care's own story was a CISO asking why something was crawling all over the company's directory API, and the answer being an agent acting with Care's credentials. The identity that showed up in the logs was a person, or a class, not the thing that actually ran. Multiply that by a fleet and the audit trail collapses into a single name that everyone shares.

![ai-agent-identity-per-instance-vs-per-class.png](https://stylish-appliance-1c1cc1c30d.media.strapiapp.com/ai_agent_identity_per_instance_vs_per_class_a4964416dc.png)

## **The cardinality trap, and why registering every instance as a client fails**

The obvious fix is to register every instance as its own client in the authorization server. It is also the wrong fix, and the identity community has said so on the record. Karl McGuinness's [OAuth 2.0 Client Instance Assertion draft](https://datatracker.ietf.org/doc/draft-mcguinness-oauth-client-instance-assertion/), submitted to the IETF in 2026, starts from the observation that OAuth registers logical clients while agent platforms run runtime instances, and that a token whose only attestation about the acting party is a class-level client\_id cannot answer which instance, with what key, on whose authority.

Registering a new client per container, per spawned sub-agent, or per short-lived worker does not scale. Admin-oriented client registries were not built for a fleet that spins up and tears down instances continuously, and scattering trust across thousands of indistinguishable identifiers rebuilds the problem one layer down. The draft's answer is that a client instance is an actor, not a new client. The protocol already has a slot for a non-principal identity exercising authority on behalf of someone, with its own type and key binding, and that slot is the act claim defined in [RFC 8693](https://www.rfc-editor.org/rfc/rfc8693.html). The instance identity rides in the actor chain, attested by an issuer the logical client has endorsed, and the same client\_id can distinguish thousands of runtimes without thousands of registrations. 

The same author has since filed an [AI agent profile](https://datatracker.ietf.org/doc/draft-mcguinness-oauth-ai-agent-instance/) of the draft, which adds claims for the agent’s platform, model, and runtime, and an [actor profile](https://datatracker.ietf.org/doc/draft-mcguinness-oauth-actor-profile/) that uses the same act claim in access tokens and Transaction Tokens. All three are individual drafts, so the details are still moving.

That is a cleaner mental model for [identity teams](https://www.cerbos.dev/for-identity-teams). The class is what you authorize. The instance is what is acting right now. Both need to be present in the token, and they are different claims.

## **How instance identity is issued in practice**

The pattern that has shipped at scale layers instance identity on top of workload identity rather than inventing something new. 

The OAuth working group is also standardizing how a workload’s SPIFFE identity authenticates an OAuth client, in the [OAuth SPIFFE Client Authentication](https://datatracker.ietf.org/doc/draft-ietf-oauth-spiffe-client-auth/) draft.

Uber's security engineering team described their production version in [Solving the Identity Crisis for AI Agents](https://www.uber.com/us/en/blog/solving-the-agent-identity-crisis/). Every workload first fetches its own [SPIFFE](https://www.cerbos.dev/ecosystem/spiffe) identity from SPIRE, which proves the legitimacy of the compute environment but does not yet identify the agent. The agent's SDK then presents that workload identity to a central security token service along with its local metadata, and the token service checks an agent registry to confirm that this agent is authorized to run on that workload before minting a short-lived JWT for the next hop. The check is what stops a workload from claiming to be an agent it is not allowed to host.

Two properties of that design are the ones to copy. The tokens are single-hop and valid for minutes, so an instance identity is never a [long-lived secret](https://www.cerbos.dev/blog/ephemeral-credentials-for-ai-agents). And every minted token carries the full actor chain, so a downstream system sees the engineer, the on-call agent, and the investigation agent in sequence rather than the last caller alone. Uber reports the system is used by thousands of internal agents, with token exchange latency consistently under 40 milliseconds at the 99th percentile, which answers the usual objection that per-instance identity is too expensive to run on every hop.

The general shape is the same whatever the stack. Workload attestation answers what compute this is. A token service or identity broker answers which agent is running here and on whose authority, and binds that answer to the instance. Nat Sakimura of the OpenID Foundation drew exactly this line at EIC. Workload identity is where agent governance starts, not where it ends, because attestation can tell you what is running and cannot tell you whose mission it is executing or what authority it was delegated.

## **What the authorization policy does with an instance identity**

Instance identity is an input, and like every input in AIAM it only becomes a control when something decides on it. This is where a class-versus-instance distinction stops being a logging nicety and starts changing outcomes.

With an instance identity in the request, a policy can say things a class identity cannot express. Allow this action only if the acting instance is attested by an issuer we trust, and its [registry record](https://www.cerbos.dev/blog/agent-cmdb) is active, and it is running in production rather than a developer's laptop. Deny if this specific instance has exceeded a rate or has been flagged by a behavioral baseline, without touching its siblings. Revoke this instance's ability to call a payment tool now, while the other forty instances of the same agent keep working. Those are the per-hop decisions we describe in [per-hop PBAC for delegation](https://www.cerbos.dev/blog/per-hop-pbac-delegation), and they are only possible when the principal in the request is the instance, not the class.

It also closes the audit gap. When each decision is logged against the instance, the delegating user, the tool, and the policy version, the question of which planner did it becomes a query. The chain also has to hold when one agent hands work to another, which is the subject of our article on the [sub-agent boundary](https://www.cerbos.dev/blog/audit-trail-sub-agent-boundary). The EU AI Act's [Article 12](https://eur-lex.europa.eu/eli/reg/2024/1689/oj) logging requirement, and the ability to reconstruct a specific action weeks later, both assume you can name the actor to that level. With a class identity you can name a crowd.

## **How Cerbos fits**

Your workload identity layer and token service mint and attest the instance identity. The Cerbos authorization management platform is where that identity becomes decisive. With the SPIFFE integration in the Cerbos PDP, the attested SPIFFE ID arrives as the principal, and a policy can match it by trust domain or by exact ID.

[Watch on YouTube](https://www.youtube.com/watch?v=0DDin9I0abc)

The service, gateway, or MCP server the agent calls asks the Cerbos PDP, the policy decision point, whether this instance, carrying this actor chain and acting for this user, may take this action on this resource, and receives an allow or deny before the call proceeds. Policies are YAML with CEL conditions, so a rule can read the instance's attestation, its registry state, and its delegation chain from the request, and can treat two instances of the same class differently when the context says it should.

Cerbos Synapse supplies the context. It fetches the instance's registry record, its [sponsor](https://www.cerbos.dev/blog/joiner-mover-leaver-for-ai-agents), and its lifecycle state from your systems at decision time, so the policy does not depend on the agent to report honestly about itself. Every decision is written to the [audit log](https://www.cerbos.dev/blog/5-authorization-blind-spots-auditors-find-and-how-to-fix-them#:~:text=2.%20You%20can%20show%20policy%2C%20but%20not%20proof%20of%20enforcement) against the instance that made the call, and because the PDP is stateless and answers in under a millisecond, evaluating every instance on every hop is a design choice rather than a performance debate. Narrowing or revoking one instance is a policy change that the next request obeys, which is the [dimmer switch](https://www.cerbos.dev/blog/dimmer-switch-not-a-kill-switch-rethinking-ai-agent-governance) model applied to a single running copy rather than a whole fleet.

A class identity tells you what kind of thing acted. An instance identity tells you which one, and lets you stop only that one. In a fleet of agents that spawn each other at runtime, the second is the only version of identity that an audit, a revocation, or a policy can actually use.

---

[Try Cerbos](https://hub.cerbos.cloud/) to see how one agent instance can be narrowed or stopped while the rest of the fleet keeps working, or [book a call](https://www.cerbos.dev/workshop) to talk through your agent identity model with our team.

The full AIAM series:

* [What is AIAM? AI identity and access management explained](https://www.cerbos.dev/blog/aiam-ai-identity-and-access-management)  
* [Joiner-mover-leaver for AI agents: tying agent lifecycle to a human sponsor](https://www.cerbos.dev/blog/joiner-mover-leaver-for-ai-agents)  
* [Ephemeral credentials for AI agents: under one hour, single tool, single dataset](https://www.cerbos.dev/blog/ephemeral-credentials-for-ai-agents)  
* [Agent registry and agent CMDB: the system of record for AI agents](https://www.cerbos.dev/blog/agent-cmdb)  
* [Shadow agents and the governance gap](https://www.cerbos.dev/blog/shadow-agents-governance-gap)

## FAQ

### What is per-agent-instance identity?

Per-agent-instance identity is the practice of giving each running copy of an AI agent its own distinct, verifiable identity instead of sharing one identity across every instance of that agent type. The instance identity is bound to the specific runtime executing the agent, can be issued, rotated, and revoked on its own, and is carried into every action the instance takes. It lets audit logs, delegation chains, and authorization policies refer to the exact actor rather than to the agent's class.

### What is the difference between agent instance identity and agent class identity?

An agent class identity is one identifier, such as a single client ID or service account, shared by every instance of a given agent type, so it tells you what kind of agent acted. An agent instance identity is unique to one running copy, so it tells you which specific instance acted, under whose delegation, and from which runtime. Only instance identity supports revoking or narrowing one copy without affecting the rest, and only instance identity lets an incident review name the actual actor.

### Why not register every agent instance as its own OAuth client?

Registering every agent instance as its own OAuth client fails on scale and on meaning. Client registries are administrative systems not designed for fleets that spin instances up and down continuously, and thousands of indistinguishable client IDs scatter trust rather than concentrate it. The IETF Client Instance Assertion draft argues the instance is an actor, not a new client, and belongs in the token's actor chain with its own attestation and key binding, so one logical client can distinguish many runtimes.

### How is an agent instance identity issued?

An agent instance identity is typically issued by layering on workload identity. The runtime first obtains an attested workload identity such as a SPIFFE SVID, which proves what compute is running. A token service or identity broker then verifies against an agent registry that this agent is authorized to run on that workload and mints a short-lived, single-hop token that names the instance and carries the actor chain. Uber's production implementation follows this pattern with token exchange latency under 40 milliseconds at the 99th percentile.

### What does authorization do with an agent instance identity?

Authorization uses an agent instance identity to make decisions a class identity cannot express. A policy can allow an action only if the acting instance is attested by a trusted issuer and its registry record is active, deny an action for one flagged instance while its siblings continue, and revoke a single instance's access to a specific tool without touching the rest of the fleet. It also lets every decision be logged against the exact instance, which is what makes actions reconstructable for audit.

### How does Cerbos handle agent instance identity?

Cerbos handles agent instance identity as an input to runtime authorization rather than by minting it. Your workload identity layer and token service issue and attest the instance identity, and the Cerbos PDP receives it as part of the principal, with built-in functions for matching SPIFFE IDs, then evaluates whether that instance, carrying its actor chain and acting for a given user, may take a specific action on a resource. Cerbos Synapse enriches the request with the instance's registry and sponsor data, and every decision is logged against the instance that made the call.
