For Agent Integrations
Use the CLI-first flow for agent environments:- DIDAuth for Agent
- Agent skill prompt: https://id.nuwa.dev/skill.md
- local key initialization with
nuwa-id - deep link generation via
nuwa-id link, approved onid.nuwa.dev - user DID handoff and local DID binding
- verified DID-authenticated requests
For Backend Integrations
Use this when your service needs to verifyAuthorization: DIDAuthV1 ...:
This guide covers:
IdentityKit.bootstrap()for DID resolution- Express middleware with
DIDAuth.v1.verifyAuthHeader() - protected routes (
/whoami) and production notes
Recommended Order
- Start with the agent flow to understand header generation and key binding.
- Add backend middleware verification to protect APIs.
- Move to shared nonce store + rate limiting before production rollout.

