AAuth Web Agent Demo
August 11, 2026 · View on GitHub
A reference agent server for the AAuth protocol, running on Cloudflare Workers. Live at web-agent.aauth.dev.
What it does
- Registers and authenticates users via WebAuthn passkeys
- Issues ephemeral
aa-agent+jwtagent tokens bound to a browser-generated Ed25519 key pair - Publishes
/.well-known/aauth-agent.jsonand/.well-known/jwks.json - Wearing its resource hat, requires an
aa-person+jwtperson token at/authorizeand issuesaa-resource+jwtresource tokens naming the person that token identified
Getting started
npm install
npm run generate-key # generate a signing key for agent tokens
npm run dev # start wrangler dev
Deploy to Cloudflare Workers:
npm run deploy
See the /setup skill for a guided Cloudflare deployment walkthrough.
Project layout
src/— Hono app, WebAuthn routes, agent token issuancepublic/— static web agent demo UIscripts/— key generation helperswrangler.toml— Cloudflare Workers config
Contributing
Please read CODE_OF_CONDUCT.md before participating.