The 2026 guide to giving AI agents scoped, revocable identities instead of shared, standing API keys.
In 2025, security researchers detected 28.65 million new secrets leaked into public GitHub, a 34% jump in a single year, and 1.28 million of them were AI-service credentials - GitGuardian. That is the single most important number in the agent economy right now, and almost nobody building agents is treating it as their problem.
Here is the uncomfortable truth underneath the hype. When you hand an AI agent an API key, you have not given it an identity. You have given it a password that belongs to everything, never expires, and cannot tell one agent from another. It is bearer credential: whoever holds the string is you, with all your permissions, forever, until someone notices and rotates it. That was already a bad idea for a cron job. For an autonomous agent that reads untrusted web pages, follows instructions it finds in a GitHub issue, and can be talked into things, it is a structural failure waiting for a trigger.
The last six months reset this. Between June and September 2026, Okta shipped Agent SSO to general availability, Anthropic and the Model Context Protocol adopted enterprise-managed authorization, Vercel acquired Better Auth to build per-agent Agent Auth, Microsoft Entra Agent ID reached GA, and Mercury launched spend cards an agent can use but cannot escalate. Different companies, one idea: an agent should be a first-class identity, not a shared key.
This guide breaks down what agent identity actually means, why the API-key model was never really an identity in the first place, the platforms and standards you can adopt today (ranked, with pricing), the real breaches that make this urgent, how agent payments inherit the same problem, what the law now requires, and a practical pattern for wiring it up. It assumes no security background. It is built from the primitives up, not from the press releases down.
Contents
- Why an API key was never an identity
- What "AI agent identity" actually means
- The catalysts: the weeks that made identity the agent story
- Identity platforms for AI agents, ranked
- Okta Agent SSO and Cross App Access
- Microsoft Entra Agent ID
- Vercel Agent Auth, Better Auth, and the developer stack
- Auth0, Descope, WorkOS, Stytch: the auth-platform layer
- The cloud providers and the open foundations
- Non-human identity security and the consolidation wave
- The API-key blast radius: what actually goes wrong
- Money needs identity too: agent cards and mandates
- Governance, audit, and the law
- How to implement agent identity
- Failure modes, limits, and where this breaks
- The future: from identity to accountability
- Conclusion: a decision framework
1. Why an API key was never an identity
Start from first principles, because the whole field turns on a distinction most builders skip. An identity answers the question "who is acting?" in a way that can be checked, scoped, logged, and withdrawn. An API key answers a different question, "does the caller possess the secret?", and then treats a yes as proof of everything. Those are not the same thing, and the gap between them is where agents get dangerous. A key is a bearer token in the most literal sense: bearer means holder, and the holder is authorized purely by holding it. There is no notion of which agent, on whose behalf, for how long, or to do what.
This was tolerable for a decade because the things holding keys were mostly deterministic. A payment webhook does what its code says and nothing else, so a leaked key was a containable accident. An autonomous agent is the opposite of deterministic. It reads inputs you do not control, reasons over them in natural language, and then takes actions with whatever authority it holds. The Cloud Security Alliance named the underlying flaw precisely: agents "process natural language instructions and natural language content through the same mechanism," which erases the boundary between data and commands, so a malicious instruction hidden in a document, an email, or a tool result is executed with the agent's own legitimate authority - Cloud Security Alliance. Security engineers call this the confused deputy problem, and a static over-scoped key is what turns a confused deputy into a catastrophe.
The API-key model fails an agent on four specific axes, and it is worth naming them because every platform in this guide is trying to fix one or more of them:
- No attribution - one key used by many agents cannot tell you which agent did what
- No expiry - a standing key works until a human revokes it, and humans rarely do
- No scope - most keys carry far more permission than any single task needs
- No delegation - a key cannot express "this agent, acting for this user, only here"
Each of these is a design property, not a bug you can patch. A key with no attribution will never gain attribution by being handled carefully, because attribution is not information the key carries. This is why "rotate your keys more often" and "store them in a vault" are mitigations, not solutions: they reduce the odds and the blast radius of a leak, but they do not change what the credential fundamentally is. The fix is to stop using a shared secret as a stand-in for identity, and to issue each agent something that actually encodes who it is, what it may do, and when that permission ends.
The clearest way to see the shift is side by side. In the old model, a human's single key flows to every agent and every tool, so the blast radius of any compromise is everything the key can touch. In the new model, an identity provider mints a short-lived, scoped token for one agent doing one task, and there is no standing secret to steal.
The practical takeaway for anyone building or buying agents is to stop asking "where do I store the key?" and start asking "what is the smallest, shortest-lived, most attributable credential this agent needs to do exactly this task?" That reframing is the entire content of agent identity, and everything below is the machinery that answers it. Founders building on autonomous systems meet this decision early, because a platform that runs your business, like the autonomous company builders we cover in our guide to hiring an AI workforce, is only ever as safe as the identities its agents carry.
2. What "AI agent identity" actually means
"Agent identity" is a crowded phrase, so it helps to separate the layers it collapses. At the bottom sits authentication: proving an agent is the specific agent it claims to be, ideally with cryptography rather than a shared string. Above that sits authorization: deciding what that proven identity is allowed to do, scoped to the narrowest set of actions the task requires. Above that sits accountability: a durable, auditable record that ties every action back to a responsible party, human or machine. A real agent-identity system does all three. A key does none of them.
The category security teams have used for this since long before agents is non-human identity, or NHI, which covers service accounts, machine credentials, workload identities, and now AI agents. The reason the phrase matters is that it drags agents into an existing, mature discipline instead of treating them as a novel special case. NIST, the US standards body, made this explicit in a February 2026 concept paper arguing that AI agents should be "treated as identifiable entities within enterprise identity systems rather than as anonymous automation running under shared credentials" - NIST NCCoE, via Biometric Update. That single sentence is the thesis of this entire field, stated by the organization least prone to hype.
What distinguishes an agent from a classic service account is a set of properties that break old assumptions, and each one has a direct identity consequence:
- Ephemerality - an agent may exist for one task and vanish, so its identity has to be cheap to create and clean to retire
- Delegation - an agent usually acts on behalf of a specific human, so its authority must carry that human's context
- Scale - Microsoft describes agents that "might be created and destroyed thousands of times per day," which no manual credential process survives
- Untrusted inputs - an agent reasons over content it did not write, so its permissions are the only hard boundary it has
Microsoft's own framing of Entra Agent ID captures why this is not a service account with a new label: an agent "might exist for minutes during a specific task, or might be created and destroyed thousands of times per day as part of an automated workflow," which means the organization needs to create and retire identities in bulk "without leaving orphaned credentials or permission assignments behind" - Microsoft Learn. Orphaned credentials are exactly the standing secrets that leak. The ephemerality that makes agents useful is also what makes long-lived keys indefensible for them.
There is one more property that separates the serious systems from the cosmetic ones: human accountability. When an autonomous agent takes an action, someone must remain answerable for it. Microsoft encodes this as a sponsor, the human recorded as accountable for each agent, with lifecycle rules that automatically reassign sponsorship to a manager if that person leaves so "there's always a human user accountable" - Microsoft Learn. Accountability is the property a shared key can never provide, because a shared key has no owner. This is the deepest reason the industry is moving, and it is why the rest of this guide is really a guide to accountability wearing the clothes of authentication.
3. The catalysts: the weeks that made identity the agent story
Technology shifts rarely have a clean start date, but this one came close. Across the summer of 2026, the companies that own the plumbing of software authentication all shipped agent identity within weeks of each other, and they did it because the same forcing function hit all of them at once: agents went from demos to production, and production means access to real systems with real consequences. When intelligence became cheap, agents multiplied, and multiplied agents holding shared keys became the largest unmanaged attack surface most companies had ever accumulated.
The economic backdrop is worth stating because it explains the urgency. Frontier-grade intelligence is now priced like a utility. Google's Gemini 3.8 Flash launched on September 2, 2026 at an introductory $0.75 per 1M input and $3.75 output - Google. Eight days later DeepSeek released an MIT-licensed V4.1 Flash at $0.15 per 1M input and $0.60 output off-peak - DeepSeek. When running an agent costs cents, teams run thousands of them, and the constraint stops being compute and starts being access control. Anthropic, whose models power a large share of production agents, raised $65 billion at a $965 billion valuation in May 2026 on run-rate revenue that had crossed $47 billion - Anthropic. The demand is real, the agents are real, and the credentials they hold are real liabilities.
The specific developments that turned identity into the agent story are worth listing precisely, because each one is a primary source you can check:
- Okta Agent SSO reached GA on August 24, 2026, registering agents as first-class identities
- MCP Enterprise-Managed Authorization shipped June 18, 2026, with Okta as first identity provider
- Vercel acquired Better Auth on July 7, 2026 to build per-agent Agent Auth
- Microsoft Entra Agent ID reached general availability in the spring of 2026
- Mercury Agent Cards launched August 11, 2026, giving agents spending identity they cannot escalate
That cluster is not a coincidence of marketing calendars. It is the identity industry, the model labs, the cloud providers, and the fintechs independently concluding that the API key is the wrong primitive for an agent, and racing to replace it before the leaks compound. Gartner's framing of the scale gives the reason a number: it predicts AI agents will handle $15 trillion in B2B purchases by 2028 - Digital Commerce 360. You do not let $15 trillion move through bearer tokens. The rest of this guide is the field's answer to that sentence.
4. Identity platforms for AI agents, ranked
Below is a weighted scoring of the platforms and standards you can actually adopt to give an agent an identity, judged on the things a builder genuinely cares about. This is not a popularity contest, and the scores are argued from evidence in the profiles that follow, not asserted. The point of the table is to let you see, in one place, the trade-off every option is making between the strength of the identity it issues, how open its standards are, how much governance it hands you, how hard it is to wire up, and what it costs. Read the cells: each score carries its justification.
The five criteria, and why they carry the weight they do, are these. Identity model (30%) is weighted highest because it is the entire thesis: does each agent get a distinct, scoped, short-lived, revocable identity, or a reused secret? Standards and interoperability (25%) matters next because agent identity is only useful if it is portable across the tools an agent touches, and proprietary lock-in defeats the point. Governance and audit (20%) captures whether you get an inventory, a lifecycle, policy, and an audit trail, which is what turns identity into accountability. Builder effort (15%) reflects how much work it takes to adopt, since a perfect system nobody ships protects nothing. Cost and access (10%) rounds it out, because pricing decides what a small team can actually reach.
| # | Platform | Category | Identity model (30%) | Standards and interop (25%) | Governance and audit (20%) | Builder effort (15%) | Cost and access (10%) | Final |
|---|---|---|---|---|---|---|---|---|
| 1 | Okta Agent SSO + Cross App Access | Enterprise IdP | 9 - first-class agent identity in Universal Directory; short-lived ID-JAG tokens replace static keys | 10 - co-authors the ID-JAG IETF draft; XAA became MCP's official auth extension | 9 - central directory, policy engine, "governance plane" | 6 - IdP-centric, enterprise rollout | 8 - included in core Okta SSO at no extra cost | 8.7 |
| 2 | Vercel Agent Auth (Better Auth + Connect) | Dev platform | 9 - per-agent scoped, revocable identity; getToken() mints short-lived tokens, no standing secret | 8 - Better Auth MIT, MCP + AI SDK + Auth.js adapters, token exchange | 7 - single point of control, one-command revoke; younger governance | 10 - best-in-class DX, framework-agnostic | 8 - Better Auth free/MIT, Connect via Vercel | 8.4 |
| 3 | Microsoft Entra Agent ID | Enterprise IdP | 9 - each agent gets an Entra identity with a human sponsor; ephemeral, OBO + autonomous | 8 - OAuth 2.0, MCP, A2A; strongest inside Microsoft | 10 - Conditional Access, blueprints, lifecycle, fleet inventory | 6 - Microsoft-centric; sidecar for others | 6 - free to all Entra tenants, full security needs Agent 365 | 8.2 |
| 4 | Auth0 for AI Agents (by Okta) | Dev IdP | 8 - Token Vault swaps a token for short-lived federated creds; agent never holds refresh tokens | 9 - RFC 8693 token exchange, CIBA/PAR async auth, FGA | 8 - fine-grained authz, audit, human-in-the-loop | 7 - strong SDKs, layered onto Auth0 | 7 - free tier is 2 connected apps, then paid | 8.0 |
| 5 | WorkOS AuthKit | Dev IdP | 7 - doubles as an MCP-compliant OAuth 2.1 server; user/org first, agent scopes on top | 9 - OAuth 2.1, MCP authorization server, broad SSO | 6 - solid logs, no dedicated agent inventory | 9 - excellent DX, fast to ship | 9 - free to 1M MAU, then $2,500/1M | 7.8 |
| 6 | Descope Agentic Identity Hub | Dev IdP | 8 - Inbound Apps (be your own IdP) plus Outbound Apps (scoped tokens to 50+ tools) | 7 - OAuth, MCP SDKs, consent + token model | 7 - consent/token metering, access controls | 9 - no-code flows, agent-first | 7 - free 7,500 MAU, Pro $249/mo | 7.6 |
| 7 | SPIFFE / SPIRE | Open standard | 9 - SVID gives every workload a cryptographic identity, short-lived, mTLS, no shared secret | 10 - CNCF-graduated standard AWS and Google build on | 4 - you build inventory and audit yourself | 3 - self-host SPIRE, heavy ops | 10 - free, open source | 7.5 |
| 8 | Google Cloud Agent Identity | Cloud | 9 - SPIFFE-based X.509 identity per agent, 24h certs, token bound to the cert | 9 - SPIFFE, OAuth 2.0, MCP, A2A | 6 - cryptographic traceability, newer governance UI | 5 - GCP-centric, infra-heavy | 5 - GCP pricing, no free identity tier | 7.4 |
| 9 | AWS Bedrock AgentCore Identity | Cloud | 8 - workload identities, inbound JWT plus outbound credential providers | 8 - OAuth, integrates Cognito, Entra, Okta | 7 - managed consent portal, token vault | 6 - AWS setup and IAM | 6 - AWS usage pricing | 7.3 |
| 10 | Stytch Connected Apps | Dev IdP | 7 - turns your app into an OAuth/OIDC IdP for agents; remote MCP auth | 8 - OAuth 2.1, Dynamic Client Registration, MCP | 6 - consent and token logs | 8 - developer-friendly | 7 - free first 10,000 MAUs and agents | 7.2 |
Two honest caveats about reading this table. First, the categories are not interchangeable: an open standard like SPIFFE scores high on identity strength and cost precisely because it hands you the raw primitive and nothing else, which is why its builder-effort score is brutal. Second, a low score is not a verdict of "bad," it is a verdict of "worse fit for the average builder on these five axes," and a team already deep in one cloud will rationally weight the axes differently. The ranking is a starting map, not a purchase order. What follows is the terrain.
5. Okta Agent SSO and Cross App Access
Okta tops the ranking for a reason that has nothing to do with brand and everything to do with standards ownership: it wrote the protocol the rest of the industry adopted. On August 24, 2026, Okta made Agent SSO generally available, registering AI agents that support its Cross App Access standard as first-class identities in Universal Directory and issuing "short-lived, identity-governed tokens instead of static credentials" - Okta. The framing from Okta's president of products, Ric Smith, was blunt: "Okta is an undisputed leader in SSO, and now we're bringing SSO for your AI agents." Crucially, Agent SSO ships inside existing core Okta SSO plans at no additional cost, which is why it scores well on access despite Okta's enterprise reputation.
The technical heart is Cross App Access, or XAA, which Okta first introduced in June 2025 and which is formally the Identity Assertion Authorization Grant. It is an OAuth extension that combines two established standards, RFC 8693 token exchange and RFC 7523's JWT profile, so that an identity provider both applications already trust can mediate access between them - oauth.net. The mechanism is a specific JWT the industry now calls an ID-JAG: the IdP issues a signed assertion that a given client is authorized to act for a given user against a given resource, and the resource's own authorization server validates that assertion before minting a short-lived, scoped access token. The draft behind it, authored by Okta's Aaron Parecki with co-authors from Ping Identity and an independent contributor, is at version 04 in the IETF OAuth working group - IETF.
Okta ships Agent SSO alongside a comparison of it against the separate "Okta for AI Agents" subscription, which has been GA since May 2026. The distinction matters when you are choosing what to buy.
Why this matters in practice is that XAA collapses the worst part of connecting an agent to a tool: the per-integration, per-user consent dance that leaves scattered OAuth grants and long-lived refresh tokens everywhere. Instead, a user logs in once, and the agent inherits governed access to the apps policy allows, with the IdP as the single control point. How you apply it: if your organization already runs Okta, Agent SSO is a configuration change rather than a build, and it turns your directory into the place you provision and revoke agent access org-wide. The step-by-step flow, documented in Okta's developer concept for XAA, runs across four roles and nine steps, but the mental model is simple: authenticate once at the IdP, exchange that proof for an ID-JAG, exchange the ID-JAG for a narrow token at the destination. That flow is the same shape whether the destination is a SaaS API or an MCP server, which is exactly why the Model Context Protocol adopted XAA as its official authorization extension.
The proof that Cross App Access is more than an Okta feature is that MCP adopted it wholesale. On June 18, 2026, MCP shipped Enterprise-Managed Authorization, an official extension built on Cross App Access with Okta as the first supported identity provider, under the slogan "Authorize once, inherit everywhere" - Model Context Protocol. Anthropic implemented it in Claude's shared MCP layer, so an administrator can provision MCP connectors for a whole organization through their identity provider rather than forcing each user through a per-app OAuth dance for every tool the agent touches. The difference is easiest to see as a picture: standard MCP auth makes each server its own island of consent, while the enterprise extension routes everything through one identity provider.
The payoff is concrete rather than theoretical. Ramp's engineering described what enterprise-managed authorization changed for its deployment: employees "log in to Claude on day one already connected, 2,000 employees, provisioned through Okta, zero extra steps." That is the identity model doing exactly what a shared key cannot, granting the right access to the right agent for the right person, centrally, and letting an administrator withdraw it just as centrally. Anthropic published a short walkthrough of the flow when the feature reached general availability, which is the clearest first-party demonstration of the pattern in action, and it is directly relevant if you are shipping your own connector, a task we cover in our guide to shipping an MCP server for your product.
6. Microsoft Entra Agent ID
Microsoft's bet is that agent identity belongs inside the same directory that already governs your employees, and for the hundreds of thousands of organizations on Entra that is a powerful default. Microsoft Entra Agent ID reached general availability in the spring of 2026, described by Microsoft as bringing "first-class identity and access management to AI agents" and extending Zero Trust "to AI workloads with purpose-built identity constructs, specialized OAuth flows, and comprehensive security controls" - Microsoft Learn. The identities are real accounts in Entra ID, built on standard protocols the platform names explicitly: OAuth 2.0, MCP, and A2A. This is the enterprise control-plane strategy, and it earns the highest governance score in the table.
The mechanic that best captures Microsoft's philosophy is automatic identity at creation time. When an agent is built in Copilot Studio, "the agent gets an agent identity in the Microsoft Entra tenant," and the user who created it "is recorded as its sponsor" - Microsoft Learn. Every authentication that agent performs is then logged in Entra as an AI agent, which is the attribution a shared key can never give you. On top of that, Microsoft layers the governance apparatus it already sells to human identity: Conditional Access policies targeted at agents, agent-specific policy templates for autonomous and on-behalf-of access, agent identity blueprints as reusable templates, and lifecycle workflows that keep a human sponsor accountable.
Microsoft frames the whole surface as identity management, access protection, governance, and compliance, applied to agents rather than people.
Microsoft's own numbers explain the intensity: it expects 1.3 billion AI agents in operation by 2028, and reported that in a single quarter customers created "over one million custom agents across SharePoint and Copilot Studio, up 130% quarter-over-quarter" - IT Pro. The Microsoft Security Community published a walkthrough of how Entra secures those agents, which is the clearest official explainer of the governance model in action.
The trade-off to weigh is scope of pricing versus scope of protection. Entra Agent ID is available to all Entra customers, but extending the full Entra security stack to agents requires a Microsoft Agent 365 license, included with Microsoft 365 E7 and available as an add-on to E5, A5, or Business Premium - Microsoft Learn. That licensing gate is why Entra scores a 6 on access despite its governance depth: the identity is free, the governance you actually want is not. For an organization already standardized on Microsoft, this is the path of least resistance and the deepest controls. For a small team that lives in a different stack, the friction and the license cost push the decision elsewhere, which is where the developer platforms come in.
7. Vercel Agent Auth, Better Auth, and the developer stack
Where Okta and Microsoft approach agent identity from the enterprise directory, Vercel approaches it from the code, and for the builder audience that difference is decisive. On July 7, 2026, Vercel acquired Better Auth, the open-source TypeScript authentication framework, explicitly to accelerate agent identity, stating that "agent identity is foundational to agentic infrastructure" and that Better Auth had been building Agent Auth so "each agent can carry its own identity and its own scoped, revocable authority, with you as the single point of control" - Vercel. Better Auth stays free and open source under the MIT license, which is why builders trust it: at acquisition it had 4.7 million weekly npm downloads, more than 850 contributors, and 30,000 GitHub stars.
The productized form is Vercel Connect, launched at Vercel Ship 2026, and it is the cleanest expression of the identity-not-key idea in the whole field. Instead of storing a provider credential, an app or agent calls getToken() and receives a credential that is "short-lived, refreshed automatically" and never stored, with one-command revocation per user or across all tokens - Vercel. Vercel's own summary of the design is the sentence this entire guide is arguing: "Your app or agent requests a temporary credential scoped to the one task in front of it, so there's no standing secret left to leak." Connect ships adapters for Better Auth, Auth.js, the AI SDK, and MCP, so it drops into an existing agent stack rather than demanding a rebuild.
The framing Vercel used at Ship 2026 put agent identity inside a broader "Agent Stack," and Guillermo Rauch introduced it in the London keynote.
Vercel also applies the principle to its own agent: Vercel Agent "runs as its own identity, is read-only by default, and asks for narrow, temporary permission before it touches production," planning the permissions a task needs and requesting approval in one coherent step - Vercel. That is the identity model dogfooded. Vercel groups these pieces into what it calls the Agent Stack, deliberately placing identity alongside the AI SDK, sandboxes, and gateways as a core layer of agentic infrastructure rather than a bolt-on.
The reason this stack scores second overall is its combination of a genuinely open, portable base (Better Auth), a runtime that mints scoped ephemeral tokens (Connect), and developer ergonomics that no enterprise IdP matches. One early adopter, BuildPass, summarized the operational win bluntly: "Minting short-lived tokens instead of keeping provider credentials in paused sandboxes has removed a whole class of security risk." If you are a founder or a small engineering team wiring agents into your own product, this is the most natural on-ramp, and it pairs directly with the auth-library decision we break down in our comparison of Clerk versus Better Auth. The trade-off is maturity: the governance surface is younger than Okta's or Microsoft's, so an enterprise with heavy compliance needs will still want a directory behind it.
8. Auth0, Descope, WorkOS, Stytch: the auth-platform layer
Between the enterprise directories and the raw open standards sits a layer of developer-first identity platforms that have each shipped explicit agent products, and for most product teams this is where the real choice happens. These platforms share a common insight: the app you already run can become an identity provider for the agents that act on it, minting scoped tokens instead of handing out keys. They differ in how far they lean into delegation, how they price, and how much of the agent lifecycle they own. The distinctions are subtle but they decide integration effort, so they are worth walking through rather than tabulating.
Auth0, now part of Okta, has the most complete agent product of the group. Auth0 for AI Agents reached GA on November 19, 2025 with four pillars: user authentication, a Token Vault, asynchronous authorization, and fine-grained authorization for retrieval - Auth0. The Token Vault is the standout: it implements RFC 8693 token exchange so an agent swaps an Auth0 token for a short-lived federated access token across more than 30 providers, and, in Auth0's words, "your application or agent never touches those provider refresh tokens directly" - Auth0. Its asynchronous authorization uses CIBA and Pushed Authorization Requests so an agent can run in parallel while it waits for a human to approve a sensitive step, which is the human-in-the-loop pattern most production agents actually need.
The other three each occupy a distinct niche, and the cleanest way to see them is their pricing and their agent-specific unit of billing:
- Descope - Agentic Identity Hub with Inbound and Outbound Apps; free to 7,500 MAU, Pro from $249/mo
- WorkOS - AuthKit doubles as an MCP-compliant OAuth 2.1 server; free to 1M MAU, then $2,500 per 1M
- Stytch - Connected Apps turns your app into an IdP for agents; free for the first 10,000 MAUs and agents
- Clerk - machine-to-machine tokens for agents at $0.001 per token creation, JWT verification free
- Kinde - M2M applications for agents; free tier includes 2,000 M2M tokens
Descope deserves a closer look because its billing model reveals the shape of the problem. It launched its Agentic Identity Hub in April 2025 with two building blocks: Inbound Apps let your app become its own OAuth identity provider so agents authenticate with scoped consent, and Outbound Apps connect agents to 50-plus third-party tools through prebuilt OAuth templates - Descope. It then bills agentic usage with two purpose-built units, Monthly Active Consent for inbound and Monthly Active Token for outbound, charging only for tokens that are actually fetched and used - Descope. That is a pricing model designed around the fact that agents create and use credentials constantly, which is precisely the behavior that breaks flat per-key thinking. Whichever of these you pick, the common move is the same: stop distributing secrets, start issuing scoped tokens from a system that can revoke them.
9. The cloud providers and the open foundations
If your agents run inside a single cloud, the cheapest identity to adopt is often the one the cloud already issues to its workloads, and all three hyperscalers now extend that machinery to agents. AWS Bedrock AgentCore Identity, generally available since October 2025, is "an identity and credential management service designed specifically for AI agents and automated workloads," implementing agent identities as workload identities with inbound JWT authorizers and outbound credential providers - AWS. In September 2026 AWS added a managed consent portal that "eliminates the need for custom OAuth callback infrastructure when connecting agents to third-party tools" - AWS. It integrates with Cognito, Entra, and Okta, so it is a bridge as much as a provider.
Google's approach is the most cryptographically rigorous of the cloud offerings, and it is the clearest signal of where the field is heading. Google Cloud Agent Identity gives each agent "a strongly attested, cryptographic identity based on the SPIFFE standard," using X.509 certificates that auto-provision and are valid for just 24 hours, with access tokens "cryptographically bound to the agent's unique X.509 certificates to prevent token theft" - Google Cloud. Launched as part of the Gemini Enterprise Agent Platform at Google Cloud Next in April 2026, it assigns "every agent a unique cryptographic ID for complete traceability and auditing" - Google Cloud. Twenty-four-hour, certificate-bound identity is the opposite of a standing key in every dimension that matters.
The reason two clouds converge on SPIFFE is that it is the open foundation underneath all of this, and understanding it clarifies the whole field. The relevant standards are worth naming with their exact provenance, because they are the primitives every platform above is packaging:
- SPIFFE / SPIRE - CNCF-graduated in September 2022; issues short-lived SVIDs so workloads authenticate "without shared secrets"
- RFC 8693 token exchange - the 2020 standard for swapping one security token for another, including delegation
- RFC 8705 mutual TLS - certificate-bound tokens so only the holder of the private key can use the token
- OAuth 2.1 - the draft consolidation the MCP authorization spec builds on
- Workload identity federation - AWS Roles Anywhere and Google's federation, eliminating long-lived cloud keys
SPIFFE deserves the emphasis because it is the purest statement of the thesis. A SPIFFE Verifiable Identity Document, or SVID, is how a workload proves who it is, and the spec requires an X.509 SVID to "contain exactly one URI SAN, and by extension, exactly one SPIFFE ID" - SPIFFE. One identity, cryptographically attested, short-lived, rotated automatically, usable for mutual TLS between workloads with no shared secret anywhere in the system. That is what "identity, not API key" looks like at the protocol level. The catch, and the reason SPIFFE scores a 3 on builder effort, is that you self-host SPIRE and build the governance yourself, which is why most teams consume SPIFFE indirectly through Google, a service mesh, or a managed platform rather than running it raw.
10. Non-human identity security and the consolidation wave
There is a second industry adjacent to issuing agent identity, and it exists because issuing identity is only half the job: the other half is discovering, securing, and governing the identities that already sprawl across your systems. This is the non-human identity security market, and it is where the money and the acquisitions are concentrated, which tells you the enterprise sees the risk as real and immediate. The distinction from the platforms above is important: these vendors mostly do not mint your agent's identity, they inventory every machine credential you already have, flag the over-permissioned and unrotated ones, and enforce lifecycle on them. They are the governance overlay, not the issuer, which is why they sit in this section rather than the ranking.
The scale of the underlying problem is what funds this market, and it is measured in the ratio of machine identities to human ones. The estimates vary by methodology, but they all point one direction: machines have quietly overrun the identity plane.
The most current figure comes from CyberArk's 2026 Identity Security Landscape, a survey of 2,930 security leaders, which puts machines ahead of humans by 109 to 1 - CyberArk / Palo Alto Networks. The Cloud Security Alliance's non-human identity working group, using a stricter median, reports 45 to 1, up from 17:1 in 2023 - AI Cybersecurity Forum. Whichever number you trust, the trajectory is a step-change driven by microservices, CI/CD, SaaS automation, and now agents. That growth is what the NHI-native startups sell against, and investors have funded them accordingly.
The funding tells a clear story. Oasis Security raised a $120 million Series B in March 2026, taking its total to $190 million, with CEO Danny Brickman framing the stakes for agents directly: "An agent with full-blown access right now is as powerful as it gets" - SiliconANGLE. Astrix Security raised a $45 million Series B led by Menlo Ventures through the fund it runs with Anthropic - PR Newswire. And the incumbents are buying in at scale: Palo Alto Networks agreed to acquire CyberArk for roughly $25 billion in July 2025 to own identity security across "every identity, human, machine and AI" - Palo Alto Networks. SailPoint closed its acquisition of NHI vendor Entro Security in June 2026, saying it was "closing the AI governance gap" - SailPoint.
The practical lesson from this market is that issuing good identities and governing them are two disciplines, and you will eventually need both. A startup can begin with a single issuing platform, but once its agent count grows, the questions the NHI vendors answer, which credentials exist, which are over-permissioned, which have never been rotated, become unavoidable. The whole NHI security market is now estimated at $6.82 billion in 2025, forecast to reach $22.94 billion by 2031 - Mordor Intelligence. That is a market being built on the cost of getting agent identity wrong, which is the subject of the next section.
11. The API-key blast radius: what actually goes wrong
Abstract arguments about identity models land differently once you look at what a leaked key actually does, so this section is deliberately concrete. The core finding of GitGuardian's 2026 report is that the problem is not shrinking, it is accelerating: 28.65 million new secrets hit public GitHub in 2025, a 34% year-over-year rise the company called "the largest single-year jump we've recorded" - GitGuardian. And the agent era is making it worse, not better, because agents need local credentials to function. GitGuardian's CEO put the causal chain plainly: "AI agents need local credentials to connect across systems, turning developer laptops into a massive attack surface."
The most damning detail for anyone building with AI coding tools is that the tools themselves leak at more than double the human rate. Commits assisted by AI coding agents showed a 3.2% secret-leak rate against a 1.5% baseline across all public commits, and MCP configuration files alone exposed 24,008 unique secrets, of which 2,117 were valid live credentials - GitGuardian. The tooling that makes agents productive is the same tooling scattering keys.
The AI-provider angle is the newest and fastest-growing slice of the problem. Leaks of AI-service credentials specifically surged 81% year over year to more than 1.27 million in 2025, and in one striking example researchers found 113,000 leaked DeepSeek API keys sitting in public repositories - GitGuardian. Each of those is a bearer credential to a model endpoint, so whoever finds it can run inference on someone else's bill, which is precisely the abuse the next paragraphs quantify. The pattern is identical to the classic database key, just pointed at a model, and it is the reason the identity conversation and the model-cost conversation are really the same conversation.
Leaked keys would matter less if they were quickly killed, but the second finding is that they almost never are. GitGuardian found that 64% of 2022 secrets were still active and exploitable in January 2026 - GitGuardian. A standing key, once leaked, tends to stay live for years, which is the exact opposite of the 24-hour, auto-rotated identity model. The financial consequence is measurable. Verizon's 2025 breach report attributes 22% of breaches to compromised credentials as the initial access vector - Verizon. IBM's 2025 breach study found the US average breach cost hit an all-time-high $10.22 million, that shadow-AI breaches added roughly $670,000, and, most tellingly, that 97% of AI-related breaches involved systems lacking proper AI access controls - IBM.
Two real incidents make the abstraction visceral. In the LLMjacking attack pattern Sysdig documented, a single stolen cloud credential abused against a hosted model could rack up more than $46,000 per day in inference charges billed to the victim, whose account was rented out to other criminals - Sysdig. And in August 2025, the threat actor tracked as UNC6395 used compromised OAuth tokens from a widely used integration to steal data from numerous corporate Salesforce instances, with investigators assessing that the "primary intent of the threat actor is to harvest credentials" so they could pivot further - Google Threat Intelligence. Both are the same story: a long-lived, over-scoped credential became the entire blast radius the moment it was stolen. Scoped, short-lived, attributable identity is the structural answer, and it is why understanding this failure mode belongs in every builder's pre-launch review, the kind we lay out in our security checklist for AI-built apps.
12. Money needs identity too: agent cards and mandates
The clearest proof that identity beats keys is what happened when agents started spending money, because money is where nobody accepts a bearer token as good enough. An agent with your corporate card number is the payment equivalent of an agent with your API key: unlimited, unattributable, and terrifying. So the fintechs rebuilt the primitive. On August 11, 2026, Mercury launched Agent Cards, virtual cards a human creates and an AI agent then uses autonomously, where the card has "its own spending limits, own audit trail," is restricted to eligible merchants, auto-declines out-of-policy transactions, and, critically, "the agent cannot modify its own restrictions" - Mercury via Yahoo Finance. Read that list of properties: scoped, attributable, revocable, and unable to self-escalate. It is the identity model applied to a payment credential.
The card networks and the model labs are building the same idea at protocol level, and the common pattern is cryptographic proof of authorization rather than a reusable number. The main efforts worth knowing are these:
- Agentic Commerce Protocol - Stripe, OpenAI, and Meta's standard, with delegated payment tokens and OAuth-based delegated authentication
- Google AP2 - the Agent Payments Protocol, using signed Intent, Cart, and Payment mandates as a non-repudiable trail
- Visa Intelligent Commerce - tokenized AI-ready cards replacing raw card details for agent purchases
- Mastercard Agent Pay - Agentic Tokens that let only verified, registered agents transact
- x402 - Coinbase's HTTP-native payment protocol, past 100 million payments processed by mid-2026
Google's AP2 is the most instructive because its design is pure identity thinking. Announced in September 2025 with more than 60 partners, it proves user authorization through three cryptographically signed mandates: an Intent Mandate capturing the request, a Cart Mandate creating "an unchangeable record of exact items and price," and a Payment Mandate linking the method to the verified cart, together forming a non-repudiable audit trail from intent to payment - Google Cloud. Visa framed the same requirement from the network's side: as its product chief put it, agents "will need to be trusted with payments, not only by users, but by banks and sellers as well" - Visa. Trust, here, is a synonym for verifiable identity.
The reason payments matter to a general agent-identity discussion is that they are the forcing function that makes the abstract concrete. No bank will let an agent move money on a shared key, so payments dragged the whole industry to verified, scoped, mandate-backed agent identity faster than security arguments alone ever could. For founders, the same logic applies the moment an agent touches revenue, whether that is buying ad inventory or transacting on your behalf, and it connects directly to how you let agents transact with your own business, which we cover in our guide to selling to AI agents and in our survey of payment platforms for your business. The payment rail and the identity rail are converging, and by 2027 they may be indistinguishable.
13. Governance, audit, and the law
Identity stops being optional the moment a regulator, an auditor, or a court asks "who did this?" and "were they allowed to?" This is where the shared key fails hardest, because it has no answer to either question, and 2026 is the year those questions acquired legal and standards-body weight. The governance case for agent identity rests on three pillars: security frameworks that now name agent identity explicitly, audit standards that require attribution, and law that requires disclosure. Each one independently rules out the anonymous shared credential.
On the security-framework side, OWASP moved fast. Its 2025 Top 10 for LLM applications expanded Excessive Agency specifically because of agentic architectures, and its mitigations read like a specification for agent identity: "track user authorization and security scope to ensure actions taken on behalf of a user are executed on downstream systems in the context of that specific user, and with the minimum privileges necessary" - OWASP. In December 2025 OWASP went further and published a dedicated Top 10 for Agentic Applications, ranking Identity and Privilege Abuse as ASI03 and warning that "leaked credentials let them operate far beyond their intended scope" - OWASP. When the industry's canonical risk list ranks credential abuse third among all agentic threats, the shared key is no longer a defensible default.
On the audit side, the requirement is attribution, and attribution is exactly what a shared key destroys. The SOC 2 control CC6.1 requires restricting logical access to authorized entities "including non-human identities such as machine or agentic identities," verifying "what the workload actually is, not just possession of credentials" - Teleport. A key reused across many agents cannot attribute an action to an owner, which is an audit-trail failure by construction. Per-agent identity, by contrast, produces the traceable record auditors demand and lets an administrator revoke one agent without disturbing the rest. This is the same accountability logic that makes least-privilege access the fix for a whole class of failures, including the data-corruption problems we dig into in why AI apps corrupt data and the fix.
The legal pillar arrived on a fixed date. The EU AI Act's Article 50 transparency obligations became applicable on 2 August 2026, requiring that AI systems interacting directly with people, "including chatbots, AI assistants, AI agents and similar systems," inform users they are dealing with an AI unless it is obvious - European Commission. Non-compliance carries fines up to 15 million euro or 3% of worldwide annual turnover - Cooley. Separately, the Act's general-purpose AI obligations applied from 2 August 2025, with the Commission's enforcement powers phasing in from 2 August 2026. Disclosure and enforcement both assume you can identify which system acted, and you cannot do that with an anonymous shared credential. NIST reinforced the direction by launching an AI Agent Standards Initiative in February 2026 that includes "fundamental research into agent authentication and identity infrastructure" - NIST. If you sell into Europe, mapping these obligations early is part of shipping, which is why we wrote a dedicated guide on how to make your AI app EU-compliant. Governance is no longer a nice-to-have layered on top of identity. It is the reason identity exists.
14. How to implement agent identity
Enough theory. This section is the practical pattern, built from the primitives, for a team that wants to give agents identity without buying an enterprise suite. The goal is a system where every agent action is attributable, every credential is short-lived and scoped, and revocation is one operation. You can assemble this from open standards, a developer auth platform, or a cloud provider, but the shape is the same regardless of vendor, and understanding the shape is what lets you evaluate any product against it.
The reference architecture has three layers, and it is worth seeing them stacked before walking through the flow. The bottom layer issues identity, the middle layer carries authorization across systems using open standards, and the top layer governs the whole thing with inventory, policy, and audit. Payments plug into the same identity layer rather than forming a separate one.
The runtime flow that this stack produces is a token exchange, and it is the single most important mechanic to internalize. Rather than embedding a provider secret, the agent authenticates as itself, then exchanges that proof for a narrow, short-lived token scoped to one downstream resource. The steps, in the order they happen, are:
- The user authenticates once at the identity provider, establishing a session
- The agent presents its own identity plus the user context to the provider
- The provider issues a scoped assertion, an ID-JAG or an exchanged token per RFC 8693
- The destination validates the assertion and mints a short-lived access token bound to that agent
- The agent calls the resource, and the action is logged against its identity
Each step removes a failure mode from Section 1. Step 2 gives attribution, step 3 gives delegation, step 4 gives scope and expiry, and step 5 gives the audit trail. The credential the agent finally holds is worthless to a thief within minutes and useless against any resource but the one it was minted for. That is the whole difference between an identity and a key, expressed as a request flow. If you run agents unattended, the case is even stronger, because there is no human watching to catch a misuse in real time, a scenario we explore in running agents unattended.
For a founder who is not going to build this by hand, the practical path is to pick the issuing layer that matches your stack, an enterprise directory if you have one, a developer auth platform if you are shipping a product, a cloud provider if your agents live in one cloud, and lean on it for the token exchange rather than distributing keys. The autonomous company builders that assemble a whole business for you, a category we map in the AI-native company tech stack, inherit this decision on your behalf: their agents operate against your cloud accounts, your billing, and your data, so the identities those agents carry are the real security boundary of the company. Founden, the AI platform that builds and runs a complete company from one conversation, is one example of that model, and it is worth choosing such a platform on how it scopes and governs its agents' access, not just on what it can build. The identity question is not a detail you can defer to later. It is the foundation the rest sits on.
15. Failure modes, limits, and where this breaks
An honest guide has to say where the new model still fails, because "give agents identity" is a direction, not a finished solution, and treating it as a silver bullet recreates the overconfidence that made shared keys dangerous. Agent identity fixes the credential. It does not fix the agent. Several failure modes survive the shift, and pretending otherwise would be its own kind of malpractice.
The first and hardest limit is that a scoped identity still executes injected instructions within its scope. Prompt injection does not need to steal a credential if it can persuade an agent that already holds a legitimate one to misuse it. The Cloud Security Alliance documented exactly this: a malicious GitHub issue title injected instructions into an authenticated coding session and triggered installation of an attacker-controlled package pushed to thousands of developer machines - Cloud Security Alliance. The agent's identity was valid. Its scope was the problem's ceiling, not its floor. This is why least privilege is not optional: the tighter the scope, the smaller the damage an injected instruction can do, but the damage is never zero.
The second cluster of limits is operational, and each one is a place where teams get the model wrong in practice:
- Over-broad scopes - an identity scoped to "everything" is a key with extra steps
- Human-in-the-loop fatigue - approval prompts that fire too often get rubber-stamped
- Governance lag - issuing identities is easy; inventorying and retiring them is the work
- Standards immaturity - the ID-JAG and MCP auth specs are still drafts, so implementations differ
- Delegation confusion - "the agent, acting for the user" is subtle, and mis-modeling it re-creates the confused deputy
Gartner's data confirms that the dominant failure will be mundane rather than dramatic: it predicts that through 2028, at least 80% of unauthorized agent transactions will be caused by internal policy violations, not malicious attacks - Ops Insecurity, citing Gartner. In other words, most of the harm will come from agents doing permitted-but-wrong things, which identity scoping constrains but does not prevent. The lesson is that identity is necessary and insufficient. You still need policy on top of it, monitoring around it, and a human accountable for it. The teams that treat agent identity as the finish line will be the ones surprised by the 80%. The teams that treat it as the foundation, and build governance and least privilege on top, are the ones who will actually be safe.
16. The future: from identity to accountability
Reasoning forward from first principles, the trajectory is clear even where the specifics are not. Once every agent has a verifiable identity, the next question is not "who is acting?" but "who is answerable?", and the field is already moving from authentication toward accountability. The standards tell you where it goes. The ID-JAG draft is converging in the IETF, the MCP authorization spec now mandates OAuth 2.1 resource-server behavior, and the cloud providers have standardized on SPIFFE. Within a year or two, the primitive an agent presents will not be a key or even a static token but a short-lived, cryptographically attested, delegation-aware assertion, and the debate will have moved on to what that assertion should carry.
Two shifts are worth watching because they change the shape of the problem. The first is that identity and payment are merging into a single credential. When an agent's payment mandate and its access token are both signed assertions from the same trusted issuer, "can this agent act?" and "can this agent pay?" become one question, which is why the AP2 mandates and the Visa and Mastercard agent tokens look so much like the identity assertions in this guide. The second is the rise of oversight as its own layer. Gartner forecasts that guardian agent technologies will account for 10 to 15% of the agentic AI market by 2030, agents whose job is to watch other agents - AccuroAI, citing Gartner. Accountability, in that world, is itself automated.
The deeper structural point is the one worth ending on. Cheap intelligence made agents abundant, and abundance is what broke the shared-key model, because a model that assumed a handful of trusted machines cannot survive a billion ephemeral ones. The response is not to make agents rarer or slower. It is to give each one an identity as real, as scoped, and as accountable as a human employee's, and then to govern them the way you govern people: least privilege, clear ownership, full audit, immediate revocation. The companies building the identity plane, from Okta and Microsoft to Vercel and the SPIFFE community, are really building the HR department for a workforce that never sleeps. The autonomous businesses this enables, the kind we describe in the autonomous business guide, will only be trustworthy to the extent their agents are identifiable. Identity is not a feature of the agent economy. It is its precondition.
17. Conclusion: a decision framework
The argument of this guide reduces to one sentence: an API key answers "does the caller hold the secret?" while an identity answers "who is acting, on whose behalf, with what permission, for how long?", and only the second question is safe to ask of an autonomous agent. Everything else, the platforms, the standards, the funding, the law, follows from that distinction. If you take nothing else away, stop treating a shared, standing, over-scoped key as a substitute for identity, because for an agent it never was one.
For choosing what to actually adopt, the decision resolves cleanly by situation. If you already run Okta or Microsoft Entra, extend the directory you have: Agent SSO and Entra Agent ID give you first-class agent identity and the deepest governance with the least new machinery. If you are a product team or a founder shipping agents into your own app, start with a developer platform, Vercel's Agent Auth and Better Auth, Auth0 for AI Agents, Descope, WorkOS, or Stytch, and use token exchange to issue scoped credentials instead of distributing keys. If your agents live inside one cloud, use that cloud's workload identity, Google Cloud Agent Identity or AWS AgentCore Identity, and let the platform mint short-lived, cryptographically bound tokens. If you need the purest, most portable primitive and can carry the operational load, SPIFFE/SPIRE is the open foundation the others build on.
Whatever you pick, hold it to the same five tests this guide scored against: does each agent get a distinct, scoped, short-lived, revocable identity; is it built on open standards you can carry across tools; does it give you an inventory, a lifecycle, and an audit trail; can your team actually ship it; and can you afford it at your scale. Then remember the limit from Section 15: identity is the foundation, not the finish. Layer least privilege, policy, and a named human owner on top of it, because the majority of agent harm will come from permitted-but-wrong actions, not stolen keys. Build agents like you hire employees, with a real identity, a narrow job, a clear boss, and a full record of what they did. That is the whole discipline, and in 2026 it is finally buildable.
This guide reflects the AI agent identity landscape as of September 2026. Standards drafts, product availability, pricing, and regulatory dates change frequently, so verify current details against the primary sources linked above before making decisions.