Install
How the SDK Fits In
The SDK handles attestation signing, PKCE, state management, and HTTP communication. You call high-level methods likediscover(), register(), proxy().
Quick Reference
| Class | When to use |
|---|---|
ATHGatewayClient | Connecting through a gateway |
ATHNativeClient | Connecting directly to an ATH-enabled service |
Creating a Client
About key management
About key management
- Development:
generateKeyPair("ES256")creates an ephemeral key each run. Simple but the server can’t verify your identity across restarts. - Production: Load a persistent PEM key with
importPKCS8(pem, "ES256")fromjose. Publish the matching public key at youragentIdURL.