Skip to content
🆕 Nova skill: Website Spec! Audite sites contra 128 tópicos de HTML, SEO, a11y, segurança e mais. Ver skill →

Auth.md

The auth.md protocol is an open standard that lets AI agents register for services on behalf of users, without signup forms. A Markdown file published at a service’s root (https://service.com/auth.md) works simultaneously as human-readable documentation and as a discoverable runtime artifact for agents.

Extends RFC 9728 (OAuth 2.0 Protected Resource Metadata) with an agent_auth block in the Authorization Server metadata.

  • Make your app agent-ready by publishing an auth.md
  • Generate Protected Resource Metadata (RFC 9728)
  • Validate an existing auth.md against the protocol spec
  • Implement agent registration endpoints
  • Understand how the auth.md protocol works
  • Configure authentication flows for agents
Terminal window
npx skills add https://gitlab.com/fabriciotelles/skills -s auth-md
FlowMechanismWhen to use
Agent VerifiedProvider signs an ID-JAG asserting user identityJIT provisioning from OIDC/SAML; zero-friction
User ClaimedOTP-based (anonymous start or email required)Platforms without ID-JAG; self-serve
EndpointPurpose
/.well-known/oauth-protected-resourceDiscovery — resource metadata
/.well-known/oauth-authorization-serverDiscovery — AS metadata with agent_auth block
POST /agent/authRegistration — dispatches on type field
POST /agent/auth/claimClaim initiation (anonymous start only)
POST /agent/auth/claim/completeOTP verification
POST /agent/auth/revokeRevocation
ModeDescription
generateCreate auth.md + metadata JSON
validateCheck existing auth.md (basic or full with live fetch)
explainExplain the protocol without generating artifacts
  1. auth.md — Markdown file with all protocol steps
  2. oauth-protected-resource.json — JSON for /.well-known/oauth-protected-resource
  3. oauth-authorization-server.json — JSON with complete agent_auth block

Protocol created by WorkOS. Spec: github.com/workos/auth.md

📄 Full documentation on GitLab