Five steps. About ten minutes.Documentation Index
Fetch the complete documentation index at: https://docs.altheia.xyz/llms.txt
Use this file to discover all available pages before exploring further.
1. Sign in as an operator
Open altheia.xyz/dashboard and connect Phantom. Your wallet becomes the operator authority. The first time you sign in, anOperatorAccount PDA is created on Solana.
2. Register your first agent
Click + Register agent. Give it a name, set per-tx + per-day caps, and pick the programs it can invoke.
AgentAccount PDA is created and a Swig session key is provisioned with the policy mapped to on-chain constraints.
Save the API key shown on success. It is revealed once.
3. Install the SDK
npm install / yarn add. The SDK targets Node 20+ and modern browsers.
4. Initialize
endpoint is https://api.altheia.xyz, failureMode is "open", timeoutMs is 1500.
5. Guard an action
Wrap any signed action withguard(). If the policy denies it, guard() throws before your function runs.
Full Orca swap example
A working agent that swaps SOL → USDC on Orca with six policy scenarios.