The Agent Kit lifecycle has four stages: provision, fund, operate, and respond to approvals. Every passkey-signed step uses prepare/confirm so private key material never leaves the secure enclave.Documentation Index
Fetch the complete documentation index at: https://docs.relayer.fi/llms.txt
Use this file to discover all available pages before exploring further.
Dashboard-driven stages (passkey-stamped today): provision, fund, configure budget, kill, rotate. The endpoints exist but require a passkey ceremony bound to RP
relayer.fi, so the dashboard orchestrates them — third-party SDK path is planned (see RFC #21 and RFC #23).Backend/SDK-driven stages: operate (runtime HMAC), pause/resume, all reads.1. Provision an agent (3-round passkey flow)
If the flow is interrupted between rounds 2 and 3, the dashboard resumes viaPOST /v1/agents/{id}/prepare-policies. To abandon, call DELETE /v1/agents/{id} while status is pending_policies.
2. Fund the agent wallet
3. Configure budgets
From the dashboard’s agent settings (under the hood, a passkey-stampedPOST /v1/agents/{id}/budget):
- infra — every API call (cheap, frequent)
- tokens — every LLM token usage event
- payments — every USDC outflow
checkPaymentBudget() which queries all 3 + the kill switch. When emitting telemetry, it calls checkBudget() which queries layers 1+2 only (fail-open on layer 3).
4. Agent operates (HMAC X-Agent-Auth)
The agent SDK signs every request withHMAC-SHA256(method + path + body, secret):
5. Approvals (above threshold)
If a payment exceedsapprovalThresholdUSDC, the API responds HTTP 202 with { approvalId }. The SDK suspends and polls /v1/signing/approvals/{id} every 5s until a CFO approves with passkey (or until the 5-minute deadline). A human approver in the dashboard sees the request in their queue (GET /v1/signing/approvals?status=pending) and stamps approval with POST /v1/signing/approvals/{id}/approve-with-passkey.
6. Emergency stop + maintenance
Backend-callable (your own automation can hit these):GET /v1/agents/{id}/status every 30s. On killed or API unreachable, payment ops block (fail-safe); telemetry continues (fail-open).