> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nuwa.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# DIDAuth Integration Guides

> A single entry point for DIDAuth integration on agent and backend sides.

Use this page as the DIDAuth entry point, then pick the integration path that matches your role.

## For Agent Integrations

Use the CLI-first flow for agent environments:

* [DIDAuth for Agent](/guides/did-auth-agent)
* Agent skill prompt: [https://id.nuwa.dev/skill.md](https://id.nuwa.dev/skill.md)

This guide covers:

* local key initialization with `nuwa-id`
* deep link generation via `nuwa-id link`, approved on `id.nuwa.dev`
* user DID handoff and local DID binding
* verified DID-authenticated requests

## For Backend Integrations

Use this when your service needs to verify `Authorization: DIDAuthV1 ...`:

* [DIDAuth for Backend Services](/guides/did-auth-server)

This guide covers:

* `IdentityKit.bootstrap()` for DID resolution
* Express middleware with `DIDAuth.v1.verifyAuthHeader()`
* protected routes (`/whoami`) and production notes

## Recommended Order

1. Start with the agent flow to understand header generation and key binding.
2. Add backend middleware verification to protect APIs.
3. Move to shared nonce store + rate limiting before production rollout.
