agent-auth (Clawd Agent Auth) is the on-chain identity and attestation stack for
Solana-native AI agents. It combines SIWS wallet authentication, Helius DAS NFT
verification, CLAWD SPL token attestation, Phala Intel TDX TEE quotes, and
optional Clerk identity bridging — all exposed through the CAAP/1.0 protocol.
Use agent-auth when agents need to prove identity, verify ownership, check
subscription tiers, or obtain hardware-rooted attestation quotes. Every
attestation response carries a TDX quote verifiable at
proof.t16z.com.
Do not attempt to verify agent identity through ad-hoc RPC calls, manual NFT
checks, or wallet-balance scraping. Use the agent-auth endpoints — they
handle SIWS, DAS, token attestation, and TEE quoting in one flow.
Progressive Disclosure
- Read
references/attestation-flow.md when walking through a CAAP attestation
for the first time, setting up SIWS sign-in, understanding the Clerk+TEE bridge,
or troubleshooting attestation failures.
- Read
references/subscription-tiers.md when checking what tier a CLAWD balance
entitles, computing tier progression, gating features by tier, or explaining
subscription levels to users.
Provider Endpoints
| Method |
Path |
Description |
GET |
/api/caap/discovery |
CAAP/1.0 protocol discovery document |
POST |
/api/caap/attest |
Full attestation: SIWS + DAS + TEE quote |
GET |
/api/caap/status/:agentId |
Lightweight verified/unverified status check |
POST |
/api/siws/challenge |
Generate SIWS sign-in challenge |
POST |
/api/siws/verify |
Verify SIWS signature + optional CAAP + TEE |
GET |
/api/tee/report |
Fresh TEE health quote bound to a nonce |
CAAP/1.0 Protocol
The Clawd Agent Attestation Protocol ties together five verification phases:
- SIWS (Sign In With Solana) — Ed25519 signature over a structured message
- DAS Verification — Metaplex Agent Registry + Helius
getAssetsByOwner confirming agent NFT ownership
- SPL Attestation — CLAWD token account ownership verification
- Subscription Tiers — Token balance → tier (Free / Bronze 100K / Silver 500K / Gold 1M / Diamond 5M CLAWD)
- Phala TEE Quote — Intel TDX quote binding the attestation hash to a specific CVM instance
Attestation Hash
sha256(`${agentId}:${wallet}:${clawdMint}:${timestamp}`)
Embedded in TDX report_data so the TEE quote is cryptographically bound to the specific agent.
Subscription Tiers
| Tier |
CLAWD Required |
Features |
| Free |
0 |
Basic auth, SIWS sign-in |
| Bronze |
100,000 |
+ Agent attestation, peer card |
| Silver |
500,000 |
+ Priority verification, history |
| Gold |
1,000,000 |
+ Real-time wallet monitoring, webhooks |
| Diamond |
5,000,000 |
+ All features, enterprise SLA |
Clerk Integration
The clerk-caap package bridges Clerk session tokens with CAAP/1.0:
import { verifyClerkToken, fetchPhalaAttestation } from "@clawd/clerk-caap";
// 1. Verify Clerk session token
const claims = await verifyClerkToken(sessionToken);
// 2. Run CAAP attestation via relay
const response = await fetch("https://x402.wtf/api/caap/attest", {
method: "POST",
headers: { Authorization: `Bearer ${sessionToken}` },
body: JSON.stringify({ walletAddress: claims.wallet_address }),
});
// → { verified, attestation, tee: { intelQuote, explorerUrl, ... }, tier }
TEE Attestation Fields
| Field |
Description |
appId |
Phala dstack app ID |
instanceId |
CVM instance ID |
composeHash |
Hash of the docker-compose.yml |
mrAggregated |
Aggregate measurement register |
mrtd |
TDX MRTD measurement |
rtmr0–rtmr3 |
Runtime measurement registers |
intelQuote |
Raw Intel TDX quote (base64) |
explorerUrl |
proof.t16z.com verification link |
hasTeeEvidence |
Whether quote generation succeeded |
Spend-Aware Usage
- Use
/api/caap/status/:agentId for lightweight checks before full attestation.
- Full
/api/caap/attest runs SIWS, DAS, token attestation, and TEE quoting — call it only when all phases are needed.
- The relay bills per-attestation via x402 payment protocol.
- Include
X-Wallet-Address header with the Solana address for requests that don't go through Clerk.
- Treat attestation responses as cryptographically verifiable, not as trust-on-first-use.
Best Practices
- Verify TEE quotes at proof.t16z.com before trusting attestations from untrusted relays.
- Use the discovery document (
GET /api/caap/discovery) to confirm protocol version and supported capabilities before attestation flow.
- Agent identity registration (Metaplex Agent Registry) is a separate on-chain transaction — not included in the basic attestation flow.
- Clerk session tokens are optional; SIWS-only flows work directly with wallet signatures.
1---2name: agent-auth3description: |4 Solana-native agent identity and authentication — SIWS (Sign In With Solana), CAAP/1.0 on-chain attestation, Phala TEE confidential compute, Clerk identity bridge, and CLAWD token-gated subscription tiers. Verifiable at proof.t16z.com.5 SERVICES: agent attestation, SIWS sign-in, DAS NFT verification, SPL token attestation, subscription tier gating, TEE quote generation, Clerk CAAP session bridging, agent identity registration (Metaplex Agent Registry), token launch via Genesis bonding curves.6 TRIGGERS: "attest my agent", "verify agent identity", "sign in with Solana", "agent auth", "CAAP attestation", "TEE quote", "Phala attestation", "agent NFT verification", "token-gated agent", "agent subscription tier", "Clerk agent auth", "register agent on-chain", "Metaplex agent identity"7 Start with get_catalog_entry("agent-auth") to retrieve the full protocol document and available endpoints. Use search_catalog when looking for specific attestation or auth capabilities.8metadata:9 source: https://skillmd.com/skills/solizardking/agent-auth10---1112`agent-auth` (Clawd Agent Auth) is the on-chain identity and attestation stack for13Solana-native AI agents. It combines SIWS wallet authentication, Helius DAS NFT14verification, CLAWD SPL token attestation, Phala Intel TDX TEE quotes, and15optional Clerk identity bridging — all exposed through the CAAP/1.0 protocol.1617Use agent-auth when agents need to prove identity, verify ownership, check18subscription tiers, or obtain hardware-rooted attestation quotes. Every19attestation response carries a TDX quote verifiable at20[proof.t16z.com](https://proof.t16z.com).2122Do not attempt to verify agent identity through ad-hoc RPC calls, manual NFT23checks, or wallet-balance scraping. Use the agent-auth endpoints — they24handle SIWS, DAS, token attestation, and TEE quoting in one flow.2526## Progressive Disclosure2728- Read `references/attestation-flow.md` when walking through a CAAP attestation29 for the first time, setting up SIWS sign-in, understanding the Clerk+TEE bridge,30 or troubleshooting attestation failures.31- Read `references/subscription-tiers.md` when checking what tier a CLAWD balance32 entitles, computing tier progression, gating features by tier, or explaining33 subscription levels to users.3435## Provider Endpoints3637| Method | Path | Description |38|--------|------|-------------|39| `GET` | `/api/caap/discovery` | CAAP/1.0 protocol discovery document |40| `POST` | `/api/caap/attest` | Full attestation: SIWS + DAS + TEE quote |41| `GET` | `/api/caap/status/:agentId` | Lightweight verified/unverified status check |42| `POST` | `/api/siws/challenge` | Generate SIWS sign-in challenge |43| `POST` | `/api/siws/verify` | Verify SIWS signature + optional CAAP + TEE |44| `GET` | `/api/tee/report` | Fresh TEE health quote bound to a nonce |4546## CAAP/1.0 Protocol4748The Clawd Agent Attestation Protocol ties together five verification phases:49501. **SIWS** (Sign In With Solana) — Ed25519 signature over a structured message512. **DAS Verification** — Metaplex Agent Registry + Helius `getAssetsByOwner` confirming agent NFT ownership523. **SPL Attestation** — CLAWD token account ownership verification534. **Subscription Tiers** — Token balance → tier (Free / Bronze 100K / Silver 500K / Gold 1M / Diamond 5M CLAWD)545. **Phala TEE Quote** — Intel TDX quote binding the attestation hash to a specific CVM instance5556### Attestation Hash5758```59sha256(`${agentId}:${wallet}:${clawdMint}:${timestamp}`)60```6162Embedded in TDX `report_data` so the TEE quote is cryptographically bound to the specific agent.6364## Subscription Tiers6566| Tier | CLAWD Required | Features |67|------|----------------|----------|68| Free | 0 | Basic auth, SIWS sign-in |69| Bronze | 100,000 | + Agent attestation, peer card |70| Silver | 500,000 | + Priority verification, history |71| Gold | 1,000,000 | + Real-time wallet monitoring, webhooks |72| Diamond | 5,000,000 | + All features, enterprise SLA |7374## Clerk Integration7576The `clerk-caap` package bridges Clerk session tokens with CAAP/1.0:7778```ts79import { verifyClerkToken, fetchPhalaAttestation } from "@clawd/clerk-caap";8081// 1. Verify Clerk session token82const claims = await verifyClerkToken(sessionToken);8384// 2. Run CAAP attestation via relay85const response = await fetch("https://x402.wtf/api/caap/attest", {86 method: "POST",87 headers: { Authorization: `Bearer ${sessionToken}` },88 body: JSON.stringify({ walletAddress: claims.wallet_address }),89});90// → { verified, attestation, tee: { intelQuote, explorerUrl, ... }, tier }91```9293## TEE Attestation Fields9495| Field | Description |96|-------|-------------|97| `appId` | Phala dstack app ID |98| `instanceId` | CVM instance ID |99| `composeHash` | Hash of the docker-compose.yml |100| `mrAggregated` | Aggregate measurement register |101| `mrtd` | TDX MRTD measurement |102| `rtmr0`–`rtmr3` | Runtime measurement registers |103| `intelQuote` | Raw Intel TDX quote (base64) |104| `explorerUrl` | proof.t16z.com verification link |105| `hasTeeEvidence` | Whether quote generation succeeded |106107## Spend-Aware Usage108109- Use `/api/caap/status/:agentId` for lightweight checks before full attestation.110- Full `/api/caap/attest` runs SIWS, DAS, token attestation, and TEE quoting — call it only when all phases are needed.111- The relay bills per-attestation via x402 payment protocol.112- Include `X-Wallet-Address` header with the Solana address for requests that don't go through Clerk.113- Treat attestation responses as cryptographically verifiable, not as trust-on-first-use.114115## Best Practices116117- Verify TEE quotes at [proof.t16z.com](https://proof.t16z.com) before trusting attestations from untrusted relays.118- Use the discovery document (`GET /api/caap/discovery`) to confirm protocol version and supported capabilities before attestation flow.119- Agent identity registration (Metaplex Agent Registry) is a separate on-chain transaction — not included in the basic attestation flow.120- Clerk session tokens are optional; SIWS-only flows work directly with wallet signatures.