Make your product agent-ready
Authentication
Machine-to-machine and delegated authorization for agents
Last verified 2026-09-24
Summary
Authentication covers how agents receive credentials, prove identity, narrow authority, and call protected or servers without borrowing a human browser session.
- Owns: API keys, for agents, , , agent identity, MCP auth metadata,
auth.md, and . - Does not own: tool safety semantics; see Tool Design. Public discovery broadly; see Discovery.
- Agent-ready means: credentials are scoped, short-lived where possible, machine-usable at runtime, validated on every request, and auditable by agent/user/delegation chain.
Registration can still involve human consent or an OTP claim ceremony. The runtime request path should stay programmatic: no CAPTCHA, login page, or ambient session cookie dependency.
Choose A Path
- API Keys - Only when keys are scoped, rotatable, and not exposed to models.
- OAuth 2.1 for Agents - Default for standalone agent services and machine-to-machine access.
- Agent Identity - Model agents as first-class principals for audit trails.
- Token Exchange - Narrow authority for delegation and sub-agents.
- DPoP - Bind tokens to client keys to reduce replay risk.
- Protected Resource Metadata - Publish OAuth metadata for protected APIs.
- MCP Authorization - Apply OAuth discovery and client identity to MCP.
- auth.md - Describe agentic registration and credential-claim flows.
- Idempotency and Replay Protection - Defend write operations from duplicated or replayed requests.
- Auth Anti-Patterns - Avoid browser sessions, unscoped tokens, and hidden delegation.