Glossary auth/
What is a non-human identity (NHI)?
A non-human identity (NHI) is an identity used by software rather than a person, such as a service account, cloud role, API key or third-party application, to authenticate and be authorized to reach other systems.
Also called: NHI
POST /token HTTP/1.1
Host: auth.example.com
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials&client_id=my-service&client_secret=s3cr3t&resource=https%3A%2F%2Fmcp.example.com%2Fmcp
That request is an NHI at work: a service proving who it is with a client ID and secret, no person involved, to get a token for an MCP server. It is the flow behind MCP’s OAuth Client Credentials extension, which targets CI/CD pipelines, background services and daemons. The extension’s docs warn that client secrets are long-lived credentials and recommend signed JWT assertions where possible.
OWASP’s Non-Human Identities Top 10 says NHIs “are used to identify, authenticate, and authorize different software entities,” and that unlike human identities they “are not controlled and often not intrinsically tied to a human.” Five of its ten 2025 risks map directly onto agent rollouts: leaked secrets (NHI2), overprivileged identities (NHI5), long-lived secrets (NHI7), one identity reused across workloads (NHI9) and people signing in as a service identity (NHI10).
Every API key in an MCP server config, every gateway credential and every agent running in CI is an NHI. Give each one its own identity, scope it narrowly, prefer short-lived tokens and rotate whatever can’t be short-lived.
See also: Agent identity · Least privilege for agents · Security checklist for shipping an MCP server
Related terms
Agent identity, Audit log, Least privilege for agents, Per-user OAuth
Sources
Changelog
- First published.
Cite this page
Agents for Devs. "What is a non-human identity (NHI)?." Published Dec 6, 2026. https://agentsfordevs.com/glossary/non-human-identity - Page: https://agentsfordevs.com/glossary/non-human-identity
- Markdown version: https://agentsfordevs.com/glossary/non-human-identity.md
- Reuse: quote or summarize with a link to this page. Reuse terms