install
agent.ts
client.ts
- Node ≥ 18 (uses global
fetch). Ships ESM + CJS with bundled types. - Server-only in v1 — your API key is a server secret. Don’t ship it to browsers.
Already importing
@usenaive-sdk/node? Keep going — it is published, supported, and not
deprecated. @usenaive-sdk/server re-exports it in full and adds
forUser(id).provision(...), so moving over is a one-line change to the import specifier with
no other edits. Installing both is unnecessary: server depends on node.