Quickstart — @personaai/sdk
Install, auth, create an agent, chat as an external user
Quickstart
1. Install
Node 18+ (uses native fetch).
2. Construct the client (server-side)
Never construct
PersonaClientin a browser bundle. See .
3. Verify
4. Create an agent (one-time, control-plane)
5. Chat as one of your users
Most resources (threads, files, chat) act on behalf of an end user. Create a per-request client:
Next
- — when to set
externalUserId - — if you want framework-mount instead of raw SDK