---
title: What is a non-human identity (NHI)?
type: glossary
url: https://agentsfordevs.com/glossary/non-human-identity
markdown: https://agentsfordevs.com/glossary/non-human-identity.md
publisher: Agents for Devs
author: Agents for Devs desk
reviewed_by: Agents for Devs desk
published: 2026-12-06
updated: 2026-12-06
license: https://agentsfordevs.com/reuse
citation: Agents for Devs. "What is a non-human identity (NHI)?." Published Dec 6, 2026. https://agentsfordevs.com/glossary/non-human-identity
attribution: Credit Agents for Devs and link to https://agentsfordevs.com/glossary/non-human-identity
term: Non-human identity (NHI)
aliases:
  - NHI
---

# 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.

**Definition:** 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.

```http
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](/glossary/agent-identity) · [Least privilege for agents](/glossary/least-privilege-agents) · [Security checklist for shipping an MCP server](/guides/mcp-server-security-checklist)

## Sources

1. [Introduction (OWASP Non-Human Identities Top 10, 2025), OWASP](https://owasp.github.io/www-project-non-human-identities-top-10/2025/introduction/)
2. [OAuth Client Credentials, Model Context Protocol](https://modelcontextprotocol.io/extensions/auth/oauth-client-credentials)

## Changelog

- 2026-12-06: 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: https://agentsfordevs.com/glossary/non-human-identity.md
- Reuse: quote or summarize with a link to the page. Terms: https://agentsfordevs.com/reuse
