Skip to content

Agent Claims

Overview

When an OIDC flow is initiated by an AI agent (via the ByWrit CLI), the resulting ID token includes optional agent identity claims. These are aligned with the OIDC-A 1.0 proposal.

Claims

ClaimTypeDescription
agent_typestringcoding, assistant, or autonomous
agent_modelstringe.g., claude-opus-4-6, gpt-4
agent_providerstringe.g., anthropic, openai
agent_instance_idstringUnique session/instance identifier

Example Token

{
"sub": "dev_01HXYZ...",
"email": "dev@example.com",
"email_verified": true,
"kyc_verified": true,
"verified_at": "2026-01-15T10:30:00Z",
"agent_type": "coding",
"agent_model": "claude-opus-4-6",
"agent_provider": "anthropic",
"agent_instance_id": "cli_session_abc123"
}

Discovery

The ByWrit discovery document advertises agent claim support:

{
"agent_claims_supported": ["agent_type", "agent_model", "agent_provider", "agent_instance_id"],
"agent_types_supported": ["coding", "assistant", "autonomous"]
}

Standard OIDC consumers that don’t understand these claims simply ignore them. Zero breaking changes.